From a4e55e8a935c3c1df1a7afc1cc89004028125e9f Mon Sep 17 00:00:00 2001 From: BruceChen Date: Mon, 28 Nov 2022 11:56:36 +0800 Subject: [PATCH] [SKIP_BUILD] Update Crowdin settings --- .github/workflows/deploy-doc-only.yml | 4 +++- README.md | 2 +- crowdin.yml | 2 +- docs/guide/installation.md | 22 ++++++++++++++++++---- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-doc-only.yml b/.github/workflows/deploy-doc-only.yml index 0bd185a6..52707f29 100644 --- a/.github/workflows/deploy-doc-only.yml +++ b/.github/workflows/deploy-doc-only.yml @@ -20,11 +20,13 @@ jobs: - name: Sync translations from crowdin uses: crowdin/github-action@1.5.0 with: - upload_translations: true + upload_sources: true + upload_translations: false download_translations: true localization_branch_name: l10n_master create_pull_request: false + push_translations: false base_path: ${{ github.workspace }} env: diff --git a/README.md b/README.md index 9f285e71..76db9675 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@
-[English](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/README.md) | [Nederlands](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Dutch.md) | [Русский](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Russian.md) | [Српски](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Serbian_Cyrillic.md) | [Türkçe](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Turkish.md) | [Tiếng Việt](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Vietnamese.md) | [简体中文](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Chinese_Simplified.md) | [繁體中文](https://github.com/MCCTeam/Minecraft-Console-Client/blob/l10n_master/README/README-Chinese_Traditional.md) +[English](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/README.md) | [Nederlands](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Dutch.md) | [Русский](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Russian.md) | [Српски](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Serbian_Cyrillic.md) | [Türkçe](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Turkish.md) | [Tiếng Việt](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Vietnamese.md) | [简体中文](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Chinese_Simplified.md) | [繁體中文](https://github.com/MCCTeam/MCCTeam.github.io/blob/master/MCC-README/README-Chinese_Traditional.md)
diff --git a/crowdin.yml b/crowdin.yml index 6ddd711b..6be7ee2d 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -15,7 +15,7 @@ }, { "source": "/README.md", - "translation": "/README/README-%language%.md" + "translation": "/docs/.vuepress/public/MCC-README/README-%language%.md" }, { "source": "/docs/.vuepress/translations/en.json", diff --git a/docs/guide/installation.md b/docs/guide/installation.md index df7291ad..f343e012 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -57,12 +57,25 @@ Install [Git](https://www.git-scm.com/) 4. Clone the [Git Hub Repository](https://github.com/MCCTeam/Minecraft-Console-Client) by typing end executing the following command: ```bash -git clone --branch l10n_master https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive +git clone https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive ``` 5. Once the repository has been cloned, you can close the `Git Bash` terminal emulator 6. Open up the new cloned folder +#### Download translation resources (optional) + +1. Visit [MCC project's homepage on Crowdin](https://crowdin.com/project/minecraft-console-client). +2. You will need to log in to your Crowdin account in order to download. +3. Click on the language you want to download the translation for. +4. Find `MinecraftClient` -> `Resources` -> `Translations` -> `MCC in-app text and settings file comments` +5. Click the button `` at the end of the line. +6. Click Download and save the file to folder `/MinecraftClient/Resources/Translations/`. +7. Find `MinecraftClient` -> `Resources` -> `AsciiArt` -> `ASCII Arts (Please use fixed-width fonts for editing)` +8. Click the button `` at the end of the line. +9. Click Download and save the file to folder `/MinecraftClient/Resources/AsciiArt/`. +10. If you need to download a translation in another language, go to step 3 to continue. + #### Building using the Visual Studio 1. Open up the `MinecraftClient.sln` via Visual Studio @@ -114,11 +127,12 @@ Requirements: 2. Recursively clone the [Git Hub Repository](https://github.com/MCCTeam/Minecraft-Console-Client) by typing end executing the following command: ```bash -git clone --branch l10n_master https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive +git clone https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive ``` 3. Go to the folder you've cloned (should be `Minecraft-Console-Client`) -4. Run the following command to build the project: +4. If you want to download translation resources, please check out [Download translation resources](#download-translation-resources-optional) +5. Run the following command to build the project: - On Linux: @@ -171,7 +185,7 @@ Requirements: 1. Clone the [Git Hub Repository](https://github.com/MCCTeam/Minecraft-Console-Client) by typing end executing the following command: ```bash -git clone --branch l10n_master https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive +git clone https://github.com/MCCTeam/Minecraft-Console-Client.git --recursive ``` 2. Navigate to `Minecraft-Console-Client/Docker`