[Lizmap] lizmap. translation of project specific file names

Marin M marin.mirosevic at gmail.com
Tue Aug 16 00:51:24 PDT 2022


hi,

I want to achieve automatic translation of project specific file names
which are in a scandinavian language (mostly vector and raster names) to
English.

I have used this python script attached
lizmap-javascript-scripts/library/translation/qgis_project at master ·
3liz/lizmap-javascript-scripts · GitHub
<https://github.com/3liz/lizmap-javascript-scripts/tree/master/library/translation/qgis_project>


get_translatable_string.py
<https://github.com/3liz/lizmap-javascript-scripts/blob/master/library/translation/qgis_project/get_translatable_string.py>

After running the  python script in QGIS I am getting these 2 files, in the
media folder, then after editing "translation_en.json" to determine english
equivalents, the project is transferred to the Lizmap folder, created on
Filezilla and enabled on the web client.

[image: image.png]

However I am not seeing anything translated to English even though my Edge
browser  supports english.

Is there maybe some addition needed to the URL connected to Web Lizmap
project, to be added like for ex. «?lang=US_en» ?

[image: image.png]

best regards

Marin Mirosevic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220816/3e163372/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9902 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220816/3e163372/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 15986 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220816/3e163372/attachment-0003.png>


More information about the Lizmap mailing list