diff --git a/.gitignore b/.gitignore index 941e2353f..52006ec96 100644 --- a/.gitignore +++ b/.gitignore @@ -31,9 +31,6 @@ luacov.stats.out trace-out.txt koreader-* -l10n/* -!l10n/Makefile -!l10n/README.md i18n /.cproject diff --git a/.gitmodules b/.gitmodules index 9a175017e..14ff62899 100644 --- a/.gitmodules +++ b/.gitmodules @@ -15,3 +15,6 @@ path = resources/fonts url = https://github.com/koreader/koreader-fonts.git shallow = true +[submodule "l10n"] + path = l10n + url = https://github.com/koreader/koreader-translations.git diff --git a/l10n b/l10n new file mode 160000 index 000000000..1afc501b1 --- /dev/null +++ b/l10n @@ -0,0 +1 @@ +Subproject commit 1afc501b1191985e3f1203dab14cbf4d0815f691 diff --git a/l10n/.tx/config b/l10n/.tx/config deleted file mode 100644 index be9284551..000000000 --- a/l10n/.tx/config +++ /dev/null @@ -1,9 +0,0 @@ -[main] -host = https://www.transifex.com - -[koreader.koreader] -file_filter = /koreader.po -source_file = templates/koreader.pot -source_lang = en -type = PO - diff --git a/l10n/Makefile b/l10n/Makefile deleted file mode 100644 index da0d9fed6..000000000 --- a/l10n/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -all: bootstrap push pull - -bootstrap: - tx set --auto-local -r koreader.koreader "/koreader.po" \ - --source-language=en \ - --source-file "templates/koreader.pot" --execute - -pull: - tx pull -a -f - -push: - tx push -sl en - -.PHONY: all clean - diff --git a/l10n/README.md b/l10n/README.md deleted file mode 100644 index 176320792..000000000 --- a/l10n/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# How to sync this folder with transifex - -1. Install the transifex client. For example, on Debian or Ubuntu: `sudo apt install transifex-client`. - -2. Configure the client: - https://docs.transifex.com/client/client-configuration - -3. Pull the changes from transifex: `make pull`