Re: PHP extension 'gettext' doesn't work?
OK, so really sorry this took me so long to investigate, but I think I'vetoggle quoted messageShow quoted text
found the issue. Ubuntu has these "language packs" and in order for
gettext to work the system has to have that language pack installed.
You can see what language packs are installed on your system by running
`locale -a`. I was testing this on an Ubuntu docker image and the only way
I could make it work was to install the language pack. As soon as I did
that and restarted Apache HTTPD, I started to get my translations.
Running `locale -a` on the `cflinuxfs2` docker image shows that only these
language packs are installed.
$ locale -a
When I setup a test app and run it on CF, I get the same results. Only
Unfortunately, I'm not sure how you could go about installing more language
packs into the stack for CF. It seems that you have to install them via
`apt-get` and that simply won't work, since there's no root access in the
container. If anyone has any ideas about how to install more language
packs, let me know.
My only suggestion would be to use the intl extension instead of gettext.
I believe it offers similar functionality, although it's not something I've
Hope that helps!
On Fri, Oct 9, 2015 at 4:47 AM, Hiroaki Ukaji <dt3snow.w(a)gmail.com> wrote: