blob: dee3ac3890ca80b32789e13957f5723df8721472 [file] [log] [blame]
cm_crowdin_sync.py
==================
Introduction
------------
This script is used to synchronize CyanogenMod's translations with Crowdin's. It automatically creates cm_caf.xml files, containing
CAF additions that cannot be seperated in CM source, based on the AOSP base file, and removes them after the push. Also, it can handle
automatic commiting to Git and pushing/downloading to/from Crowdin.
create_cm_caf_xml.py
--------------------
This script is used to create the cm_caf.xml files based on CM's and AOSP's resources XML files.
Prerequisites
-------------
The Ruby variant of crowdin-cli is required for this to work.
\curl -sSL https://get.rvm.io | bash -s stable --ruby
source /home/therbom/.rvm/scripts/rvm # Add this to your .bashrc file!
rvm all do gem install crowdin-cli
python-git is used for Git integration.
sudo apt-get install python-git
The script is currently only python2 supported.
Executing
---------
Go to root of your local copy of CyanogenMod's source code
./cm_crowdin_sync.py
Bugs
----
- cm_caf.xml can only be generated once.