From 798cd1b7a0be2830855ad48038c4d7dad470c7eb Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 8 Oct 2020 00:10:56 +1000 Subject: [PATCH] Updated Translating to new languages (markdown) --- Translating-to-new-languages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translating-to-new-languages.md b/Translating-to-new-languages.md index f97fae2..3637d78 100644 --- a/Translating-to-new-languages.md +++ b/Translating-to-new-languages.md @@ -19,7 +19,7 @@ To create a new translation (Linux): To update an existing translation (Linux): 1. Update your Git repository by running `git pull`. If it gives you an error about local changes, run `git reset --hard` and `git clean -d -f -x` to clear them out, and run `git pull` again. But make sure you have nothing you want to save in the repo first, I won't take responsibility if you delete your work this way. -2. run `cd src/duckstation-qt` and `lupdate ./ -ts translations/duckstation-qt_LANGUAGE_CODE_HERE.ts` manually. This will add the new strings to the `.ts` file and report how many new strings there are for translation. +2. run `cd src/duckstation-qt` and `lupdate ./ ../core/ ../frontend-common/ -tr-function-alias translate+=TranslateString -tr-function-alias translate+=TranslateStdString -tr-function-alias QT_TRANSLATE_NOOP+=TRANSLATABLE -ts translations/duckstation-qt_LANGUAGE_CODE_HERE.ts` manually. This will add the new strings to the `.ts` file and report how many new strings there are for translation. 3. Open the translation file in Qt Linguist. Translating strings: