How to add new languages to ScreenPlay step by step guide
-
-
Fork ScreenPlay
-
Copy a pre exsisting langauge fil and change the name
-
Search for your langauge code (french in this example) http://www.lingoes.net/en/translator/langcode.htm
-
Open your langauge ts ScreenPlay_fr.ts and change the language="??????" to your liking
-
Open your ScreenPlay_fr.ts file via linguist ("C:\Qt\5.14.0\msvc2017_64\bin\linguist.exe")
-
Translate text by text. DeepL can help with some languages https://www.deepl.com/translator
-
Add to the ScreenPlay project file
-
Add the new langauge to the settings ui
-
Add to onCurrentIndexChanged
case "French": languageKey = "fr"
10.Add to comboBoxListModel
ListElement { text: "French" }
11. Update Release Translations
12. Add your newly created ScreenPlay_fr.qm to ScreenPlay Rsources.qrc
11. Commit your changes 12. Create a merge request https://docs.gitlab.com/ee/user/project/merge_requests/
Example commit https://gitlab.com/kelteseth/ScreenPlay/commit/6c88fc87fb9ce5647316a6757ffd9e49ee3585ad
-