Bug #8874
closed
gettext 3.1.13+ causes locale tx-update errors due to .edit.po files
Added by Dominic Cleal about 10 years ago.
Updated over 6 years ago.
Category:
Internationalization
|
Description
Since gettext 3.1.13+ locale updates aren't working quite right, as some new .edit.po and timestamp files in the locale directories are created, which breaks the git commits in our Makefile.
The intention appears to be that we pull translations into the .edit.po files instead, which get merged into the .po files by gettext.
Previously...
make -C locale tx-update
- pulls rails locale files
- runs tx pull, which overwrites locale/*/foreman.po
- git commits
- runs rake locale:po_to_json, which converts foreman.po to app.js
- runs rake locale:find, which overwrites locale/foreman.po, re-merges locale/*/foreman.po
- reverts locale/*/foreman.po from previous step
- git amends
Now there's an .edit.po and real .po file, tx pull should in theory go to the edit file first, then let gettext handle merging back to .po.
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2096 added
- Pull request deleted (
)
Now:
make -C locale tx-update
- pulls rails locale files
- runs rake locale:find, which updates foreman.pot, generates .po and .edit.po files
- runs tx pull, which overwrites locale/*/foreman.edit.po
- runs rake locale:find, which merges into locale/*/foreman.po
- runs rake locale:po_to_json, which converts foreman.po to app.js
- git commits
- Translation missing: en.field_release set to 28
Needed to rebuild POT/PO files in 1.8.
- Translation missing: en.field_release changed from 28 to 50
- Translation missing: en.field_release changed from 50 to 56
- Translation missing: en.field_release deleted (
56)
- Blocks Bug #13033: plugin:gettext rake task doesn't load with gettext_i18n_rails_js 1.x added
- Pull request https://github.com/theforeman/foreman_discovery/pull/244 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 71
Also available in: Atom
PDF