This repository has been archived by the owner on May 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
UI Translation
Guo Yunhe edited this page Jul 15, 2016
·
4 revisions
We have a translation project on Transifex: https://www.transifex.com/santakani/santakanicom/
- Create a Transifex account.
- Apply to join the translation team.
- Start to translate.
- Review translation.
Source language: English
Primary languages:
- Finnish
- Swedish
- Chinese
Secondary languages:
- Portuguese
- Spanish
- French
- German
Other languages in plan:
- Japanese
- Korean
- Russian
- Arabian
Install transifex client:
# openSUSE
sudo zypper install transifex-client
# Ubuntu
sudo apt-get install transifex-client
# Fedora
sudo yum install transifex-client
# Debian
su
apt-get install transifex-client
Switch to project, use following command:
# Upload all source
tx push -s
# Upload all translations
tx push -t
# Upload specific translations of specific resource
tx push -t -r santakanicom.common -l zh
# Download all translations
tx pull -a
# Download translations of specific resource
tx pull -r santakanicom.common
# Download specific translation of specific resource
tx pull -r santakanicom.common -l zh
Note that push command only works on existing resources on the server. When add new resource:
Step 1: Upload source file on Transifex website. If source file is place.php
and resource name is santakanicom.place
.
Step 2: Edit .tx/config
file, add following:
[santakanicom.place]
file_filter = resources/lang/<lang>/place.php
source_lang = en
type = PHP_ARRAY
Only edit sources manually. Translations should always be edited on Transifex websie.
This wiki is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.