Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show translated forms? #21

Open
meierrom opened this issue Mar 31, 2023 · 2 comments
Open

How to show translated forms? #21

meierrom opened this issue Mar 31, 2023 · 2 comments

Comments

@meierrom
Copy link

Hi folks,

I had a closer look at form translations according to the manual of qwc-data-service.

I was able to create translation files with the provided script, which is translateui.sh, e.g. qwc_demo_edit_polygons_fr.ts or qwc_demo_edit_polygons_fr-FR.ts. I then edited the translation files using QT 5 Linguist.

I'm using qwc-docker so I stored all files in volumes/qwc2/assets/forms/autogen.

I then changed the locale of my browser to french. I was also experimenting with locale=fr-FR in the url. However, translated forms never showed in my case. Instead the original is showing.

What am I missing? How can I debug this?

Kind regards,
Roman

@manisandro
Copy link
Member

In the network inspector, what request do you see for the UI form?

@meierrom
Copy link
Author

Hi Sandro,

Thanks for the fast reply!

What network inspector tool do you recommend on debian/ubuntu? Or are you referring to a browser tool?

I checked the log and it shows the following:

qwc-api-gateway_1 | 172.19.0.1 - - [31/Mar/2023:10:15:37 +0000] "GET /assets/forms/autogen/qwc_demo_edit_polygons.ui?v=1680251695&lang=fr-FR HTTP/1.1" 200 1567 "http://localhost:8088/?locale=fr-FR&l=edit_points%2Cedit_lines%2Cedit_polygons%2Cgeographic_lines%2Ccountry_names%2Cstates_provinces%2Ccountries&bl=bluemarble&t=qwc_demo&c=950816%2C6003924&s=500" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" "-"

Kind regards,
Roman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants