docs: Fix Translation Support Script (#5263)

Signed-off-by: Yifei Ding <yifeiding@protonmail.com>
This commit is contained in:
Yifei Ding 2022-02-14 11:13:12 -08:00 committed by GitHub
parent c78676ff5f
commit 646bb02355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# This is a make shift script before the current structure of # This is a make shift script before the current structure of
# Klipper-translations can be directly utilized by mkdocs # Klipper-translations can be directly utilized by mkdocs
#git clone --depth 1 https://github.com/Klipper3d/klipper-translations git clone --depth 1 https://github.com/Klipper3d/klipper-translations
while IFS="," read dirname langname langdesc note; do while IFS="," read dirname langname langdesc note; do
# move and rename markdown files # move and rename markdown files
@ -26,4 +26,4 @@ while IFS="," read dirname langname langdesc note; do
# add to translations.yml # add to translations.yml
echo " ${langname}: ${langdesc}" >> ./docs/_klipper3d/translations.yml echo " ${langname}: ${langdesc}" >> ./docs/_klipper3d/translations.yml
done < <(egrep -v '^ *(#|$)' ./klipper-translations/active_translations | tail -n +2) done < <(egrep -v '^ *(#|$)' ./klipper-translations/active_translations)