Translation of wwwtesting
Olaf Jan Schmidt
ojschmidt at kde.org
Wed Feb 5 11:22:13 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Anne-Marie mentioned on kde-www at mail.kde.org that she is thinking about
providing translated versions for edu.kde.org. This made me wonder about
the possibility to use the design of http://wwwtesting.kde.org on sites
like http://www.kde.de.
Currently, the php scripts of the new web site design automatically
include a number of English phrases. Of course it is possible to
translate these by changing the php scripts directly, but that would mean
that either changes to the php scripts have to be re-entered into all
translations, or we end up with different code everywhere.
It also would not allow different languages on _one_ site.
My idea is to introduce a very simple i18n () function for the php
scripts. There is no need to make it translate everything - which is
impossible - but the most important phrases like "Location:", "Help",
"Website settings", etc., can be translated, and some links can be
changed to point to translated versions.
This way, non-English KDE sites could use exactly the same php scripts as
the English site, and it would be easily possible to switch languages on
a per page basis.
The only requirement would be a simple line in every non-English page:
include_once ("i18n/de.inc");
before all other includes.
What do you think?
Olaf.
- --
Olaf Jan Schmidt, KDE Accessibility Project
KDEAP co-maintainer, maintainer of http://accessibility.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj5A8+UACgkQoLYC8AehV8c1SgCg5uBPmYtrK5MbZKDEfv+fKqdw
LCwAoOKFuduQUAI6mdivmsD8/2dcxbun
=VMOU
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: functions.inc.patch
Type: text/x-diff
Size: 634 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kde-www/attachments/20030205/8a874625/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: de.inc
Type: text/x-csrc
Size: 198 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kde-www/attachments/20030205/8a874625/attachment.c>
More information about the kde-www
mailing list