Skip to content
Browse files

fixing transifex domain in .tx/config and scripts

  • Loading branch information...
1 parent 836679f commit 9dc10019999adbe5861bbfb0ee6a009ac648d8f1 @lzap lzap committed with domcleal Sep 6, 2013
Showing with 16 additions and 9 deletions.
  1. +1 −1 .tx/config
  2. +13 −6 locale/Makefile
  3. +1 −1 script/show-missing-rails-locales.sh
  4. +1 −1 script/update-rails-locales.sh
View
2 .tx/config
@@ -1,5 +1,5 @@
[main]
-host = https://www.transifex.net
+host = https://www.transifex.com
[foreman.foreman]
file_filter = locale/<lang>/foreman.po
View
19 locale/Makefile
@@ -44,13 +44,20 @@ uniq-po:
done
tx-pull:
- tx pull -a -f -r foreman.foreman
- git commit -a -m 'i18n - updating translations from transifex'
- -git add -A
- -git commit -a -m 'i18n - adding new languages from transifex'
+ tx pull -f -r foreman.foreman
+ -git commit -a -m "i18n - extracting new, updating rails, pulling from tx"
-tx-update: tx-pull update-po
- -git commit -a -m 'i18n - merging gettext po files'
+update-rails:
+ ../script/update-rails-locales.sh
+
+extract-strings:
+ bundle exec rake locale:find
+
+tx-update: update-rails tx-pull extract-strings
+ # merging po files is unnecessary when using transifex.com (amend that)
+ git checkout -- ../locale/*/*po
+ git commit -a --amend -m "i18n - extracting new, updating rails, pulling from tx"
+ -echo Changes commited!
# Remove all MO files
clean:
View
2 script/show-missing-rails-locales.sh
@@ -4,7 +4,7 @@
#
# To run this you need rspec and i18n-spec gems installed
#
-pushd config/locales
+pushd $(git rev-parse --show-cdup)/config/locales
REPODIR=$(pwd)
UPSTEAM_CLONE=$(mktemp -d -q)
trap "rm -rf $UPSTEAM_CLONE" EXIT
View
2 script/update-rails-locales.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-pushd config/locales
+pushd $(git rev-parse --show-cdup)/config/locales
I18N_BRANCH="rails-3-x"
TMP=$(mktemp)
for FILE in *yml; do

0 comments on commit 9dc1001

Please sign in to comment.
Something went wrong with that request. Please try again.