geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Limited Language Support in the `LANGUAGE` Environment (5 languages)

Open weeix opened this issue 2 years ago • 1 comments

Expected Behavior

The application should ideally support a wider range of languages beyond the currently supported ones, which include Deutsch (de-de), English (en-us), Español (es-es), Français (fr-fr), and Italiano (it-it). Even if a language is not available in MapStore, it should still be supported as the translations available in the GeoNode repository can be utilized. This approach is preferable to not having any support at all.

Actual Behavior

At present, only the aforementioned five languages are supported. If any other language is specified, it is silently ignored and removed. The code that filters the LANGUAGE environment can be found here.

Steps to Reproduce the Problem

  1. Clone the GeoNode repository with the command: git clone https://github.com/GeoNode/geonode.git -b 4.1.3

  2. Navigate to the cloned directory: cd geonode

  3. Modify the .env file. Change:

    # LANGUAGE_CODE=pt
    # LANGUAGES=(('en-us','English'),('it-it','Italiano'))
    

    to:

    LANGUAGE_CODE=en
    LANGUAGES=(('en-us','English'),('it-it','Italiano'),('th-th','ภาษาไทย'))
    
  4. Build the Docker image with: docker-compose build --no-cache

  5. Start the application with: docker-compose up

Specifications

  • GeoNode version: 4.1.3
  • Installation type: vanilla
  • Installation method: Docker
  • Platform: Windows (Rancher Desktop)
  • Additional details:

weeix avatar Oct 24 '23 09:10 weeix

Yes, +1 for this issue. More supported languages would be very welcome. It seems there are more translations available at this moment (in Geonode as well as in the geonode-mapstore-client). Can't those just be added to the default list of supported languages?

joostvenema avatar Nov 09 '23 06:11 joostvenema