GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.45k stars 1.13k forks source link

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

Open weeix opened 1 year ago

weeix commented 1 year ago

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

joostvenema commented 11 months ago

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?

TheHoboCoder commented 14 hours ago

Hello, can someone provide status on this issue? It's very confusing, that it seems like some language is supported, there's translations for it, but actually it is not. I think it should be mentioned more clearly in the docs that only these five languages supported at the moment.