From 731d3f63fd19aae0e50a937df2b6fb87b779a0c0 Mon Sep 17 00:00:00 2001 From: Ran-Mewo <43445785+Ran-Mewo@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:17:50 +1100 Subject: [PATCH] Undo commiting translations --- .gitlab-ci.yml | 10 ++++++++-- translations.md | 17 ++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 038dfbc76..5ef6144eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,8 @@ variables: build: stage: build needs: - - translations + - job: translations + artifacts: true parallel: matrix: - MC_VER: [ @@ -113,4 +114,9 @@ translations: script: - if [ "$CI_COMMIT_BEFORE_SHA" = "0000000000000000000000000000000000000000" ] || git diff --name-only "$CI_COMMIT_BEFORE_SHA" "$CI_COMMIT_SHA" -- coreSubProjects/core/src/main/resources/assets/distanthorizons/lang | grep -q .; then crowdin upload sources; fi - crowdin download --export-only-approved --skip-untranslated-files - - for f in coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/*.json; do [ -e "$f" ] || continue; n="$(basename "$f" | tr '[:upper:]' '[:lower:]')"; [ "$(basename "$f")" = "$n" ] || mv "$f" "$(dirname "$f")/$n"; done + - for f in coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/*.json; do [ -e "$f" ] || continue; sed -i 's/\\\\n/\\n/g' "$f"; n="$(basename "$f" | tr '[:upper:]' '[:lower:]')"; [ "$(basename "$f")" = "$n" ] || mv "$f" "$(dirname "$f")/$n"; done + artifacts: + paths: + - coreSubProjects/core/src/main/resources/assets/distanthorizons/lang/** + expire_in: 1 day + when: always diff --git a/translations.md b/translations.md index 6d1567819..7c7454413 100644 --- a/translations.md +++ b/translations.md @@ -1,9 +1,12 @@ -# Translations +Translations are managed via Crowdin: https://crowdin.com/project/distant-horizons -Translations are managed on Crowdin: https://crowdin.com/project/distant-horizons +## How to help: +1. Create a Crowdin account +2. Join the project +3. Translate strings from `en_us.json`. -## Translators -- Create a Crowdin account and join the project. -- Translate strings from `en_us.json`. Keys ending with `@tooltip` are tooltips. -- Keep formatting codes intact: `§`, `%s`, `%d`, `%1$s`, `\n`. -- Do not edit non-English files in pull requests. +## Notes: +- Keys ending with `@tooltip` are tooltips. +- Keep formatting codes intact, IE: `§`, `%s`, `%d`, `%1$s`. +- For newlines, utilize **Shift + Enter** instead of `\n`. +- Do not edit non-English files in pull requests. \ No newline at end of file