Re: PHP extension 'gettext' doesn't work?


Mike Dalessio
 

Hi Jack,

That sounds like a great idea. I'll prioritize this work in our Tracker
backlog.

-mike

On Tue, Nov 3, 2015 at 2:58 PM, Jack Cai <greensight(a)gmail.com> wrote:

This is a great list of languages to support. May I ask to add ar (Arabic)
and iw (Hebrew) to the list? These two are considered "Group 2" languages
in the company I work for. With them added, all Group 1 and Group 2
languages will be included in the list, which is a confirmation that we
have a good list.

Jack


On Mon, Nov 2, 2015 at 4:41 PM, JT Archie <jarchie(a)pivotal.io> wrote:

We've added support for some locales into the rootfs. There are quite a
few locales, of which we don't know if we need to officially support them.
Our current list, is from a consumer level list of *most used* locales.

Please feel free to review this commit
<https://github.com/cloudfoundry/stacks/commit/748cb604ef55f3eeb334d960f496661b58ec50ca>.
We've made it explicit what locales are supported.

With these changes, we've been able to make the PHP `gettext` extension
work with the example. It has been added to our test suite
<https://github.com/cloudfoundry/php-buildpack/tree/develop/cf_spec/fixtures/php_app_testing_locale>
for future support.

Let us know if you need anything else.

Kind Regards,

JT

On Fri, Oct 30, 2015 at 1:41 PM, Mike Dalessio <mdalessio(a)pivotal.io>
wrote:

Unfortunately, the apt-buildpack only works for installing staging-time
dependencies, and not runtime dependencies.

It could be made to work, but the core buildpacks team simply have not
done so because nobody has asked (yet). ;)


On Fri, Oct 30, 2015 at 1:37 PM, Guillaume Berche <bercheg(a)gmail.com>
wrote:

I agree the inclusion of the lang pack into linuxfs2 seems best option.

I'm wondering though whether a temporary workaround could be to install
the "locales" debian package using apt-buildpack [1] (no sudo needed) and
combine it with php buildpack using the multi buildpack [2] ? I was
planning to test that for another purpose but had not the chance yet. I'm
interested in hearing the outcome.

Guillaume.

[1] https://github.com/pivotal-cf-experimental/apt-buildpack

[2] https://github.com/ddollar/heroku-buildpack-multi
Le 27 oct. 2015 02:41, "Hiroaki Ukaji" <dt3snow.w(a)gmail.com> a écrit :


Hi.

Thanks to you, I understood why i18n by gettext didn't work on CF.
Certainly, the language pack "ja_JP.utf8" only exists in my local
machine..

Anyway, we're glad to hear that the debian package "locales" will be
added
to the rootfs.
It will resolve this issue and then we will be able to manage i18n by
gettext extension on CF.


Thanks a lot.

Hiroaki UKAJI



--
View this message in context:
http://cf-dev.70369.x6.nabble.com/cf-dev-PHP-extension-gettext-doesn-t-work-tp1984p2450.html
Sent from the CF Dev mailing list archive at Nabble.com.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.