prep for i18n updates

Update scripts will be split into separate repo
This commit is contained in:
Damien Elmes 2020-11-11 16:12:55 +10:00
parent a97ea55f17
commit c4f28a0a17
10 changed files with 8 additions and 75 deletions

1
qt/ftl/.gitignore vendored
View file

@ -1 +0,0 @@
repo

View file

@ -1,11 +0,0 @@
#!/bin/bash
set -eu -o pipefail ${SHELLFLAGS}
echo "Downloading latest translations..."
if [ ! -d repo ]; then
git clone https://github.com/ankitects/anki-desktop-ftl repo
fi
(cd repo && git pull)

View file

@ -1,11 +0,0 @@
#!/bin/bash
#
# expects to be run from the ftl folder
#
set -eu -o pipefail ${SHELLFLAGS}
test -d repo || exit 1
rsync -av --delete *.ftl repo/desktop/templates/
(cd repo && git add desktop; git commit -m update || true; git push)

3
qt/po/.gitignore vendored
View file

@ -1,4 +1 @@
.build
repo
ftl
strings*.json

View file

@ -1,11 +0,0 @@
#!/bin/bash
set -eu -o pipefail ${SHELLFLAGS}
echo "Downloading latest translations..."
if [ ! -d repo ]; then
git clone https://github.com/ankitects/anki-desktop-i18n repo
fi
(cd repo && git pull)

View file

@ -1,6 +0,0 @@
#!/bin/bash
set -eu -o pipefail ${SHELLFLAGS}
scripts/update-po-template
(cd repo && git add desktop; git commit -m update; git push)

View file

@ -123,11 +123,11 @@ def register_repos():
core_i18n_commit = "b9fdeadef0b92a6d9acadbce01e43cba53739df6"
core_i18n_shallow_since = "1602372775 +0000"
desktop_i18n_commit = "51320cdc51fbfb3d60791467879069ea3a8188a6"
desktop_i18n_shallow_since = "1600900614 +0000"
qtftl_i18n_commit = "51320cdc51fbfb3d60791467879069ea3a8188a6"
qtftl_i18n_shallow_since = "1600900614 +0000"
desktop_i18n_po_commit = "710be3864b356ddf90253034c6acfcb420dffeff"
desktop_i18n_po_shallow_since = "1603966644 +0000"
qtpo_i18n_commit = "710be3864b356ddf90253034c6acfcb420dffeff"
qtpo_i18n_shallow_since = "1603966644 +0000"
new_git_repository(
name = "rslib_ftl",
@ -157,8 +157,8 @@ filegroup(
exports_files(["l10n.toml"])
""",
commit = desktop_i18n_commit,
shallow_since = desktop_i18n_shallow_since,
commit = qtftl_i18n_commit,
shallow_since = qtftl_i18n_shallow_since,
remote = "https://github.com/ankitects/anki-desktop-ftl",
)
@ -169,7 +169,7 @@ exports_files(glob(["**/*.pot", "**/*.po"]),
visibility = ["//visibility:public"],
)
""",
commit = desktop_i18n_po_commit,
shallow_since = desktop_i18n_po_shallow_since,
commit = qtpo_i18n_commit,
shallow_since = qtpo_i18n_shallow_since,
remote = "https://github.com/ankitects/anki-desktop-i18n",
)

View file

@ -1 +0,0 @@
repo

View file

@ -1,11 +0,0 @@
#!/bin/bash
set -eu -o pipefail ${SHELLFLAGS}
echo "Downloading latest translations..."
if [ ! -d repo ]; then
git clone https://github.com/ankitects/anki-core-i18n repo
fi
(cd repo && git pull)

View file

@ -1,12 +0,0 @@
#!/bin/bash
#
# expects to be run from the ftl folder
#
set -eu -o pipefail ${SHELLFLAGS}
test -d repo || exit 1
rsync -av --delete *.ftl repo/core/templates/
(cd repo && git add core; git commit -m update || true; git push)