geonode
geonode copied to clipboard
Cannot custom translate main menu items
All the translations do not translate the 1st main menu item "All resources", even the translation files do not contain the translation of this menu item.
This is the path of the french translation file that I'm updating: /mnt/volumes/statics/static/mapstore/gn-translations/data.fr-FR.json
The french translation file cannot translate also the menu item "datasets" even though it is already translated in the translation file.
The translations are only applied on the viewer, not the main page.
Steps to Reproduce the Problem
1.Change Language and check the 1st main menu item "All resources"
Specifications
- GeoNode version: 4.3.1
- Installation type (vanilla, geonode-project): vanilla
- Installation method (manual, docker): docker
- Platform: Ubuntu
- Additional details:
I'm hadding few translation via this issue https://github.com/GeoNode/geonode/issues/12679
You have to modify the .po file and then re-create it with the python manage.py compilemessages --locale=fr
you can take this as example https://github.com/GeoNode/geonode/pull/12682/files
@mattiagiupponi I followed your method, but it was not successful I would like to know the specific steps for translating the menu. Thank you very much
I added the zh han language package under/usr/src/genode/genode/scale in the Django container and translated the en language package into Chinese. Compile into a. mo file, and modify the/usr/src/genode/genode/settings. py file and Django's global settings. py file to zh hans. And/mnt/volumes/statics/static/mapstore/gn translations/data.zh-HANSjson has also been translated, but when I visited the page, there were still some contents that were not translated. How do I need to handle it. help me @mattiagiupponi
And there will also be a problem, when I upload documents or datasets, the upload will fail, and when I check the logs, there will be a large number of "column documents_document. supplemental information_zh_ ans does not exist" similar to database errors
@paltman @frafra help me , Thank you very much