Skip to content

Commit

Permalink
Update translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproctor committed Feb 18, 2014
1 parent cdc49d5 commit 2dfed38
Show file tree
Hide file tree
Showing 29 changed files with 26,059 additions and 5,060 deletions.
7 changes: 7 additions & 0 deletions .tx/config
@@ -0,0 +1,7 @@
[main]
host = https://www.transifex.com

[php-calendar.messages]
file_filter = locale/<lang>/LC_MESSAGES/messages.po
source_file = messages.po
source_lang = en_US
11 changes: 10 additions & 1 deletion generate_messages.sh
@@ -1,2 +1,11 @@
#! /bin/sh
xgettext --language=PHP --keyword="__" --keyword="__p:1c,2" *.php includes/*.php
xgettext --language=PHP --keyword="__" --keyword="__p:1c,2" --copyright-holder="Sean Proctor" --package-name="PHP-Calendar" \
--package-version="2.0.2" --msgid-bugs-address="sproctor@gmail.com" *.php includes/*.php
sed '0,/SOME DESCRIPTIVE TITLE/s//PHP-Calendar/' messages.po > messages.tmp
mv messages.tmp messages.po
sed '0,/YEAR/s//2014/' messages.po > messages.tmp
mv messages.tmp messages.po
sed '0,/PACKAGE/s//PHP-Calendar/' messages.po > messages.tmp
mv messages.tmp messages.po
sed '0,/CHARSET/s//UTF-8/' messages.po > messages.tmp
mv messages.tmp messages.po

0 comments on commit 2dfed38

Please sign in to comment.