Limited Language Support in the `LANGUAGE` Environment (5 languages)
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
-
Clone the GeoNode repository with the command:
git clone https://github.com/GeoNode/geonode.git -b 4.1.3 -
Navigate to the cloned directory:
cd geonode -
Modify the
.envfile. Change:# LANGUAGE_CODE=pt # LANGUAGES=(('en-us','English'),('it-it','Italiano'))to:
LANGUAGE_CODE=en LANGUAGES=(('en-us','English'),('it-it','Italiano'),('th-th','ภาษาไทย')) -
Build the Docker image with:
docker-compose build --no-cache -
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:
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?