Make the new layout available for i18n pages

Christoph Cullmann cullmann at babylon2k.de
Sun Mar 2 21:43:46 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 1) Introduce i10n() function ...
any specific implementation somewhere of has php a good one imbuild, physos 
has looked at that some time ago, or ?

>
> 2) include_once ("$site_root/media/$locale.inc");
>     setlocale(LC_ALL, $locale);
no bad idea, somebody against that ?

>
> There will be media directory at the site root and $locale will be set
> by the page itself or by some site_name.inc
>
> 3) Make following changes
>
>
> function.inc
> ----------
> kde_news_dot() &  kde_news_apps()
>    - use strftime() instead of date()
>    - include "extra disclaimer" after dot news. Though it will be empty
> by default.
>    - use i10n() for all texts
>
>
>
> footer.inc
> ----------
> "Search" - test for variable $site_search. If set use
>             include_once ($site_root/media/search.inc);
>             instead of default search box.
>
> "Hotspot" - test for variable $site_hotspot. If set use
>              include_once ($site_root/media/hotspot);
>              instead of default hotspot.
>
> "footer"  - test for variable $site_footer. If set use
>              include_once ($site_root/media/footer.inc);
>              instead of default footer note.
>
>
> "menu_right" - test for variable $site_menu_right. If set use
>              include_once ($site_root/media/menu_right.inc);
>              instead of default menu_right.inc.
>
>
> header.inc
> ----------
> "encoding"  - test for variable $encoding. If set use
>                $encoding instead of "ISO-8859-1" in
>
>     print '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n";
>
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"
that is now UTF-8 and all i18n pages that switches over the new design should 
use utf-8 as encoding, why mess around with different ones if we use in the 
rest of kde utf-8 since ever ?

>
> "lang" - use $locale instead of "en" in
>
>    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
that is done now by the var $site_locale

>
> "location" - test for variable $site_location. If set use
>              include_once ($site_root/media/location.inc);
>              instead of default
>
>    <td valign="middle" align="right" id="location">
>    <form action="/media/switch.php" method="post">
>    <span class="invisible"><label for="location">Language:
>
>
> use i10n() for all texts
>
>
> class_menu.inc
> --------------
> use htmlspecialchars() instead of htmlentitie()
k ;)


- -- 
Christoph Cullmann
KDE Developer, kde.org Co-Maintainer
http://www.babylon2k.de, cullmann at kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+YnsVyPjDGePm9UIRAsesAKC5tf0x+WlSuhSKC9YlsUpViZ2gfACfQ4Ll
WchQ/AN+V2nVITXH8Za3CJY=
=7TMN
-----END PGP SIGNATURE-----




More information about the kde-www mailing list