Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor in C:\xampp\g5\plugin\php_gettext\streams.php on line 48

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FileReader has a deprecated constructor in C:\xampp\g5\plugin\php_gettext\streams.php on line 84

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; CachedFileReader has a deprecated constructor in C:\xampp\g5\plugin\php_gettext\streams.php on line 145

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; gettext_reader has a deprecated constructor in C:\xampp\g5\plugin\php_gettext\gettext.php on line 36
PHP-gettext fallback example

PHP-gettext as a fallback solution

Example showing how to use PHP-gettext as a fallback solution if the native gettext library is not available or the system does not support the requested locale.

[en_US] [sr_CS] [de_CH]

locale 'de_CH' is not supported on your system, using custom gettext implementation.


Und so geht die Geschichte.

6 Schweine gingen zum Markt
5 Schweine gingen zum Markt
4 Schweine gingen zum Markt
3 Schweine gingen zum Markt
2 Schweine gingen zum Markt
1 Schwein ging zum Markt
0 Schweine gingen zum Markt

« back