[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5419] branches/1.3/tools/rebuild_pot.sh



Revision: 5419
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5419&view=rev
Author:   einhverfr
Date:     2012-12-26 14:13:25 +0000 (Wed, 26 Dec 2012)
Log Message:
-----------
Moving over POT regeneration script to 1.3

Added Paths:
-----------
    branches/1.3/tools/rebuild_pot.sh

Copied: branches/1.3/tools/rebuild_pot.sh (from rev 5418, trunk/tools/rebuild_pot.sh)
===================================================================
--- branches/1.3/tools/rebuild_pot.sh	                        (rev 0)
+++ branches/1.3/tools/rebuild_pot.sh	2012-12-26 14:13:25 UTC (rev 5419)
@@ -0,0 +1,30 @@
+#!/usr/bin/bash
+
+# EXTRACTING DB STRINGS
+echo "select 'text(''' || label || ''')' FROM menu_node" | 
+ psql -U postgres > tools/dbstrings
+
+echo "select 'text(''' || class || ''')' FROM entity_class" | 
+ psql -U postgres >> tools/dbstrings
+
+echo "select 'text(''' || class || ''')' FROM batch_class" | 
+ psql -U postgres >> tools/dbstrings
+
+echo "select 'text(''' || class || ''')' FROM contact_class" | 
+ psql -U postgres >> tools/dbstrings
+
+echo "select 'text(''' || class || ''')' FROM location_class" | 
+ psql -U postgres >> tools/dbstrings
+
+
+# SETTING UP FILE LIST
+find . -name '*.pl' | grep -v blib > tools/files
+find . -name '*.html' | grep -v blib >> tools/files
+find . -name '*.pm' | grep -v blib | grep -v Num2text | 
+  grep -v LaTeX >> tools/files
+
+# EXTRACT STRINGS AND MERGE WITH .POT
+
+xgettext -f tools/files -ktext -o locale/LedgerSMB.pot 
+
+xgettext -ktext -j -o locale/LedgerSMB.pot -a tools/dbstrings --language=perl

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.