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

Multilanguage GUI #57

Open
bovirus opened this issue Jan 27, 2025 · 14 comments
Open

Multilanguage GUI #57

bovirus opened this issue Jan 27, 2025 · 14 comments

Comments

@bovirus
Copy link
Contributor

bovirus commented Jan 27, 2025

@DavidXanatos

Is it possible to have a multilanguage GUI?

Where can I find the file that cotains strings to localize?

One time that I have the language file translated how can test it in place?

Thanks.

@DavidXanatos
Copy link
Owner

look here : https://github.com/DavidXanatos/TaskExplorer/tree/master/TaskExplorer
for the *.ts files, if the right one for your language is not there you can create one with qt or ask me to make one for you

@bovirus
Copy link
Contributor Author

bovirus commented Jan 27, 2025

@DavidXanatos

I propose you to add in main page the info how to add a new translation.
It will help translator to localzie your program.

Please take care the de/pl .ts file ha a error about duplicated context

Image

  • Italian language

I will work on Italian tranbslation (51 strings translted on 1871 total strings).

One time that I have .ts/qm file how can test new translation?
Where should copy the .qm file to see ne language in GUI

  • Installer

About the installer can I help you to localize the installer to add other language?
Which is the installer script file?

Thanks.

@bovirus
Copy link
Contributor Author

bovirus commented Jan 27, 2025

@DavidXanatos

Please check that seems that en/it/de/pl language file seems not aligned.

Please run command lupdate to update .ts file using same source file.

Please consider if you can not add source lines in language files to avoid changes of language fil also if it's really don't change strings (but only referring in source code).

@DavidXanatos
Copy link
Owner

I'll run lupdate asap

installer script is here: https://github.com/DavidXanatos/TaskExplorer/blob/master/Installer/TaskExplorer.iss

@bovirus
Copy link
Contributor Author

bovirus commented Jan 27, 2025

@DavidXanatos

Thanks.
You Inno Setup Version?
Unicode version or not?
Pre-processor command enabled?

Company name that you installer should see in exe file properties
Starting year of your copyright about this software? (ex. 2011)
The copyright message is (c) xxxx-yyyy zzzzzzz
xxxx - starting year of copyright (2019?)
yyyy - ending (currenT) year for copyright (2025)
zzzz - Company name (DavidXanatos)

@bovirus
Copy link
Contributor Author

bovirus commented Jan 27, 2025

@DavidXanatos

if you can use "lupdate -no-ui-lines -no-obsolete"
-no-ui-lines = no refernce to source lines
-no-obsolete = not include obsolete strings

I posted the .iss file modified-.
Add languages.
Fixed issues about File version
Add string for copyright-

@DavidXanatos
Copy link
Owner

inno setup 6.3.3 unicode

the ui does not load qm files right now will add it to 1.6.1 asap, just need to copy the code from sandman.exe

@DavidXanatos
Copy link
Owner

lupdate commited

@love-code-yeyixiao
Copy link

Please add Zh_Cn.

@DavidXanatos
Copy link
Owner

Please add Zh_Cn.

done

@bovirus
Copy link
Contributor Author

bovirus commented Jan 28, 2025

@DavidXanatos

Did you apply lupdate to all language file (en/DE/IT/PL/ZH_CN)?

EN/DE/PL/IT language files contains source references
ZH_CN language file not include source references.

EN/DE/PL language fiels are aligned as string order as English master
IT language file seems not aligned as string order as English master

EN/DE/IT/PL files have 2132 strings
ZH_CN file has 2146 strings (+14 strings).

The additional 14 strings availble in ZH_CN and not in EN/DE/PL/IT files.

Image

@bovirus
Copy link
Contributor Author

bovirus commented Jan 28, 2025

@DavidXanatos

In language file seems there not sueful parts like "oldsource" line

< oldsource >Path/Command Line (with wildcards)|Execution|CPU Priority|CPU Affinity|I/O Priority|Page Priority|< / oldsource >

or byte value="xd"

< byte value="xd" / >

@DavidXanatos
Copy link
Owner

bte while loading qm files form the translattion 7z,
it loads them from a folder if manually unpacked
[Application dir]\translations\taskexplorer_*
for testing good enough

yea i run lupdate on the pro file, zh_cn was added afterwards may be the lupdate command did not work as intended

@bovirus
Copy link
Contributor Author

bovirus commented Jan 28, 2025

@DavidXanatos

the command to use is

lupdate -pro TaskExplorer.qc.pro -no-obsolete -no-ui-lines -locations none

The you get these files (I purged oldsource strings not necessary and code xd)
TaskExplorer-R02.zip
I made a new PR with these language fles prged and updated (all fiels have 2136 strings).

Please check if you can set lupdate parameters with lupdateOptions="" in source code

ex. lupdateOptions="-no-obsolete -no-ui-lines -locations none"

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

3 participants