How to generate translation file
-
hi,
yesterday, I was trying to make a translation file for QWebEnge module,
I download the source file and add the line below to src.pro fileTRANSLATIONS += qtwebenginewidgets_zh.ts
and I load the src.pro by qtcreator, and start lupdate process,
but after a fully day, the lupdate process is still runnning,
and from qtcreator I see a lot of same file
so was ther something wrong,.
please help me, thanks a lot -
Ignore the messages - it's coming from lupdate when it can't parse some code. The question is - is the ts file successfully created?
-
@Christian-Ehrlicher
Thanks for your reply.
the ts file did not create, after I cleared the message, another same message came out, and the lupdate has been running for a whole day, I don't know if this is normal. -
@Mozzie said in How to generate translation file:
I download the source file
Could you point to what you downloaded?
The source code of QWebEngine?Are you adding/modifying/removing strings from the module?
If not, and if you only want to translate existing strings from it, I guess you may want to work with the translations package.
Download it, copy any of the existing files, i.e. qtwebengine_de.ts (German translation, but it has all the strings to be translated) into qtwebengine_zh.ts and translate it to Chinese using Linguist.
When you're done, use lrelease tool to have your qtwebengine_zh.qm file created which you can install into your application.
-
@Pablo-J-Rogina
Thank you very much.
Yes, I just download the source code of QWebEngine and I did not change anything.
And I will try your way, I think it would work.
Thanks again, this is very helpful.