Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Removing podebug, obsolete with gobbledygook
Browse files Browse the repository at this point in the history
  • Loading branch information
ozten committed Apr 12, 2013
1 parent cc3556b commit 68c02ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
3 changes: 0 additions & 3 deletions bin/extract-pot
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ argv._.forEach(function (dir) {
// top of repo is our current working directory
process.chdir(path.dirname(__dirname));

console.log('My Path is ', __dirname);
var jsxGettextPath = path.join(__dirname, '../node_modules/.bin/jsxgettext');

console.log(jsxGettextPath);

var jsCmd = jsxGettextPath + ' %s --keyword=_ -L JS ' +
'--output-dir=%s/templates/LC_MESSAGES --from-code=utf-8 --output=messages.pot ' +
'`find %s -name \'*.js\' | grep -v node_modules | grep -v .git';
Expand Down
16 changes: 1 addition & 15 deletions bin/merge-po.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,4 @@ for lang in `find $1 -type f -name "*.po"`; do
stem=`basename $lang .po`
msgmerge -o ${dir}/${stem}.po.tmp ${dir}/${stem}.po $1/templates/LC_MESSAGES/${stem}.pot
mv ${dir}/${stem}.po.tmp ${dir}/${stem}.po
done

# Optionally auto-localize our test locale db-LB
if hash podebug >/dev/null; then
# If your using client side gettext, add client to the list of cataglos on the next line
# for catalog in messages client; do
for catalog in messages; do

echo "Translating ${catalog}.po"
podebug --rewrite=flipped -i $1/templates/LC_MESSAGES/${catalog}.pot\
-o $1/db_LB/LC_MESSAGES/${catalog}.po
done
else
echo 'Skipping db-LB, install translate-toolkit if you want to have that up-to-date.'
fi
done
2 changes: 2 additions & 0 deletions lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ exports.abide = function(options) {
locals = {},
gt;

console.log(langs);

if (lang && lang.toLowerCase && lang.toLowerCase() === debug_lang) {
// What? http://www.youtube.com/watch?v=rJLnGjhPT1Q
lang = DAVID_B_LABYRN;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Austin King <[email protected]> (http://ozten.com)",
"name": "i18n-abide",
"description": "Express/connect module for Node i18n and l10n support",
"version": "0.0.8beta4",
"version": "0.0.8beta5",
"homepage": "https://github.com/mozilla/i18n-abide",
"repository": {
"type": "git",
Expand All @@ -18,7 +18,7 @@
"dependencies": {
"async": "0.1.22",
"gobbledygook": "0.0.3",
"jsxgettext": "0.0.4",
"jsxgettext": "0.0.5",
"optimist": "0.3.4"
},
"devDependencies": {
Expand Down

0 comments on commit 68c02ad

Please sign in to comment.