-
Notifications
You must be signed in to change notification settings - Fork 71
How to translate AO2 in a nutshell for devs
windrammer edited this page Aug 4, 2020
·
4 revisions
As of August 5 of 2019 AO2 with support for localization is on branch i18n. Make sure to use and push changes to that branch until it's merged to master.
To make a new translation follow these steps:
- Edit the TRANSLATIONS section of Attorney_Online.pro adding a file for the translation you're going to make.
- Now edit resources.qrc and add that same file there too.
- Run
lupdate -verbose Attorney_Online.proif you're on Linux, orlupdate-pro -verbose Attorney_Online.proif you're on Windows. - Open Qt Linguist with the file you added in Attorney_Online.pro and that was generated by lupdate.
- When you finish your translation, run
lrelease Attorney_Online.proif you're on Linux, orlrelease-pro Attorney_Online.proif you're on Windows to generate the .qm file. - Finally compile AO to test your translation, if you need to change your translation get back to step 4.