blob: 1cf1bd617dfad589a6b465de4328b7f68cc57786 [file] [log] [blame]
Marco Brohet3e5334a2014-02-28 01:16:37 +01001cm_crowdin_sync.py
2==================
3
4Introduction
5------------
6This script is used to synchronize CyanogenMod's translations with Crowdin's. It automatically creates cm_caf.xml files, containing
7CAF additions that cannot be seperated in CM source, based on the AOSP base file, and removes them after the push. Also, it can handle
8automatic commiting to Git and pushing/downloading to/from Crowdin.
9
10create_cm_caf_xml.py
11--------------------
12This script is used to create the cm_caf.xml files based on CM's and AOSP's resources XML files.
13
14Prerequisites
15-------------
16The Ruby variant of crowdin-cli is required for this to work.
17 \curl -sSL https://get.rvm.io | bash -s stable --ruby
18 source /home/therbom/.rvm/scripts/rvm # Add this to your .bashrc file!
19 rvm all do gem install crowdin-cli
20python-git is used for Git integration.
21 sudo apt-get install python-git
22The script is currently only python2 supported.
23
24Executing
25---------
26 ./cm_crowdin_sync.py