Hi Harry!
2016-06-20 23:45, Harald bieger rašė:
> Another question .
> How is the correct way to change language of the fronted ?
> I try to set in /config/i18n.php the language corresponding to
> ./locale folders no change
> do i need to regenerate the *po files ? or is there another way i
> didnt found
There are a few prerequisites for our localization to work:
1. you must have php-gettext support
2. your server must support the locale you want to use
3. you must set the $language value to the full locale name you want to
use.
I'm not exactly sure if 2 and 3 apply to all systems, or just some of
them, but they certainly do apply for Debian and Ubuntu systems.
For example, the `locales` package on my Debian server is currently
configured to support the following locales:
lt_LT.UTF-8
de_DE.UTF-8
en_US.UTF-8
and `locale -a` outputs the following list of locales supported:
# locale -a
C
C.UTF-8
de_DE.utf8
en_US.utf8
lt_LT.utf8
POSIX
With this list, if I want Vexim say in German, I have to set $language
to either "de_DE.utf8" or "de_DE.UTF-8". Meanwhile neither "de_DE", nor
"de" will not work in my case. To change the list, you probably have to
run `dpkg-reconfigure -plow locales` and check the checkbox next to the
locale you want.
This is an ugly limitation of gettext (or perhaps php-gettext
specifically), but knowing about it, achieving localized interface
becomes rather easy.
Regards,
Rimas