From d2fbacdd1a1d8cd65d69bfcccd61d074aa600cbc Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sun, 2 Jul 2023 10:12:19 +0800 Subject: [PATCH] doc: add document about how to update crowdin.ts --- website/docs/howto/how to update crowdin.ts file.md | 11 +++++++++++ website/mkdocs.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 website/docs/howto/how to update crowdin.ts file.md diff --git a/website/docs/howto/how to update crowdin.ts file.md b/website/docs/howto/how to update crowdin.ts file.md new file mode 100644 index 00000000..6573b122 --- /dev/null +++ b/website/docs/howto/how to update crowdin.ts file.md @@ -0,0 +1,11 @@ +This project uses crowdin to organize all the transactions.When some new transactions items are added.The crowdin.ts file needs to be updated to reflect the changes. Then crowdin will automatically generate all other transactions in different languages(Though all these translations still need to be translated manually or by Machine Translation). + +# how to update the crowdin.ts file + +``` +lupdate-pro.exe -no-obsolete -no-ui-lines goldendict.pro -ts locale\crowdin.ts +``` + +the option `-no-obsolete` will remove obsolete items from crowdin.ts file. + +the option `-no-ui-lines` will not generate line numbers in the crowdin.ts file. The line numbers changes too often which will make too much code changes between commits. \ No newline at end of file diff --git a/website/mkdocs.yml b/website/mkdocs.yml index 1b821876..307ef8fc 100644 --- a/website/mkdocs.yml +++ b/website/mkdocs.yml @@ -54,4 +54,5 @@ nav: - Use .clang-format: howto/how to use .clang-format to format the code.md - Breadpad crash analysis: howto/how to use breadpad crash analysis.md - Build ffmpeg on Windows: howto/how to build ffmpeg for visual studio.md + - How to update the crowdin.ts file: howto/how to update crowdin.ts file.md - 中文文档: index_cn.md