Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 1 | cm_crowdin_sync.py |
| 2 | ================== |
| 3 | |
| 4 | Introduction |
| 5 | ------------ |
| 6 | This script is used to synchronize CyanogenMod's translations with Crowdin's. It automatically creates cm_caf.xml files, containing |
| 7 | 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 |
| 8 | automatic commiting to Git and pushing/downloading to/from Crowdin. |
| 9 | |
| 10 | create_cm_caf_xml.py |
| 11 | -------------------- |
| 12 | This script is used to create the cm_caf.xml files based on CM's and AOSP's resources XML files. |
| 13 | |
| 14 | Prerequisites |
| 15 | ------------- |
| 16 | The Ruby variant of crowdin-cli is required for this to work. |
Marco Brohet | 680098c | 2014-02-28 01:21:52 +0100 | [diff] [blame^] | 17 | |
Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 18 | \curl -sSL https://get.rvm.io | bash -s stable --ruby |
| 19 | source /home/therbom/.rvm/scripts/rvm # Add this to your .bashrc file! |
| 20 | rvm all do gem install crowdin-cli |
Marco Brohet | 680098c | 2014-02-28 01:21:52 +0100 | [diff] [blame^] | 21 | |
Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 22 | python-git is used for Git integration. |
Marco Brohet | 680098c | 2014-02-28 01:21:52 +0100 | [diff] [blame^] | 23 | |
Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 24 | sudo apt-get install python-git |
Marco Brohet | 680098c | 2014-02-28 01:21:52 +0100 | [diff] [blame^] | 25 | |
Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 26 | The script is currently only python2 supported. |
| 27 | |
| 28 | Executing |
| 29 | --------- |
Marco Brohet | 680098c | 2014-02-28 01:21:52 +0100 | [diff] [blame^] | 30 | Go to root of your local copy of CyanogenMod's source code |
Marco Brohet | 3e5334a | 2014-02-28 01:16:37 +0100 | [diff] [blame] | 31 | ./cm_crowdin_sync.py |