This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
forked from kumar303/pto-planner
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ vendor | |
.noseids | ||
tmp/* | ||
*~ | ||
locale/* | ||
*.mo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# syntax: | ||
# compile-mo.sh locale-dir/ | ||
TARGET=$1 | ||
LOCKFILE="/tmp/compile-mo-${2}.lock" | ||
|
||
function usage() { | ||
echo "syntax:" | ||
echo "compile.sh locale-dir/" | ||
echo " compile-mo.sh locale-dir/ [unique]" | ||
echo "unique is an optional string that will be used as the name of the lockfile" | ||
exit 1 | ||
} | ||
|
||
# check if file and dir are there | ||
if [[ ($# -ne 1) || (! -d "$1") ]]; then usage; fi | ||
if [[ ($# -gt 2) || (! -d "$TARGET") ]]; then usage; fi | ||
|
||
for lang in `find $1 -type f -name "*.po"`; do | ||
# check if the lockfile exists | ||
if [ -e $LOCKFILE ]; then | ||
echo "$LOCKFILE present, exiting" | ||
exit 99 | ||
fi | ||
|
||
touch $LOCKFILE | ||
for lang in `find $TARGET -type f -name "*.po"`; do | ||
dir=`dirname $lang` | ||
stem=`basename $lang .po` | ||
msgfmt -o ${dir}/${stem}.mo $lang | ||
done | ||
rm $LOCKFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2011-05-26 18:11-0700\n" | ||
"PO-Revision-Date: 2011-05-26 18:11-0700\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: en_US\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Translate Toolkit 1.8.0\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: apps/examples/templates/examples/home.html:5 | ||
msgid "Hello world" | ||
msgstr "Hello world" | ||
|
||
#. This is a localizer comment | ||
#: apps/examples/templates/examples/home.html:9 | ||
msgid "This is a <em>test view</em>." | ||
msgstr "This is a <em>test view</em>." | ||
|
||
#: apps/examples/templates/examples/home.html:11 | ||
msgid "<a href=\"%(docs_url)s\">Learn you some Playdoh</a> and then go build something <strong>awesome</strong>." | ||
msgstr "<a href=\"%(docs_url)s\">Learn you some Playdoh</a> and then go build something <strong>awesome</strong>." | ||
|
||
#: apps/examples/templates/examples/home.html:17 | ||
msgid "Current locale: %(LANG)s.<br> Available locales: %(langs)s." | ||
msgstr "Current locale: %(LANG)s.<br> Available locales: %(langs)s." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2011-06-03 19:07-0700\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#: apps/examples/templates/examples/home.html:5 | ||
msgid "Hello world" | ||
msgstr "Bonjour le monde" | ||
|
||
#. This is a localizer comment | ||
#: apps/examples/templates/examples/home.html:9 | ||
msgid "This is a <em>test view</em>." | ||
msgstr "Ceci est une <em>vue de test</em>." | ||
|
||
#: apps/examples/templates/examples/home.html:11 | ||
msgid "<a href=\"%(docs_url)s\">Learn you some Playdoh</a> and then go build something <strong>awesome</strong>." | ||
msgstr "<a href=\"%(docs_url)s\">Apprends à jouer avec Playdoh</a> et construis quelque chose de <strong>génial</strong>." | ||
|
||
#: apps/examples/templates/examples/home.html:17 | ||
msgid "Current locale: %(LANG)s.<br> Available locales: %(langs)s." | ||
msgstr "Langue active : %(LANG)s.<br> Langues disponibles : %(langs)s." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2011-06-03 19:07-0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Translate Toolkit 1.8.0\n" | ||
|
||
#: apps/examples/templates/examples/home.html:5 | ||
msgid "Hello world" | ||
msgstr "" | ||
|
||
#. This is a localizer comment | ||
#: apps/examples/templates/examples/home.html:9 | ||
msgid "This is a <em>test view</em>." | ||
msgstr "" | ||
|
||
#: apps/examples/templates/examples/home.html:11 | ||
msgid "" | ||
"<a href=\"%(docs_url)s\">Learn you some Playdoh</a> and then go build " | ||
"something <strong>awesome</strong>." | ||
msgstr "" | ||
|
||
#: apps/examples/templates/examples/home.html:17 | ||
msgid "Current locale: %(LANG)s.<br> Available locales: %(langs)s." | ||
msgstr "" |