aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/apply-translations.sh2
-rwxr-xr-xscripts/extract-translations.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh
index 5920717..5f87e0e 100755
--- a/scripts/apply-translations.sh
+++ b/scripts/apply-translations.sh
@@ -7,6 +7,6 @@ for f in $(git ls-files | grep -E '.(md|slides)$' | grep -Ev '^(vendor/reveal.js
ref="$(grep '^ref: ' "$f" | awk '{print $2}')"
# shellcheck disable=2046
FROM=$(find $(find . -type f -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -type f -exec grep -l '^lang: en$' {} \;)
- po2md "$FROM" --pofiles "locale/$l/LC_MESSAGES/${FROM%.md}.po" --quiet --save "$f"
+ po2md "$FROM" --pofiles "po/$l/LC_MESSAGES/${FROM%.md}.po" --quiet --save "$f"
fi
done
diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh
index 2333865..61663b8 100755
--- a/scripts/extract-translations.sh
+++ b/scripts/extract-translations.sh
@@ -7,7 +7,7 @@ for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$'
file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [ "$file_lang" = 'en' ]; then
for l in $TRANSLATIONS; do
- OUT="locale/$l/LC_MESSAGES/${f%.md}.po"
+ OUT="po/$l/LC_MESSAGES/${f%.md}.po"
mkdir -p "$(dirname "$OUT")"
md2po "$f" --include-codeblocks --quiet --save --po-filepath "$OUT"
done