From edece1fa14c06f39b6334c7dc2252d4ee8cd239b Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Mon, 12 Nov 2012 21:02:40 +0100 Subject: [PATCH] Convert Transifex howto to Markdown --- .tx/howto.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ .tx/howto.txt | 49 -------------------------------------- 2 files changed, 65 insertions(+), 49 deletions(-) create mode 100644 .tx/howto.md delete mode 100644 .tx/howto.txt diff --git a/.tx/howto.md b/.tx/howto.md new file mode 100644 index 00000000..90897d5b --- /dev/null +++ b/.tx/howto.md @@ -0,0 +1,65 @@ +Go to the [Transifex client documentation](http://help.transifex.com/features/client/index.html) for more info. + +## Initializing a new project on Transifex + +
+tx init
+tx set --auto-local -r hexchat.main "po\.po" --source-lang en --source-file po\hexchat.pot --execute
+
+ +Append `type = PO` to _.tx\config_. + +Push the resources to Transifex: + +
+tx push --source --translation
+
+ + +## Updating online translations with the template + +Regenerate the source file (_hexchat.pot_) on a Unix machine: + +
+rm po/hexchat.pot && ./autogen.sh && ./configure --enable-nls && make
+
+ +Push the updated source file to Transifex (this automatically updates all translation files): + +
+tx push --source
+
+ + +## Updating the repo with online translations + +Update local copy with Transifex updates: + +
+tx pull
+
+ +Update GitHub repo: + +
git add po/
+git commit
+git push
+
+ + +## Updating just one translation with local changes + +
+tx push --translation --language xy
+
+ +Where _xy_ is the language code. + + +## Forcing translation updates + +
+tx pull --force
+
+ +This might be required when the repo is freshly cloned and thus timestamps are newer than on Transifex. diff --git a/.tx/howto.txt b/.tx/howto.txt deleted file mode 100644 index 20b17851..00000000 --- a/.tx/howto.txt +++ /dev/null @@ -1,49 +0,0 @@ -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\.po" --source-lang en --source-file po\hexchat.pot --execute - -Append 'type = PO' to .tx\config without apostrophes - -Push the resources to Transifex -# tx push --source --translation - - - -2) To update online translations: - -Regenerate the source file (hexchat.pot) on a Unix machine -# rm po/hexchat.pot && ./autogen.sh && ./configure --enable-nls && make - -Push the updated source file to Transifex (this automatically updates all translation files) -# tx push --source - - - -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 - - - -4) To update just one translation with local changes: - -# tx push --translation --language xy - -Where xy is the language code - - - -5) To force updating translations: - -# tx pull --force - -This might be required when the repo is freshly cloned and thus timestamps are newer than on Transifex.