diff options
author | Maxime Quandalle <mquandalle@wekan.io> | 2016-07-20 16:17:21 +0200 |
---|---|---|
committer | Maxime Quandalle <mquandalle@wekan.io> | 2016-07-20 16:17:21 +0200 |
commit | 98997cc47dbbef1cc8d1e7e7ccaae1a5a474b56e (patch) | |
tree | e881f2827808fcd0fd9cb9431bcfded469c340aa | |
parent | 8d555707f2863caa684c0f8fbe69d79d28c91346 (diff) | |
download | wekan-98997cc47dbbef1cc8d1e7e7ccaae1a5a474b56e.tar.gz wekan-98997cc47dbbef1cc8d1e7e7ccaae1a5a474b56e.tar.bz2 wekan-98997cc47dbbef1cc8d1e7e7ccaae1a5a474b56e.zip |
Add the Transifex configuration to the repository
This was proposed in #604, and I now beleive it is actually good to provide
admin/maintainer scripts in the repository.
We still need to clean-up the language list, again as suggested in #604.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .tx/config | 55 |
2 files changed, 55 insertions, 1 deletions
@@ -1,7 +1,6 @@ *~ *.swp .meteor-spk -.tx/ *.sublime-workspace tmp/ node_modules/ diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..47701694 --- /dev/null +++ b/.tx/config @@ -0,0 +1,55 @@ +# This is the configuration of the Transifex tool that we use to manage the +# translations on Wekan. Documentation at: http://docs.transifex.com/client. +# +# Push +# ==== +# +# It is recommended that contributors use the Transifex web UI to create and +# edit translated strings. However in case a contributor has directly jumped +# into the code and made its translations in the corresponding i18n.json file +# we can push it using +# +# > tx push -t -l ar +# +# Where `ar` is the language identifier. In addition, the project maintainer +# should push the English source file to Transifex at least before each release +# candidate using: +# +# > tx push -s +# +# Pull +# ==== +# +# The set of accepted language is directly managed in Transifex, the only +# restriction we define to bundle a new language in the application, is that its +# completion is at least at 75%. +# +# We use: +# +# > tx pull +# +# to download new versions of existing translations, and +# +# > tx pull -a --minimum-perc=75 +# +# to download new sufficiently advanced translations. + +[main] +host = https://www.transifex.com +# tap:i18n requires us to use `-` separator in the language identifiers whereas +# Transifex uses a `_` separator, without an option to customize it on one side +# or the other, so we need to do a Manual mapping. +lang_map = fi_FI:fi, pt_BR:pt-BR, zh_CN:zh-CN, zh_TW: zh-TW + +[wekan.application] +file_filter = i18n/<lang>.i18n.json +source_lang = en +type = KEYVALUEJSON + +# We might have a dedicated second resource later to translate the “Welcome +# Board” data. +# +# [wekan.welcomeBoard] +# file_filter = private/welcomeBoard/<lang>.json +# source_lang = en +# type = KEYVALUEJSON |