User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:devel:translating [2014/07/03 23:45]
joebordes [Translating using version control system (GIT)]
en:devel:translating [2017/07/06 17:58] (current)
joebordes
Line 2: Line 2:
  
 <wrap hi>​[[http://​producingoss.com/​en/​share-management.html#​translation-manager|Based on Produccing Open Source Software]]</​wrap>​ <wrap hi>​[[http://​producingoss.com/​en/​share-management.html#​translation-manager|Based on Produccing Open Source Software]]</​wrap>​
 +
 +===== coreBOS Translation Module =====
 +
 +[[en:​devel:​cbtranslation|coreBOS Translation module]]
  
 ===== Translating Application ===== ===== Translating Application =====
Line 7: Line 11:
 ==== Translating from within the application ===== ==== Translating from within the application =====
  
 +Thanks to the team at **OpenCubed** who have modified an abandoned project of many years ago, starting at **coreBOS 5.6**, we have the functionality to translate the labels from within the application.
 +
 +This is specially important for custom fields, because we cannot use special characters that are so important in many language either in the labels or the picklist values. Due to that restriction we have to use plain text and then translate the values. Before having this functionality that translation had to be done directly editing the language files, now the admin user can easily do the change without needing access to the files.
 +
 +To access the translator you must login as an admin user and go to the **Module Manager**. On the **Custom Modules** tab we will find the language files and next to each one the hammer icon will take us to the translation screen. ​
 +
 +{{ :​en:​corebos:​trmm.png?​700 |}}
 +
 +The translator permits us to select from among the different modules and base language files to translate and shows us the full list of labels with their value in the base application language followed by the translation which you can modify accordingly.
 +
 +{{ :​en:​corebos:​trtr.png?​700 |}}
 ==== Translating using version control system (GIT) ==== ==== Translating using version control system (GIT) ====
  
Line 30: Line 45:
 or or
 <​code>​svn up</​code>​ <​code>​svn up</​code>​
 +
 +Next we need a list of all the translation files that have changed. For that we can ask git to show us all the files that have changed since **rorg** and our current state and we pass that through a **grep** to get only the files we are interested in:
 +
 +<​code>​git log --name-only rorg.. | grep fr_fr</​code>​
  
 Now for each reference language file we have to see if it has had any changes. For example, for the file include/​language/​en_us.lang.php you would execute Now for each reference language file we have to see if it has had any changes. For example, for the file include/​language/​en_us.lang.php you would execute
Line 149: Line 168:
   * send us a pull request   * send us a pull request
  
- 
-Answer this when this page is done: [[http://​discussions.corebos.org/​viewtopic.php?​f=6&​t=34]]