Make the new layout available for i18n pages
Chris Howells
chris at chrishowells.co.uk
Sun Mar 9 23:51:38 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Sunday 09 March 2003 23:42, Dirk Mueller wrote:
> If its not in PHP by default, then we cannot require it - too many web
> mirrors with unexperienced admins. Sorry.
Ah, good point.
> However, I agree a kind of gettext-like internationalisation would make a
> lot more sense than the current stuff, which is always kind of outdated and
> hard to keep in sync.
Supposedly the latest version of xgettext has support for PHP so that
shouldn't be a problem (e.g. generating the .po files).
I was thinking of creating i18n() function which basically looked up a string
in an array (e.g. pretty similar to the way that the url mapper works in
404.php). The array could be generated from a particular languages .po file
using a shell script or something. Well, we'll worry about that later.
If you don't understand what I mean, take a look at the way phpSysInfo is
translated.
This might be slightly slower than the PHP extension since the PHP extension
turns the .po files into a binary file, but I guess the performance should be
OK. Hopefully.
- --
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE+a9OKF8Iu1zN5WiwRApB6AJ0QdcGJool9Zgf/VyWJOgRHrfMjSACfTR25
MORhqZUISt0/S9atht7XXz8=
=LXR1
-----END PGP SIGNATURE-----
More information about the kde-www
mailing list