Loading...
 
Skip to main content

History: Translation branching strategy

Preview of version: 26

The policy is that translations are now no exception most of the time, changes are done in trunk and can be backported if desired (although backports still don't need to be fixes).

During the semi-automatic merging period (ex.: from pre 7.x to 7.1), there is no guarantee that changes on 7.x will be merged to trunk. Changes should be merged if there are no conflicts, but otherwise may be ignored. People should commit to trunk and backport to 7.x. If not, people who commit to 7.x are responsible to make sure their changes are properly merged to trunk in the next semi-automatic merge.

If someone is willing to handle merges for some languages, please speak up and the policy may be changed to one favoring more contributions.

How to merge language files


To merge language files from different branches you should use doc/devtools/mergelang.pl script. You will need perl to run it.

Say you want to update 7.x with some translations you did on trunk. The first think you have to do is make sure that language.php file in 7.x is updated. So run get_strings.php first and than mergelang.pl:

php get_strings.php lang=xx
perl doc/devtools/mergelang.pl newerLangFile outdatedLangFile

Where newerLangFile is the path to trunk language.php and outdatedLangFile is the path to 7.x language.php file.

For each English string that this script find in both files, it will replace the translation in the 7.x version with the translation from trunk version (even if the string is untranslated in 7.x). Instead of overriding 7.x language.php file, the script create a new file called language.php.new. So you have to replace language.php with language.php.new.

Discussion

[+]

Related

History

Information Version
gezza 35
View
Marc Laporte So we can bookmark to specific sections 34
View
Marc Laporte 33
View
Rodrigo Primo 32
View
Bernard Sfez / Tiki Specialist 31
View
Rodrigo Primo updating information about how to merge translations 30
View
Marc Laporte from dev list 29
View
Rodrigo Primo 28
View
Rodrigo Primo 27
View
Rodrigo Primo how to merge language files 26
View
Rodrigo Primo moving current policy to the top of the page 25
View
Marc Laporte 24
View
Philippe Cloutier 23
View
Philippe Cloutier disambiguate policy on semi-automatic merging period following discussion with Rodrigo and Sylvie 22
View
Marc Laporte 21
View
Marc Laporte 20
View
Marc Laporte 19
View
Philippe Cloutier add solutions for mods issue 18
View
Rodrigo Primo moving the new policy to the beginning of the page 17
View
Xavier de Pedro 16
View
Philippe Cloutier revamp and announce new policy following discussion between Sylvie, Rodrigo and me in TikiFestBoston7 15
View
Philippe Cloutier 14
View
Philippe Cloutier "Translate to stable branch, no merge up" is not an option 13
View
Torsten Fabricius sorry, preview is not working 12
View
Torsten Fabricius 11
View
  • «
  • 1 (current)
  • 2