-
Notifications
You must be signed in to change notification settings - Fork 70
How to translate AO2 in a nutshell for devs
windrammer edited this page May 10, 2021
·
4 revisions
As of August 5 of 2019 AO2 has support for localization on branch i18n. Make sure to use and push changes to that branch until it's merged to master.
As of many moons ago i18n was merged into master, but ask longbyte what is actually the development branch at the moment you're reading this since it always changes.
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.