From a4ee311d73fa1ab2a27172fb4c1a1edb9b373134 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Mon, 12 May 2025 11:59:37 -0400 Subject: [PATCH] Explain testing languages in TRANSLATING.md --- TRANSLATING.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/TRANSLATING.md b/TRANSLATING.md index 9857a54..6b7c891 100644 --- a/TRANSLATING.md +++ b/TRANSLATING.md @@ -57,5 +57,22 @@ Once you've launched Qt Linguist, you can open the `.ts` file for your language ### Step 5: Translate! -### Step 6: Push and Merge Your Translations +### Step 6: Test Your Translations +If your current system language is the one you're NUSGet translating into, then you can just run: +```shell +python NUSGet.py +``` +and the app should open in your language. + +If your system language does not match the language you're translating to, you can specify a language override, like this: +```shell +LANG=xx_XX.UTF-8 python NUSGet.py +``` +where `xx` is the two-letter language code, such as `ko` for Korean, and `XX` is the country code, such as `KR` for Korea. All together, that would give you: +```shell +LANG=ko_KR.UTF-8 python NUSGet.py +``` +which would open NUSGet with the Korean translations loaded. + +### Step 7: Push and Merge Your Translations When you're done translating, commit your translations and push them to GitHub. Then, open a pull request on the original repository, and you're all done!