How to get started creating translations for PureRef:

- If it doesn't exist, create a folder named 'lang' inside the PureRef install directory. (Same folder where 'PureRef.exe' is located)
- Move all the files from this directory into the 'lang' folder.
- Make a copy of 'english.ts' and name the new file the language you want to create translations for, eg 'spanish.ts'.
- Open 'linguist/linguist.exe'.
- Click File -> Open... and select your new .ts file.
- Click Edit -> Translation File Settings and change Target language and country to the correct language/country then press save.
- Read docs how to use Qt Linguist here: https://doc.qt.io/qt-5/linguist-translators.html
- Make some translation and press File -> Release, this will create a file with the extension .qm in the 'lang' directory.
- Start PureRef and go to Settings -> Appearance, there should be a "Language" drop down there now where you can select your new language.
- Switch to your language and the strings in PureRef should update automatically to your new translations.
- Repeat the process in Qt Linguist, every time you Release all strings should be hot reloaded in PureRef so you don't have to restart.

If some strings don't react to translations or they don't hot reload and requires a restart, or you encounter any other issues, just let us know and we'll look into it.

How to update your translations to the latest version of PureRef:

- Download the new translation package with a new english.ts in it and replace the old one in your lang folder.
- Open a terminal in the lang folder and run: linguist/lupdate.exe -no-obsolete english.ts -ts spanish.ts
- It will output information about the changes, then just repeat the above steps for the new / changed strings.
