Check-in [4eebc559f0]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:4eebc559f0fa96de004ce0671592dff90bc52d1d
Date: 2012-07-30 14:26:30
User: BarryK
Comment:solution for momanager, want to combine many scripts into one .pot file

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/usr/sbin/momanager

@@ -31,10 +31,11 @@
 #120309 binary executables, option to retain po file for later editing (instead of uncompile mo).
 #120313 langpack pet help msg improved.
 #120313 langpack pet: offer to find more po, mo, pot and t12s translations.
 #120316 scoop up more translations. 120317 L18L: add man pages.
 #120216 small mod. to a message.
+#120729 L18L: problem gettext'ing zigbert's apps, which have a lot of scripts, but would like to combine into one .pot file.
 
 #***MOMANAGER IS ENGLISH ONLY (NOT GETTEXT'ED)***
 #it is for use by developers/translators with knowledge of english.
 
 PARAM1=""
@@ -749,11 +750,16 @@
     #rodin.s: xgettext does not work properly on alsaconf script, use ready-made alsaconf.pot (in Woof).
     cp -f /usr/share/doc/nls/alsaconf/alsaconf.pot ./
    ;;
    *)
     cp -f "$ASCRIPT" ${ANAME}.sh #hack
-    LANG=${ORIGLANG} rxvt -e xgettext --no-wrap -o ${ATEXTDOMAIN}.pot ${ANAME}.sh
+    #LANG=${ORIGLANG} rxvt -e xgettext --no-wrap -o ${ATEXTDOMAIN}.pot ${ANAME}.sh
+    #120729 L18L: problem gettext'ing zigbert's apps, which have a lot of scripts, but would like to combine into one .pot file.
+    # ex: pprocess has 'process', 'box_ok' and 'func'. pprocess has this line:
+    # export TEXTDOMAIN=pprocess # box_ok func
+    # ...the extra scripts are appended as comments. solution coded:
+    LANG=${ORIGLANG} rxvt -e xgettext --no-wrap -o ${ATEXTDOMAIN}.pot ${ANAME}.sh `grep 'export TEXTDOMAIN=' "${ASCRIPT}" | cut -d '#' -f2`
    ;;
   esac
   #this syncs textdomain1.po and textdomain.pot, merges to textdomain.po ...
   rm -f ${ATEXTDOMAIN}.po 2>/dev/null
   LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1

Changes to woof-distro/arm/Packages-puppy-armv6-official

@@ -29,15 +29,15 @@
 dialog-1.1-20111020-widechar-armv6|dialog|1.1-20111020-widechar-armv6||BuildingBlock|164K||dialog-1.1-20111020-widechar-armv6.pet|+ncurses|create text-mode dialog boxes from scripts, compiled against libncursesw for wide-char unicode support|puppy|||
 dialog_DOC-1.1-20111020-widechar-armv6|dialog_DOC|1.1-20111020-widechar-armv6||BuildingBlock|64K||dialog_DOC-1.1-20111020-widechar-armv6.pet||text-mode dialog boxes||||
 dialog_NLS-1.1-20111020-widechar-armv6|dialog_NLS|1.1-20111020-widechar-armv6||BuildingBlock|640K||dialog_NLS-1.1-20111020-widechar-armv6.pet|+dialog|text-mode dialog boxes||||
 didiwiki-0.8-armv6|didiwiki|0.8-armv6||Personal|92K||didiwiki-0.8-armv6.pet||DidiWiki personal wiki|puppy|||
 disktype-9-patched_pardus_bk-static-armv6|disktype|9-patched_pardus_bk-static-armv6||BuildingBlock|100K||disktype-9-patched_pardus_bk-static-armv6.pet||get information about a partition, compiled statically for armv6||||
-dpkg-1.15.8.12-armv6|dpkg|1.15.8.12-armv6||BuildingBlock|1624K||dpkg-1.15.8.12-armv6.pet||the debian package manager|puppy|||
-dpkg_DEV-1.15.8.12-armv6|dpkg_DEV|1.15.8.12-armv6||BuildingBlock|696K||dpkg_DEV-1.15.8.12-armv6.pet|+dpkg|the debian package manager|puppy|||
-dpkg_DOC-1.15.8.12-armv6|dpkg_DOC|1.15.8.12-armv6||BuildingBlock|584K||dpkg_DOC-1.15.8.12-armv6.pet||the debian package manager||||
-dpkg_NLS-1.15.8.12-armv6|dpkg_NLS|1.15.8.12-armv6||BuildingBlock|5716K||dpkg_NLS-1.15.8.12-armv6.pet||the debian package manager||||
-dpkg-deb-1.15.8.12-armv6|dpkg-deb|1.15.8.12-armv6||BuildingBlock|196K||dpkg-deb-1.15.8.12-armv6.pet||the debian package manager, this is only dpkg-deb utility taken out of full dpkg package|puppy|||
+dpkg-1.16.4.3-sap6|dpkg|1.16.4.3-sap6||BuildingBlock|1612K||dpkg-1.16.4.3-sap6.pet|+xz|debian package manager|debian|squeeze||
+dpkg_DEV-1.16.4.3-sap6|dpkg_DEV|1.16.4.3-sap6||BuildingBlock|884K||dpkg_DEV-1.16.4.3-sap6.pet|+dpkg|debian package manager|debian|squeeze||
+dpkg_DOC-1.16.4.3-sap6|dpkg_DOC|1.16.4.3-sap6||BuildingBlock|636K||dpkg_DOC-1.16.4.3-sap6.pet||debian package manager||||
+dpkg_NLS-1.16.4.3-sap6|dpkg_NLS|1.16.4.3-sap6||BuildingBlock|4560K||dpkg_NLS-1.16.4.3-sap6.pet|+dpkg|debian package manager||||
+dpkg-deb-1.16.4.3-sap6|dpkg-deb|1.16.4.3-sap6||BuildingBlock|196K||dpkg-deb-1.16.4.3-sap6.pet||the debian package manager, this is only dpkg-deb utility taken out of full dpkg package|debian|squeeze||
 eject-2.1.0-armv6|eject|2.1.0-armv6||BuildingBlock|40K||eject-2.1.0-armv6.pet||eject removable medias from their drives|puppy|||
 eject_DOC-2.1.0-armv6|eject_DOC|2.1.0-armv6||BuildingBlock|32K||eject_DOC-2.1.0-armv6.pet||eject removable media from drive||||
 eject_NLS-2.1.0-armv6|eject_NLS|2.1.0-armv6||BuildingBlock|96K||eject_NLS-2.1.0-armv6.pet|+eject|eject removable media from drive||||
 elspci-0.0.6-static-armv6|elspci|0.0.6-static-armv6||BuildingBlock|64K||elspci-0.0.6-static-armv6.pet||determine filesystem of a partition, compiled statically for armv6||||
 embutils_cut-0.19-static-armv6|embutils_cut|0.19-static-armv6||BuildingBlock|16K||embutils_cut-0.19-static-armv6.pet||small static utilities, cut-down selection of full pkg, armv6||||