aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_klipper3d/fetch-translations.sh
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-04-05 12:20:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-04-06 19:04:48 -0400
commit444d209cce1c65b2b0d166990d4ec1bcd7632202 (patch)
tree6d9d1bc428ff5abed33c2294cc3ca6b618e86897 /docs/_klipper3d/fetch-translations.sh
parentdc7b02f329660a716a180c6a17ea15fc265d4527 (diff)
downloadkutter-444d209cce1c65b2b0d166990d4ec1bcd7632202.tar.gz
kutter-444d209cce1c65b2b0d166990d4ec1bcd7632202.tar.xz
kutter-444d209cce1c65b2b0d166990d4ec1bcd7632202.zip
_klipper3d: Remove translation stubs
Support for language translations on the klipper3d.org site was disabled in commit c067d4df. Fully remove the support in this commit. This is in preparation for an alternate implementation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/_klipper3d/fetch-translations.sh')
-rwxr-xr-xdocs/_klipper3d/fetch-translations.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/docs/_klipper3d/fetch-translations.sh b/docs/_klipper3d/fetch-translations.sh
deleted file mode 100755
index e7e36580..00000000
--- a/docs/_klipper3d/fetch-translations.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-# Modify the file structure before running mkdocs
-# This is a make shift script before the current structure of
-# Klipper-translations can be directly utilized by mkdocs
-
-git clone --depth 1 https://github.com/Klipper3d/klipper-translations
-
-while IFS="," read dirname langname langdesc note; do
- # move and rename markdown files
- local_dir="klipper-translations/docs/locales/$dirname"
- echo "Moving $dirname to $langname"
- for file in "$local_dir"/*.md; do
- mdfilename="${file/$local_dir\//}"
- mv "$file" "./docs/${mdfilename//.md/.${langname}.md}"
- done
-
- # manually replace index.md if a manual-index.md exist
- manual_index="./docs/manual-index.$langname.md"
-
- if [[ -f "$manual_index" ]];then
- mv "$manual_index" "./docs/index.${langname}.md"
- echo "replaced index.${langname}.md with $manual_index"
- else
- echo "Manually translated index file for $dirname not found!"
- fi
-
- # add to translations.yml
- echo " ${langname}: ${langdesc}" >> ./docs/_klipper3d/translations.yml
-done < <(egrep -v '^ *(#|$)' ./klipper-translations/active_translations)