File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ apt-get install -y --no-install-recommends apt-transport-https \
3434 $PACKAGES_MEMCACHED \
3535 $PACKAGES_LDAP
3636
37- # Generate the locales configuration fo rboth Australia, and the US .
37+ # Generate the locales configuration for all possible UTF-8 locales .
3838echo ' Generating locales..'
39- echo ' en_US.UTF-8 UTF-8' > /etc/locale.gen
40- echo ' en_AU.UTF-8 UTF-8' >> /etc/locale.gen
39+ grep UTF-8 /usr/share/i18n/SUPPORTED > /etc/locale.gen
4140locale-gen
4241
4342echo " Installing php extensions"
Original file line number Diff line number Diff line change 3131 }
3232}
3333
34- $ locale = 'en_AU.UTF-8 ' ;
35- if (setlocale (LC_TIME , $ locale ) === false ) {
36- $ missing [] = $ locale ;
34+ $ locales = [
35+ 'en_AU.UTF-8 ' ,
36+ 'es_ES.UTF-8 ' ,
37+ ];
38+ foreach ($ locales as $ locale ) {
39+ if (setlocale (LC_TIME , $ locale ) === false ) {
40+ $ missing [] = $ locale ;
41+ }
3742}
43+ setlocale (LC_TIME , 'en_AU.UTF-8 ' );
3844
3945if (php_sapi_name () === 'cli ' ) {
4046 if (empty ($ missing )) {
You can’t perform that action at this time.
0 commit comments