Skip to content

FAQ_Contribute

mhtvsSFrpHdE edited this page Oct 14, 2022 · 2 revisions

Contribute

Translate

Install Qt Linguist to compile translate source code to release file.

Update exist translate

Click on "File\Open", select multiple file to open, prefetch_en_US.ts and your language one.
They are located at qpp\prefetch\Source\Translate\File.
Press Ctrl+Enter after finished a translation to mark it available.
If a translation is not "available", the English version will be used,
so you don't need to translate all at once.
If you see something like "Rarely necessary to modify these texts",
ignore the translation unless it is necessary.

Test translate

Click on "File\Release All", *.qm file should save in the same folder with *.ts.
Move the *.qm file to "program install folder\translate\prefetch",
they should load automatically if the file name match the format.
Or you can use command lang languageName, or put the value to "prefetch.ini\Language=languageName".
For example, file name prefetch_en_US.qm, command lang en_US, ini Language=en_US.

Create new translate

If your language file not exist:

  1. Duplicate the prefetch_en_US.ts file, maybe copy and paste.
  2. Name the file to something like prefetch_en_GB.ts, prefetch_zh_TW.ts.
    If file name not match the format, it is still possible to use, but can't recognize automatically on launch.
  3. In Linguist, click on "File\Open", but only open 1 file, the new one.
  4. "Edit\Translation File Settings...".
  5. Change "Target language" to your language, "OK" to confirm.
  6. "File\Save", "File\Close"
  7. "File\Open", select multiple file to open, prefetch_en_US.ts and your language one.
  8. Go to Update exist translate to know how to edit translate.