Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We translate midPoint on Transifex.

 


Table of Contents:

Table of Contents

...

Code Block
tx push -s -t -f

 


Data synchronization

Status

...

Transifex and midPoint Git

There is a dedicated branch for transifex data: transifex

...

reposiutory for localization and translations: midpoint-localization. Main midpoint repository depends on this one.

From transifex to midPoint git

...

Code Block
languagebash
themeEmacs
#switch to transifex branch
git checkoutpull
transifex
git pull
# pull translations from transifex
tx pull -fa

#since source properties is English, we need to get English translation as en_US
#and then, rename en_US to en
rm gui\admin-gui\src\main\resources\localization\Midpoint_en.properties 
mv gui\admin-gui\src\main\resources\localization\Midpoint_en_US.properties gui\admin-gui\src\main\resources\localization\Midpoint_en.properties 
rm infra\schema\src\main\resources\localization\schema_en.properties 
mv infra\schema\src\main\resources\localization\schema_en_US.properties  infra\schema\src\main\resources\localization\schema_en.properties  


# check that the pulled translations are roughly OK
git diff

# make sure to mention all the contributors in the commit message (see transifex timeline)
git commit -a
git push

# merge transifex translations to master
git checkout master
git pull
git merge transifex
git push
 
# sync transifex back with master
git checkout transifex
git merge master
git push

After that, translations are pulled from transifex into transifex master branch in git, and then merged into master branch, to be used since next development buildpushed back.

There is no exact rule when this should happen, so until we automate this, it is recommended to pull new translations regularly or after frequent translations.

...

There is no manual steps, transifex is configured (how-to) to pull sources automatically from https://raw.githubusercontent.com/Evolveum/midpoint/master/gui/admin-gui/src/main/resources/localization/Midpoint.propertiesraw properties files (midPoint.properties and schema.properties). This happens once a day, typically around 12:00 UTC.

...

  • It checks changes on github and pushes source to transifex
  • Once translation is 100% done, it is pulled back.
  • It operates over one specified branch in git (we need two branches right now, master and transifex)