aboutsummaryrefslogtreecommitdiff
path: root/scripts/apply-translations.sh
diff options
context:
space:
mode:
authornixpkgs-review <nixpkgs-review@example.com>2020-11-05 11:28:46 -0300
committernixpkgs-review <nixpkgs-review@example.com>2020-11-05 11:40:30 -0300
commitd676204e3b7cf2dd7c9aca470781dbd148035c12 (patch)
tree54e5661c2b6959c4c7e37a952f59b6b1a0bcfb2d /scripts/apply-translations.sh
parentAdd draft slides as unpublished with extracted po files (diff)
downloadeuandre.org-d676204e3b7cf2dd7c9aca470781dbd148035c12.tar.gz
euandre.org-d676204e3b7cf2dd7c9aca470781dbd148035c12.tar.xz
Move translated pages to po files
Diffstat (limited to '')
-rwxr-xr-xscripts/apply-translations.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh
index 2620638..875a968 100755
--- a/scripts/apply-translations.sh
+++ b/scripts/apply-translations.sh
@@ -3,7 +3,7 @@ set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../
-for f in $(find _tils -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep -v './drafts/' | grep -v './templates/'); do
+for f in $(git ls-files | egrep '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do
l="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$l" != 'en' ]]; then
ref="$(grep '^ref: ' "$f" | awk '{print $2}')"