2011.01.17 15:49, Andre Polykanine rašė:
Hello Php-i18n,
I need to make my projects international. However, my hosting provider
won't install anything for me, so no GetText, no ICU.
Could you suggest me something?
I tried to make constants definitions like this:
<?
define("MSG0", "Welcome to our website!");
...
define(MSG125", "blah blah");
?>
But it's reeeally hard to maintain in future.
If your provider won't enable gettext or required system locales for
you, add php gettext classes to your software. You can do gettext
without PHP gettext extension support. Older php-gettext does not have
dependency on mbstring, if your brain dead provider does not enable it
too. IDN support can be implemented in pure PHP too.
constants, arrays and html templates with translation are not
maintainable (personally went through couple of version upgrades on html
template based translation) and have problems with plurals.
--
Tomas
--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php