Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

UI Translation

Guo Yunhe edited this page Jul 15, 2016 · 4 revisions

Transifex online translation system

We have a translation project on Transifex: https://www.transifex.com/santakani/santakanicom/

  1. Create a Transifex account.
  2. Apply to join the translation team.
  3. Start to translate.
  4. Review translation.

Language priority

Source language: English

Primary languages:

  • Finnish
  • Swedish
  • Chinese

Secondary languages:

  • Portuguese
  • Spanish
  • French
  • German

Other languages in plan:

  • Japanese
  • Korean
  • Russian
  • Arabian

Source code intergration

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.

Clone this wiki locally