summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-04-28 23:46:05 +0300
committerGitHub <noreply@github.com>2018-04-28 23:46:05 +0300
commit5424f75a636b82872e99345fb28b3664420d4901 (patch)
treed791ffe1d0d709368ea02077177be72031ba8c14 /docs
parentfb2f8dcf3c93bbac668cfa953e693ac5cdcd844c (diff)
downloadgitea-5424f75a636b82872e99345fb28b3664420d4901.tar.gz
gitea-5424f75a636b82872e99345fb28b3664420d4901.zip
Fix building of docs with latest hugo version (#3856)
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/scripts/trans-copy2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/scripts/trans-copy b/docs/scripts/trans-copy
index 17f197946b..7732192885 100755
--- a/docs/scripts/trans-copy
+++ b/docs/scripts/trans-copy
@@ -28,6 +28,8 @@ for SOURCE in $(find ${ROOT}/content -type f -iname *.en-us.md); do
if [[ ! -f ${DEST} ]]; then
echo "Creating fallback for ${DEST#${ROOT}/content/}"
cp ${SOURCE} ${DEST}
+ sed -i.bak "s/en\-us/${LOCALE}/g" ${DEST}
+ rm ${DEST}.bak
fi
done
done