Skip to content

Commit

Permalink
Added no location flag to xgettext invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Swader committed Apr 13, 2016
1 parent 15fb9c2 commit f64cd7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Locale/en_US/LC_MESSAGES/messages.po
Expand Up @@ -10,9 +10,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: /tmp/cache/d0/d006e63c5a4c4e6a700d9273d4523dd0cf419105fa4b00cf6b89918c67df4b2b.php:56
msgid "Trans-friendly"
msgstr ""

msgid "Testing"
msgstr ""

#~ msgid "This is translatable"
#~ msgstr "This is translatable"
7 changes: 5 additions & 2 deletions Locale/en_US/LC_MESSAGES/messages.po~
Expand Up @@ -11,5 +11,8 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: /tmp/cache/d0/d006e63c5a4c4e6a700d9273d4523dd0cf419105fa4b00cf6b89918c67df4b2b.php:56
msgid "This is translatable"
msgstr "This is translatable"
msgid "Trans-friendly"
msgstr ""

#~ msgid "This is translatable"
#~ msgstr "This is translatable"
4 changes: 3 additions & 1 deletion Locale/messages.pot
@@ -1,3 +1,5 @@
#: /tmp/cache/d0/d006e63c5a4c4e6a700d9273d4523dd0cf419105fa4b00cf6b89918c67df4b2b.php:56
msgid "Trans-friendly"
msgstr ""

msgid "Testing"
msgstr ""
2 changes: 1 addition & 1 deletion app/bin/i18n/update-potpo.sh
Expand Up @@ -8,7 +8,7 @@ echo "Regenerating cache"
php app/bin/twigcache.php

echo "Running xgettext on the cached files"
xgettext -o ${LOCALE_FOLDER}/messages.pot --from-code=UTF-8 -n --omit-header /tmp/cache/*/*.php
xgettext -o ${LOCALE_FOLDER}/messages.pot --from-code=UTF-8 -n --omit-header --no-location /tmp/cache/*/*.php

for folder in $(find ${LOCALE_FOLDER} -maxdepth 1 -type d | awk -F/ '{print $NF}')
do
Expand Down

0 comments on commit f64cd7f

Please sign in to comment.