diff --git a/README.md b/README.md index 20c6325..2b91007 100755 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Configure Tricky Store target.txt with KSU WebUI. | Periodically add all app to target.txt | ❌ | ## Localization -- Read [Translation Guide](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/module/webui/locales/A-translate.md) +- Read [Translation Guide](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/module/webui/locales/GUIDE.md) ## Acknowledgement - [j-hc/zygisk-detach](https://github.com/j-hc/zygisk-detach) - KSU WebUI template diff --git a/module/webui/locales/A-translate.md b/module/webui/locales/A-translate.md deleted file mode 100644 index b3d9f2b..0000000 --- a/module/webui/locales/A-translate.md +++ /dev/null @@ -1,19 +0,0 @@ -# Translation Guide -## Fix Bad Translation -1. Fork this repository. -2. Find your language string file in `/module/webui/locales/`. -3. Edit the string value with translated incorrectly. -4. Create a Pull Request. - ---- -## Add a New Language -### Simple -- Contact me in Telegram to add a new translation langauge. - -### Advanced -1. Fork this repository. -2. Make a copy of `/module/webui/locales/A-template.json` -3. Rename it to `language_code-COUNTRY_CODE.json`, e.g., `en-US.json`. -4. Translate the string value inside. -5. Add the language code to `/module/webui/locales/available-lang.json`, this step is necessary for displaying the language in the WebUI. -6. Create a Pull Request. diff --git a/module/webui/locales/GUIDE.md b/module/webui/locales/GUIDE.md new file mode 100644 index 0000000..6d47313 --- /dev/null +++ b/module/webui/locales/GUIDE.md @@ -0,0 +1,25 @@ +# Translation Guide + +## Update Existing Language + +1. [Fork this repository](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/fork). +2. Find your language string file in `module/webui/locales/strings`. +3. Edit the string value that translated incorrectly or add missing translation field. +4. Make a Pull Request. + +--- + +## Add a New Language + +### Simple + +- Contact me in Telegram to add a new translation langauge. + +### Advanced + +1. [Fork this repository](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/fork). +2. Copy `module/webui/locales/template.xml` to strings folder. +3. Rename it to `language_code.xml` or `language_code-REGION_CODE.xml`, e.g., `en.xml` or `zh-CN.xml`. +4. Translate the string value inside. +5. Add the language to `module/webui/locales/languages.json`, this step is necessary for displaying your language in WebUI. +6. Make a Pull Request.