Undo commiting translations
This commit is contained in:
+8
-2
@@ -35,7 +35,8 @@ variables:
|
|||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
needs:
|
needs:
|
||||||
- translations
|
- job: translations
|
||||||
|
artifacts: true
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- MC_VER: [
|
- MC_VER: [
|
||||||
@@ -113,4 +114,9 @@ translations:
|
|||||||
script:
|
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
|
- 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
|
- 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
|
||||||
|
|||||||
+10
-7
@@ -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
|
## Notes:
|
||||||
- Create a Crowdin account and join the project.
|
- Keys ending with `@tooltip` are tooltips.
|
||||||
- Translate strings from `en_us.json`. Keys ending with `@tooltip` are tooltips.
|
- Keep formatting codes intact, IE: `§`, `%s`, `%d`, `%1$s`.
|
||||||
- Keep formatting codes intact: `§`, `%s`, `%d`, `%1$s`, `\n`.
|
- For newlines, utilize **Shift + Enter** instead of `\n`.
|
||||||
- Do not edit non-English files in pull requests.
|
- Do not edit non-English files in pull requests.
|
||||||
Reference in New Issue
Block a user