php-gettext, locale and Alpine
#1
Fri, 2016-10-14 16:51
k
-
- Offline
- 1 year 5 months ago
- 2016-06-01
Hello,
I don't understand how locales work with Alpine. The locale command doesn't exist.
But if I use a php project with gettext for i18n, I can show Catalan, Slovenian or German, (FYI gettext is based on the locale of the system).
Can someone please explain me how it works? Are all the locales inside the gettext package?
Regards,
~k
I am far from expert but it looks like musl libc doesn't support locales fully yet:
http://wiki.musl-libc.org/wiki/Open_Issues#C_locale_conformance
See also https://github.com/gliderlabs/docker-alpine/issues/144 & https://github.com/docker-library/php/issues/219