diff options
author | Lauris BH <lauris@nix.lv> | 2018-04-28 23:46:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-28 23:46:05 +0300 |
commit | 5424f75a636b82872e99345fb28b3664420d4901 (patch) | |
tree | d791ffe1d0d709368ea02077177be72031ba8c14 /docs | |
parent | fb2f8dcf3c93bbac668cfa953e693ac5cdcd844c (diff) | |
download | gitea-5424f75a636b82872e99345fb28b3664420d4901.tar.gz gitea-5424f75a636b82872e99345fb28b3664420d4901.zip |
Fix building of docs with latest hugo version (#3856)
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/scripts/trans-copy | 2 |
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 |