LAMP does not activate locales?
I installed MRBS with a LAMP application, it works fine. However, the dates are not displayed in French while the rest of the localization works. The locales are not activated in the container LAMP. Is there a workaround?
MRBS is a free, GPL, web application using PHP and MySQL/pgsql for booking meeting rooms or other resources.
.htaccessfile in the public folder, add the following line to the top. (If the
.htaccessfile does not exist, create it.)
php_value date.timezone 'Europe/Paris'
Of course, change the region to the one you need (I assumed Europe/Paris because you said French date. (Also, in that application, if you were talking about the dates not being displayed in the french language, it might not translate dates, or the french translation is not complete.)
It doesn't work any better. The timezone is configured in my application and the French translation is correct. On another server (except Cloudron) MRBS works without any problem. In fact, PHP setlocale has no effect.
# locale -a C C.UTF-8 POSIX
% locale -a C C.UTF-8 en_US.utf8 french fr_FR fr_FR@euro fr_FR.iso88591 fr_FR.iso885915@euro fr_FR.utf8 fr_FR.utf8@euro POSIX
@jeau Maybe you can fork the LAMP app and add the locales to it you need?
nebulon last edited by
@jeau you are right no other locales are setup within the app package. We have to add this, maybe even in the app base image, so all apps have it.
I have created an issue at https://git.cloudron.io/cloudron/lamp-app/issues/14
@murgero please do not recommend creating forks of app packages, since that also means that any installation from the fork won't easily get updates.
@nebulon who said anything about him installing the fork, beyond testing forking allows for others to contribute to the open source project. He could have done the work to add the locales and you test and accept the merge request when it's done. Everybody benefits from forking. I should have been a bit more clear on that.
Okay, I could try to propose a solution before reporting the problem!
I could also ask on this forum