Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. LAMP does not activate locales?

LAMP does not activate locales?

Scheduled Pinned Locked Moved Unsolved LAMP
lamp
13 Posts 4 Posters 2.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jeauJ jeau

    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.

    Cloudron terminal:

    # locale -a
    C
    C.UTF-8
    POSIX
    

    Another server:

    % 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
    
    murgeroM Offline
    murgeroM Offline
    murgero
    App Dev
    wrote on last edited by
    #4

    @jeau Maybe you can fork the LAMP app and add the locales to it you need?

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #5

      @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.

      murgeroM 1 Reply Last reply
      0
      • nebulonN nebulon

        @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.

        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #6

        @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.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        1 Reply Last reply
        1
        • jeauJ Offline
          jeauJ Offline
          jeau
          App Dev
          wrote on last edited by
          #7

          thanks @murgero & @nebulon

          Okay, I could try to propose a solution before reporting the problem!
          I could also ask on this forum

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #8

            hi @jeau, I gave this a quick try. It seems that you have to set something like this in config.inc.php

            $disable_automatic_language_changing = 1;
            $default_language_tokens = "fr";
            

            I then get french:

            7b24d421-82a9-495f-be1b-9be65aea5be5-image.png

            1 Reply Last reply
            2
            • jeauJ Offline
              jeauJ Offline
              jeau
              App Dev
              wrote on last edited by
              #9

              @girish thank you, but the issue is the display of dates and not the strings that are displayed correctly in French (or other languages available). As said @nebulon the problem is caused by locales that are not available in the LAMP app.

              @nebulon have created an issue at https://git.cloudron.io/cloudron/lamp-app/issues/14

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #10

                Currently for the LAMP app, only POSIX locale is generated:

                # locale
                LANG=
                LANGUAGE=
                LC_CTYPE="POSIX"
                LC_NUMERIC="POSIX"
                LC_TIME="POSIX"
                LC_COLLATE="POSIX"
                LC_MONETARY="POSIX"
                LC_MESSAGES="POSIX"
                LC_PAPER="POSIX"
                LC_NAME="POSIX"
                LC_ADDRESS="POSIX"
                LC_TELEPHONE="POSIX"
                LC_MEASUREMENT="POSIX"
                LC_IDENTIFICATION="POSIX"
                LC_ALL=
                

                I wonder if it makes more sense to add the most common locales or make it configurable.

                @jeau for your use-case, is it sufficient if you can generate the locale on your own and set it within the php app itself as an env variable, or does it have to be set system-wide?

                1 Reply Last reply
                0
                • jeauJ Offline
                  jeauJ Offline
                  jeau
                  App Dev
                  wrote on last edited by
                  #11

                  @nebulon I think it's better to make the locales configurable. In my case, it would be perfect.

                  1 Reply Last reply
                  0
                  • jeauJ Offline
                    jeauJ Offline
                    jeau
                    App Dev
                    wrote on last edited by
                    #12

                    Do you have any news about this?

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #13

                      @jeau It looks like I closed https://git.cloudron.io/cloudron/lamp-app/issues/14 by mistake and this went off our radar. I have reopened it.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search