mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
prep for i18n updates
Update scripts will be split into separate repo
This commit is contained in:
parent
a97ea55f17
commit
c4f28a0a17
10 changed files with 8 additions and 75 deletions
1
qt/ftl/.gitignore
vendored
1
qt/ftl/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
repo
|
|
@ -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)
|
|
@ -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
3
qt/po/.gitignore
vendored
|
@ -1,4 +1 @@
|
|||
.build
|
||||
repo
|
||||
ftl
|
||||
strings*.json
|
||||
|
|
|
@ -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)
|
|
@ -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)
|
16
repos.bzl
16
repos.bzl
|
@ -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",
|
||||
)
|
||||
|
|
1
rslib/ftl/.gitignore
vendored
1
rslib/ftl/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
repo
|
|
@ -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)
|
|
@ -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)
|
||||
|
Loading…
Reference in a new issue