2012-10-19 23:31:11 +04:00
|
|
|
More info: http://help.transifex.com/features/client/index.html
|
|
|
|
|
|
|
|
1) To initialize a new project on Transifex:
|
|
|
|
|
|
|
|
# tx init
|
|
|
|
# tx set --auto-local -r hexchat.main "po\<lang>.po" --source-lang en --source-file po\hexchat.pot --execute
|
|
|
|
|
|
|
|
Append 'type = PO' to .tx\config without apostrophes
|
|
|
|
|
|
|
|
Push the resources to Transifex
|
2012-10-30 06:33:08 +04:00
|
|
|
# tx push --source --translation
|
2012-10-19 23:31:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2) To update online translations:
|
|
|
|
|
|
|
|
Regenerate the source file (hexchat.pot) on a Unix machine
|
2012-10-20 18:50:57 +04:00
|
|
|
# rm po/hexchat.pot && ./autogen.sh && ./configure --enable-nls && make
|
2012-10-19 23:31:11 +04:00
|
|
|
|
|
|
|
Push the updated source file to Transifex (this automatically updates all translation files)
|
2012-10-30 06:33:08 +04:00
|
|
|
# tx push --source
|
2012-10-19 23:31:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3) To update repo with online translations:
|
|
|
|
|
|
|
|
Update local copy with Transifex updates
|
|
|
|
# tx pull
|
|
|
|
|
|
|
|
Update GitHub repo
|
|
|
|
# git add po/
|
|
|
|
# git commit
|
|
|
|
# git push
|
2012-10-30 06:33:08 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4) To update just one translation with local changes:
|
|
|
|
|
|
|
|
# tx push --translation --language xy
|
|
|
|
|
|
|
|
Where xy is the language code
|