diff options
author | EuAndreh <eu@euandre.org> | 2020-11-03 17:26:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-03 17:27:05 -0300 |
commit | b5006e6368b46fa8b673110454f79a2755c20c4f (patch) | |
tree | e15a908a5e58cb7ab7c1c237831e868311e98985 /scripts | |
parent | Add all generated .po files (diff) | |
download | euandre.org-b5006e6368b46fa8b673110454f79a2755c20c4f.tar.gz euandre.org-b5006e6368b46fa8b673110454f79a2755c20c4f.tar.xz |
sync-translations.sh: Disable generating translated files for now
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sync-translations.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index 2567f99..67d3609 100755 --- a/scripts/sync-translations.sh +++ b/scripts/sync-translations.sh @@ -20,7 +20,8 @@ for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_sit l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" if [[ "$l" != 'en' ]]; then ref="$(grep '^ref: ' "$f" | awk '{print $2}')" + # shellcheck disable=2046 FROM=$(find $(find . -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -exec grep -l '^lang: en$' {} \;) - po2md "$FROM" --pofiles "locale/$l/LC_MESSAGES/$ref.po" --quiet --save "$f" + echo po2md "$FROM" --pofiles "locale/$l/LC_MESSAGES/$ref.po" --quiet --save "$f" fi done |