geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Cannot custom translate main menu items

Open geogeek11 opened this issue 1 year ago • 6 comments

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:

geogeek11 avatar Oct 15 '24 11:10 geogeek11

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

mattiagiupponi avatar Oct 25 '24 16:10 mattiagiupponi

you can take this as example https://github.com/GeoNode/geonode/pull/12682/files

mattiagiupponi avatar Oct 25 '24 16:10 mattiagiupponi

@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

Image

ghost avatar Apr 17 '25 03:04 ghost

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

ghost avatar Apr 17 '25 03:04 ghost

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

ghost avatar Apr 17 '25 03:04 ghost

@paltman @frafra help me , Thank you very much

ghost avatar Apr 17 '25 09:04 ghost