Edgewall Software

Changes between Version 126 and Version 127 of TracL10N


Ignore:
Timestamp:
Jan 28, 2013, 1:05:40 AM (11 years ago)
Author:
Christian Boos
Comment:

#ForCommitters: describe usage of l10n_revert_lineno_conflicts.py script (r11614)

Legend:

Unmodified
Added
Removed
Modified
  • TracL10N

    v126 v127  
    442442When you're adding a new catalog (`make init-...`), be sure to set "native" line-endings before committing (`svn pset svn:eol-style native trac/locale/.../LC_MESSAGES/....po`).
    443443
     444Now that all the maintenance branches have l10n support, special care should be taken when merging l10n changes from one branch to the next.
     445
     446One problem to be expected with the merge is a high rate of conflicts due to line number differences. Even if the source text (the `msgid`) are often unchanged, it's very likely that their position in the file will be different.
     447
     448The [source:trunk/contrib/l10n_revert_lineno_conflicts.py] can be used to remove those spurious conflicts.
     449
     450Example workflow:
     451{{{
     4521.0-stable$ make update
     4531.0-stable$ svn merge ^/branches/0.12-stable --accept postpone
     4541.0-stable$ $ svn st -q | sed -e 's,\\,/,g' | grep ^C | cut -c2- > conflicted.files
     4551.0-stable$ python contrib/l10n_revert_lineno_conflicts.py `cat conflicted.files`
     456reverted 6 ignorable changes in trac/locale/fa/LC_MESSAGES/messages.po
     457reverted 1 ignorable changes in trac/locale/nb/LC_MESSAGES/messages.po
     458reverted 147 ignorable changes in trac/locale/nl/LC_MESSAGES/messages.po
     459no ignorable changes in trac/locale/nl/LC_MESSAGES/messages-js.po
     460[...]
     461}}}
     462At this point, one can inspect the remaining meaningful conflicts and resolved them manually.
     463
     464Then:
     465{{{
     4661.0-stable$ make update
     467}}}
     468to remove the spurious line number difference, review and commit.
     469
     470
    444471=== For Developers
    445472