Check-in [0fb913f762]
Not logged in

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

Overview

SHA1 Hash:0fb913f762d3a63c04d6c35a72eca6a04fea60de
Date: 2012-02-03 09:41:33
User: BarryK
Comment:internationalized: some files in /usr/local/apps, pupzip, some scripts in /usr/local/petget

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/usr/bin/pupdialog

@@ -4,12 +4,14 @@
 #a simple replacement for 'dialog', for when X is running. can use this instead of Xdialog.
 #110924 when no window decoration, also do not appear in taskbar. menu dlg to fit in 480 pixel screen vert. fix pupkill.
 #111011 add --checklist dialog, --helpwindow parameter.
 #111021 increase limit, number commandline items.
 #120131 rodin.s: adding gettext to help
+#120203 think need OUTPUT_CHARSET=UTF-8
 
 export TEXTDOMAIN=pupdialog
+export OUTPUT_CHARSET=UTF-8
 
 #examples passed params:
 # --timeout 90 --extra-button --ok-label "SAVE TO A FILE"  --extra-label "SAVE TO ${xPDEV}" --cancel-label "DO NOT SAVE" --yesno "etetetete" 0 0
 #accept these, not available in dialog: --background --foreground --countdown "text"
 

Changes to woof-code/rootfs-skeleton/usr/local/apps/Connect/AppInfo.xml

@@ -1,17 +1,38 @@
 <?xml version="1.0"?>
 <AppInfo>
   <Summary>Connect to the Internet/network</Summary>
+  <Summary xml:lang="ru">Подключение к Интернет/сети</Summary>
+  <Summary xml:lang="ja">インターネット/ネットワークに接続</Summary>
+  <Summary xml:lang="zh_CN">连接到网络/互联网</Summary>
   <About>
     <Purpose>Internet/network connection</Purpose>
-    <License>GPL: http://www.gnu.org/licenses/gpl.txt</License>
-    <Version>2010-02-28</Version>
+    <License>GPL: /usr/share/doc/legal</License>
+    <Version>2012-02-03</Version>
     <Authors>Barry Kauler</Authors>
     <Homepage>http://puppylinux.com/</Homepage>
   </About>
   <AppMenu>
-    <Item label="Connect to the Internet now" option=""/>
-    <Item label="Autoconnect to ethernet/wireless networks" option="--connect"/>
-    <Item label="Disconnect from ethernet/wireless networks" option="--disconnect"/>
-    <Item label="Execute the Internet Connection Wizard" option="--wizard"/>
+    <Item option="">
+    <Label>Connect to the Internet now</Label>
+    <Label xml:lang="ru">Подключиться к Интернет сейчас</Label>
+    <Label xml:lang="ja">インターネット接続ウィザードを実行</Label>
+    <Label xml:lang="zh_CN">运行互联网连接向导</Label>
+    </Item>
+    <Item option="--connect">
+    <Label>Autoconnect to ethernet/wireless networks</Label>
+    <Label xml:lang="ru">Автоподключение к проводным/беспроводным сетям</Label>
+    <Label xml:lang="ja">ネットワークに接続</Label>
+    <Label xml:lang="zh_CN">自动连接到有线/无线网络</Label>
+    </Item>
+    <Item option="--disconnect">
+    <Label>Disconnect from ethernet/wireless networks</Label>
+    <Label xml:lang="ru">Отключение от проводных/беспроводных сетей</Label>
+    <Label xml:lang="ja">ネットワークから切断</Label>
+    <Label xml:lang="zh_CN">断开有线/无线网络</Label>
+    </Item>
+    <Item option="--wizard">
+    <Label>Execute the Internet Connection Wizard</Label>
+    <Label xml:lang="ru">Мастер подключения к Интернет</Label>
+    </Item>
   </AppMenu>
 </AppInfo>

Changes to woof-code/rootfs-skeleton/usr/local/apps/Connect/connect_help

@@ -1,26 +1,29 @@
 #!/bin/sh
 #called from /usr/sbin/connectwizard
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=connect_help
+export OUTPUT_CHARSET=UTF-8
 
 export HELPDIALOG="
-<window title=\"Internet Connection Wizard: HELP\" icon-name=\"gtk-connect\">
+<window title=\"$(gettext 'Internet Connection Wizard: HELP')\" icon-name=\"gtk-connect\">
  <vbox>
- <text  use-markup=\"true\"><label>\"<b>Dialup analog or wireless modem</b>
-Analog dialup is the old slow system. You need a 56K modem and it dials your Internet Service Provider.
-Wireless dialup is a digital system, typically via a 3G wireless network. If you have a 3G modem or want to connect to the Internet via your mobile phone, choose this.
+ <text  use-markup=\"true\"><label>\"<b>$(gettext 'Dialup analog or wireless modem')</b>
+$(gettext 'Analog dialup is the old slow system. You need a 56K modem and it dials your Internet Service Provider.
+Wireless dialup is a digital system, typically via a 3G wireless network. If you have a 3G modem or want to connect to the Internet via your mobile phone, choose this.')
+
+<b>$(gettext 'Wired or wireless LAN')</b>
+$(gettext "If you have broadband Internet connection and not sure what button to click, this is probably the right one. Either you have a network cable or wireless card from your computer, to 'something' (usually an ADSL modem or router) that then connects you via a telephone socket in the wall, then this is the right button. Choose this also if you want to connect to an intranet and not necessarily have outside access.")
 
-<b>Wired or wireless LAN</b>
-If you have broadband Internet connection and not sure what button to click, this is probably the right one. Either you have a network cable or wireless card from your computer, to 'something' (usually an ADSL modem or router) that then connects you via a telephone socket in the wall, then this is the right button. Choose this also if you want to connect to an intranet and not necessarily have outside access.
+<b>$(gettext 'Wireless GPRS modem')</b>
+$(gettext 'GPRS is a wireless Internet technology, running on top of a GSM cellular phone connection. It provides very cheap Internet access throughout Costa Rica, and is popular in several European countries.')
 
-<b>Wireless GPRS modem</b>
-GPRS is a wireless Internet technology, running on top of a GSM cellular phone connection. It provides very cheap Internet access throughout Costa Rica, and is popular in several European countries.
-
-<b>Cable/DSL/wireless PPPOE</b>
-Many countries have this system (notably not the UK). Some builds of Puppy have two different applications, 'Pppoeconf' and 'Roaring Penguin' -- or one might be a PET package. Use what works for you, give feedback on the forum, as these, particularly Pppoeconf, are a work-in-progress.\"</label></text>
+<b>$(gettext 'Cable/DSL/wireless PPPOE')</b>
+$(gettext "Many countries have this system (notably not the UK). Some builds of Puppy have two different applications, 'Pppoeconf' and 'Roaring Penguin' -- or one might be a PET package. Use what works for you, give feedback on the forum, as these, particularly Pppoeconf, are a work-in-progress.")\"</label></text>
 
 
  </vbox>
 </window>
 "
 
 gtkdialog3 --program=HELPDIALOG
-

Changes to woof-code/rootfs-skeleton/usr/local/apps/PupZip/AppInfo.xml

@@ -1,14 +1,30 @@
 <?xml version="1.0"?>
 <AppInfo>
   <Summary>XArchive</Summary>
+  <Summary xml:lang="ru">Архиватор</Summary>
+  <Summary xml:lang="fr">Glisser déposer des fichiers à archiver</Summary>
+  <Summary xml:lang="ja">ファイルをこのアイコンにのせると圧縮や解凍ができます</Summary>
+  <Summary xml:lang="zh_CN">文件压缩管理器</Summary>
   <About>
     <Purpose>Drag and drop frontend for XArchive archiver utilities</Purpose>
     <License>GPL: http://www.gnu.org/licenses/gpl.txt</License>
     <Version>1.0 - Barry Kauler - Nov. 20, 2005</Version>
     <Homepage>http://www.puppylinux.com/</Homepage>
   </About>
   <AppMenu>
-    <Item label="Start XArchiver" option=""/>
-    <Item label="Help" option="--help"/>
+    <Item option="">
+    <Label>Start XArchive</Label>
+    <Label xml:lang="ru">Запуск архиватора</Label>
+    <Label xml:lang="fr">Lancer l'archiveur</Label>
+    <Label xml:lang="ja">XArchiveを開始</Label>
+    <Label xml:lang="zh_CN">运行文件压缩管理器</Label>
+    </Item>
+    <Item option="--help">
+    <Label>Help</Label>
+    <Label xml:lang="ru">Справка</Label>
+    <Label xml:lang="fr">Aide</Label>
+    <Label xml:lang="ja">ヘルプ</Label>
+    <Label xml:lang="zh_CN">帮助</Label>
+    </Item>
   </AppMenu>
 </AppInfo>

Changes to woof-code/rootfs-skeleton/usr/local/apps/Trash/AppInfo.xml

@@ -1,16 +1,34 @@
 <?xml version="1.0"?>
 <AppInfo>
   <Summary>Trash</Summary>
+  <Summary xml:lang="ru">Корзина</Summary>
+  <Summary xml:lang="ja">ゴミ箱</Summary>
+  <Summary xml:lang="zh_CN">回收站</Summary>
   <About>
     <Purpose>Trash Can for Puppy Linux</Purpose>
     <License>GPL: http://www.gnu.org/licenses/gpl.txt</License>
     <Version>0.3.2 - September 04, 2008</Version>
     <Homepage>http://murga-linux.com/puppy/viewtopic.php?t=27310/</Homepage>
   </About>
   <AppMenu>
-	<Item label="Look in the Trash" option="-look"/>
-	<Item label="View Summary" option="-summary"/>
-    <Item label="Empty the Trash" option="-empty"/>
+	<Item option="-look">
+	<Label>Look in the Trash</Label>
+	<Label xml:lang="ru">Посмотреть внутрь</Label>
+	<Label xml:lang="ja">ゴミ箱の中を見る</Label>
+    <Label xml:lang="zh_CN">查看回收站</Label>
+	</Item>
+	<Item option="-summary">
+	<Label>View Summary</Label>
+	<Label xml:lang="ru">Информация о файлах</Label>
+    <Label xml:lang="ja">サマリを表示</Label>
+    <Label xml:lang="zh_CN">显示摘要信息</Label>
+	</Item>
+    <Item option="-empty">
+    <Label>Empty the Trash</Label>
+    <Label xml:lang="ru">Очистить корзину</Label>
+    <Label xml:lang="ja">ゴミ箱を空にする</Label>
+    <Label xml:lang="zh_CN">清空回收站</Label>
+    </Item>
     <!--Item label="Quickly Empty the Trash" option="-empty-quick"/-->
   </AppMenu>
 </AppInfo>

Changes to woof-code/rootfs-skeleton/usr/local/apps/Trash/template/AppInfo.xml

@@ -1,17 +1,39 @@
 <?xml version="1.0"?>
 <AppInfo>
   <Summary>Trash</Summary>
+  <Summary xml:lang="ru">Корзина</Summary>
+  <Summary xml:lang="ja">ゴミ箱</Summary>
   <About>
     <Purpose>Trash Can for Puppy Linux</Purpose>
     <License>GPL: http://www.gnu.org/licenses/gpl.txt</License>
     <Version>0.3.2 - September 04, 2008</Version>
     <Homepage>http://murga-linux.com/puppy/viewtopic.php?t=27310/</Homepage>
   </About>
    <AppMenu>
-    <Item label="Restore Trashed Item" option="-restore"/>
-    <Item label="Open Item" option="-open-file"/>
-    <Item label="Show Item" option="-see-file"/>
-    <Item label="View Item Information"/>
-    <Item label="Permanently Delete Item" option="-delete"/>
+    <Item option="-restore">
+    <Label>Restore Trashed Item</Label>
+    <Label xml:lang="ru">Восстановить файл</Label>
+    <Label xml:lang="ja">ゴミ箱に入れたアイテムを復元</Label>
+   </Item>
+    <Item option="-open-file">
+     <Label>Open Item</Label>
+     <Label xml:lang="ru">Открыть файл</Label>
+    <Label xml:lang="ja">アイテムを開く</Label>
+   </Item>
+   <Item option="-see-file">
+     <Label>Show Item</Label>
+     <Label xml:lang="ru">Показать файл</Label>
+    <Label xml:lang="ja">アイテムを表示</Label>
+   </Item>
+   <Item>
+     <Label>View Item Information</Label>
+     <Label xml:lang="ru">Посмотреть информацию о файле</Label>
+    <Label xml:lang="ja">アイテム情報を表示</Label>
+	</Item>
+   <Item option="-delete">
+    <Label>Permanently Delete Item</Label>
+    <Label xml:lang="ru">Удалить файл из корзины</Label>
+    <Label xml:lang="ja">アイテムを完全に削除</Label>
+   </Item>
    </AppMenu>
 </AppInfo>

Changes to woof-code/rootfs-skeleton/usr/local/bin/pupzip

@@ -4,22 +4,31 @@
 #well, i want this to be a universal archiver frontend for puppy.
 #v4.00 25apr2008 BK: now have full dpkg-deb in Puppy.
 #w474 support .delta, .bfe files.
 #100616 support .xz files. support slackware and arch pkgs.
 #110620 busybox rpm2cpio does not work with mageia rpms, use 'exploderpm' instead (in /usr/sbin, permanent builtin).
+#120203 rodin.s: internationalized.
+
+export TEXTDOMAIN=pupzip
+export TEXTDOMAINDIR=/usr/share/locale
+export OUTPUT_CHARSET=UTF-8
+eval_gettext () {
+  local myMESSAGE=$(gettext "$1")
+  eval echo \"$myMESSAGE\"
+}
 
 PARAMIN="$@"
 
 CDIR="`pwd`"
 
 #note, do not cd to directory this app is located in.
 
 #ask if this is a slackware or arch binary pkg...
 if [ "`echo -n "$PARAMIN" | grep -E '\.tgz$|\.txz$|\.pkg\.tar\.gz$'`" != "" ];then
- xmessage -bg yellow -buttons "Yes:100,No:101" -center "Is this a Slackware or Arch package, that you want to install?
-If you answer Yes, the Package Manager application will run...
-If you answer No, the Xarchive application will run..."
+ xmessage -bg yellow -buttons "$(gettext 'Yes'):100,$(gettext 'No'):101" -center "$(gettext 'Is this a Slackware or Arch package, that you want to install?')
+$(gettext 'If you answer Yes, the Package Manager application will run...')
+$(gettext 'If you answer No, the Xarchive application will run...')"
  [ $? -eq 100 ] && exec petget $PARAMIN
 fi
 
 #w474
 if [ "`echo -n "$1" | grep '\.delta$'`" != "" ];then
@@ -30,13 +39,13 @@
 fi
 
 #v2.11 G2 has suggested this...
 if echo "$1" | grep -qi '\.gz$' ;then
    if ! echo "$1" | grep -qi '\.tar\.gz$' ;then
-      xmessage -buttons "Yes,No" -center "Do you want to decompress ${1}?
-(it will decompress in current location
- and the original file will be deleted)"
+      xmessage -buttons "$(gettext 'Yes'),$(gettext 'No')" -center "$(gettext 'Do you want to decompress') ${1}?
+($(gettext 'it will decompress in current location')
+ $(gettext 'and the original file will be deleted'))"
       [ $? -eq 101 ] || exit
       gunzip "$1"
       sync
       exit
    fi
@@ -43,15 +52,15 @@
 fi
 
 #also this...
 if echo "$1" | grep -qi '\.bz2$' ;then
    if ! echo "$1" | grep -qi '\.tar\.bz2$' ;then
-      xmessage -buttons "Yes,No" -center "Do you want to decompress ${1}?
-(it will decompress in current location
- and the original file will be deleted)"
+      xmessage -buttons "$(gettext 'Yes'),$(gettext 'No')" -center "$(gettext 'Do you want to decompress') ${1}?
+($(gettext 'it will decompress in current location
+ and the original file will be deleted'))"
       [ $? -eq 101 ] || exit
-      xmessage "Uncompressing, please wait..." &
+      xmessage "$(gettext 'Uncompressing, please wait...')" &
       UPID=$!
       bunzip2 "$1"
       sync
       kill $UPID
       exit
@@ -60,18 +69,18 @@
 
 #100616 .xz files...
 if echo "$1" | grep -qi '\.xz$' ;then
  if ! echo "$1" | grep -qi '\.tar\.xz$' ;then
   if [ "`which xz`" == "" ];then
-   xmessage -bg red -center "ERROR: 'xz' utility not installed"
+   xmessage -bg red -center "`gettext \"ERROR: 'xz' utility not installed\"`"
    exit
   fi
-  xmessage -bg yellow -buttons "Yes:100,No:101" -center "Do you want to decompress ${1}?
-(it will decompress in current location
- and the original file will be deleted)"
+  xmessage -bg yellow -buttons "$(gettext 'Yes'):100,$(gettext 'No'):101" -center "$(gettext 'Do you want to decompress') ${1}?
+($(gettext 'it will decompress in current location
+ and the original file will be deleted'))"
   [ $? -ne 100 ] && exit
-  yaf-splash -bg orange -text "Uncompressing, please wait..." &
+  yaf-splash -bg orange -text "$(gettext 'Uncompressing, please wait...')" &
   UPID=$!
   xz -d "$1"
   sync
   kill $UPID
   exit
@@ -87,12 +96,12 @@
   XARCHIVE="TkZip"
  else
   if [ ! "`which guitar`" = "" ];then
    XARCHIVE="guitar"
   else
-   exec xmessage -bg "orange red" -center -title "PupZip: ERROR" "No archive GUI program found.
-Please install XArchive."
+   exec xmessage -bg "orange red" -center -title "$(gettext 'PupZip: ERROR')" "$(gettext 'No archive GUI program found.
+Please install XArchive.')"
   fi
  fi
 fi
 
 #the full alternatives, dotpups by GuestToo...
@@ -105,34 +114,34 @@
  #just start xarchive...
  exec $XARCHIVE
 fi
 
 if [ "$XARCHIVE" = "xarchive" ];then
- MSGE="Drag and drop invocation of XArchive is achieved by dragging any file or
-directory the \"pupzip\" icon on the desktop. If you drag one of the
+ MSGE="$(gettext 'Drag and drop invocation of XArchive is achieved by dragging any file or
+directory the "pupzip" icon on the desktop. If you drag one of the
 recognised archived files, such as .tar.gz, .rpm, .deb, .zip, .tar.bz2,
 it will open in XArchive and you will be given the opportunity to extract
 it. If you drag an ordinary file to the desktop icon, such as for example
-\"myfile.txt\", a XArchive will popup a dialog asking if you want to add
-it to an existing archive or create a new one."
+"myfile.txt", a XArchive will popup a dialog asking if you want to add
+it to an existing archive or create a new one.')"
 else
- MSGE="There is support for drag-and-drop of archive files to the desktop icon,
+ MSGE="$(gettext 'There is support for drag-and-drop of archive files to the desktop icon,
 however not for files and directories -- for that you need to have
-XArchiver installed, the preferred archiver program for Puppy."
+XArchiver installed, the preferred archiver program for Puppy.')"
 fi
 
 if [ "$PARAMIN" = "--help" ];then
- xmessage -bg "orange" -center -title "PupZip: help" "
-This is a frontend to $XARCHIVE, which in turn is a frontend to the
-archiver utilities in Puppy (such as gzip, bzip2, dpkg, rpm, zip).
+ xmessage -bg "orange" -center -title "$(gettext 'PupZip: help')" "
+`eval_gettext \"This is a frontend to \\\$XARCHIVE, which in turn is a frontend to the\"`
+$(gettext 'archiver utilities in Puppy (such as gzip, bzip2, dpkg, rpm, zip).')
 
-Note: $XARCHIVE can be started in the conventional way via the menu.
+`eval_gettext \"Note: \\\$XARCHIVE can be started in the conventional way via the menu.\"`
 
 $MSGE
 
-PupZip can also be invoked from Rox by the \"Open With...\" menu,
-by right-clicking on a file or directory."
+$(gettext 'PupZip can also be invoked from Rox by the "Open With..." menu,
+by right-clicking on a file or directory.')"
  exit
 fi
 
 
 NORMFILE="`echo -n "$PARAMIN" | grep -iv "\\.tar" | grep -iv "\\.bz" | grep -iv "\\.gz" | grep -iv "\\.rpm" | grep -iv "\\.deb" | grep -iv "\\.zip" | grep -iv "\\.tgz" | grep -iv "\\.txz" | grep -iv "\\.tbz"`"
@@ -157,11 +166,11 @@
  if [ "`echo -n "$AFILE" | grep '\.'`" = "" ];then
   #file has no extension, so treat as ordinary file...
   if [ "$XARCHIVE" = "xarchive" ];then
    exec xarchive --add=ask "$PARAMIN"
   else
-   exec xmessage -bg "orange red" -center -title "PupZip: ERROR" "Not an archive file"
+   exec xmessage -bg "orange red" -center -title "$(gettext 'PupZip: ERROR')" "$(gettext 'Not an archive file')"
   fi
  else
   AEXT="$AFILE"
   while [ ! "`echo -n "$AEXT" | grep '\.'`" = "" ];do
    AEXT="`echo -n "$AEXT" | cut -f 2-6 -d '.'`"
@@ -174,11 +183,11 @@
    cd /tmp/temprpm
    #110620 rpm2cpio does not always work, use exploderpm...
    #$RPM2CPIO "$FULLSPEC" | cpio -d -i -m
    exploderpm -x "$FULLSPEC" #a script in /usr/sbin, uses cpio.
    if [ ! $? -eq 0 ];then
-    exec xmessage -bg "orange red" -center -title "PupZip: ERROR" "An error has occurred opening the RPM file."
+    exec xmessage -bg "orange red" -center -title "$(gettext 'PupZip: ERROR')" "$(gettext 'An error has occurred opening the RPM file.')"
    fi
    sync
    tar -c -f /tmp/temprpm.tar .
    rm -rf /tmp/temprpm
    cd /
@@ -207,10 +216,10 @@
  exec $XARCHIVE "$PARAMIN"
 else
  if [ "$XARCHIVE" = "xarchive" ];then
   exec xarchive --add=ask "$NORMFILE"
  else
-  exec xmessage -bg "orange red" -center -title "PupZip: ERROR" "Not an archive file"
+  exec xmessage -bg "orange red" -center -title "$(gettext 'PupZip: ERROR')" "$(gettext 'Not an archive file')"
  fi
 fi
 
 ###END###

Changes to woof-code/rootfs-skeleton/usr/local/petget/check_deps.sh

@@ -6,10 +6,14 @@
 #100718 reduce size of missing-libs list, to fit in window.
 #100830 missing libs, but some pkgs have a startup script that makes some libs visible.
 #101220 reported missing 'alsa-lib' but wary has 'alsa-lib21a', quick hack fix.
 #101221 yaf-splash fix.
 #110706 finding missing dependencies fix (running mageia 1).
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=check_deps.sh
+export OUTPUT_CHARSET=UTF-8
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 
 echo -n "" > /tmp/missinglibs.txt
@@ -70,11 +74,11 @@
 #######100718 end copied code block#######
 
 dependcheckfunc() {
  #entered with ex: APKGNAME=abiword-1.2.3
 
- yaf-splash -close never -bg orange -placement center -text "Checking ${APKGNAME} for missing shared library files..." &
+ yaf-splash -close never -bg orange -placement center -text "$(gettext 'Checking') ${APKGNAME} $(gettext 'for missing shared library files...')" &
  X1PID=$!
 
  #a hack if OO is installed...
  if [ "`echo -n "$APKGNAME" | grep 'openoffice'`" != "" ];then
   [ -d /opt ] && FNDOO="`find /opt -maxdepth 2 -type d -iname 'openoffice*'`"
@@ -88,11 +92,11 @@
   ISANEXEC="`file --brief $ONEFILE | grep --extended-regexp "LSB executable|shared object"`"
   if [ ! "$ISANEXEC" = "" ];then
    LDDRESULT="`ldd $ONEFILE`"
    MISSINGLIBS="`echo "$LDDRESULT" | grep "not found" | cut -f 2 | cut -f 1 -d " " | tr "\n" " "`"
    if [ ! "$MISSINGLIBS" = "" ];then
-    echo "File $ONEFILE has these missing library files:" >> /tmp/missinglibs_details.txt #100718
+    echo "$(gettext 'File') $ONEFILE $(gettext 'has these missing library files:')" >> /tmp/missinglibs_details.txt #100718
     echo " $MISSINGLIBS" >> /tmp/missinglibs_details.txt #100718
     echo " $MISSINGLIBS" >> /tmp/missinglibs.txt #100718
    fi
   fi
  done
@@ -115,11 +119,11 @@
 }
 
 #searches deps of all user-installed pkgs...
 missingpkgsfunc() {
 # yaf-splash -close never -font "8x16" -outline 0 -margin 4 -bg orange -text "Checking all user-installed packages for any missing dependencies..." &
- yaf-splash -close never -bg orange -text "Checking all user-installed packages for any missing dependencies..." &
+ yaf-splash -close never -bg orange -text "$(gettext 'Checking all user-installed packages for any missing dependencies...')" &
  X2PID=$!
   USER_DB_dependencies="`cat /root/.packages/user-installed-packages | cut -f 9 -d '|' | tr ',' '\n' | sort -u | tr '\n' ','`"
   /usr/local/petget/findmissingpkgs.sh "$USER_DB_dependencies"
   #...returns /tmp/petget_installed_patterns_all, /tmp/petget_pkg_deps_patterns, /tmp/petget_missingpkgs_patterns
   MISSINGDEPS_PATTERNS="`cat /tmp/petget_missingpkgs_patterns`" #v431
@@ -137,11 +141,11 @@
   [ -f /root/.packages/${APKGNAME}.files ] && dependcheckfunc
  done
 else
  #ask user what pkg to check...
  ACTIONBUTTON="<button>
-     <label>Check dependencies</label>
+     <label>$(gettext 'Check dependencies')</label>
      <action type=\"exit\">BUTTON_CHK_DEPS</action>
     </button>"
  echo -n "" > /tmp/petget_depchk_buttons
  cat /root/.packages/user-installed-packages | cut -f 1,10 -d '|' |
  while read ONEPKGSPEC
@@ -161,16 +165,16 @@
    RADBUTTONS="<hbox><vbox>${RADBUTTONS1}</vbox><vbox>${RADBUTTONS2}</vbox></hbox>"
   fi
  fi
  if [ "$RADBUTTONS" = "" ];then
   ACTIONBUTTON=""
-  RADBUTTONS="<text use-markup=\"true\"><label>\"<b>No packages installed by user, click 'Cancel' button</b>\"</label></text>"
+  RADBUTTONS="<text use-markup=\"true\"><label>\"<b>$(gettext "No packages installed by user, click 'Cancel' button")</b>\"</label></text>"
  fi
- export DEPS_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+ export DEPS_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
-   <text><label>Please choose what package you would like to check the dependencies of:</label></text>
-   <frame User-installed packages>
+   <text><label>$(gettext 'Please choose what package you would like to check the dependencies of:')</label></text>
+   <frame $(gettext 'User-installed packages')>
    ${RADBUTTONS}
    </frame>
    <hbox>
     ${ACTIONBUTTON}
     <button cancel></button>
@@ -193,38 +197,38 @@
 fi
 
 missingpkgsfunc
 
 #present results to user...
-MISSINGMSG1="<text use-markup=\"true\"><label>\"<b>No missing shared libraries</b>\"</label></text>"
+MISSINGMSG1="<text use-markup=\"true\"><label>\"<b>$(gettext 'No missing shared libraries')</b>\"</label></text>"
 if [ -s /tmp/missinglibs.txt ];then
- MISSINGMSG1="<text><label>These libraries are missing:</label></text><text use-markup=\"true\"><label>\"<b>`cat /tmp/missinglibs.txt`</b>\"</label></text>"
+ MISSINGMSG1="<text><label>$(gettext 'These libraries are missing:')</label></text><text use-markup=\"true\"><label>\"<b>`cat /tmp/missinglibs.txt`</b>\"</label></text>"
 fi
 if [ -s /tmp/missinglibs_hidden.txt ];then #100830
  #[ ! -s /tmp/missinglibs.txt ] && MISSINGMSG1=""
- MISSINGMSG1="${MISSINGMSG1} <text><label>These needed libraries exist but are not in the library search path (it is assumed that a startup script in the package makes these libraries loadable by the application):</label></text><text use-markup=\"true\"><label>\"<b>`cat /tmp/missinglibs_hidden.txt`</b>\"</label></text>"
+ MISSINGMSG1="${MISSINGMSG1} <text><label>$(gettext 'These needed libraries exist but are not in the library search path (it is assumed that a startup script in the package makes these libraries loadable by the application):')</label></text><text use-markup=\"true\"><label>\"<b>`cat /tmp/missinglibs_hidden.txt`</b>\"</label></text>"
 fi
-MISSINGMSG2="<text use-markup=\"true\"><label>\"<b>No missing dependent packages</b>\"</label></text>"
+MISSINGMSG2="<text use-markup=\"true\"><label>\"<b>$(gettext 'No missing dependent packages')</b>\"</label></text>"
 if [ "$MISSINGDEPS_PATTERNS" != "" ];then #[ -s /tmp/petget_missingpkgs ];then
  MISSINGPKGS="`echo "$MISSINGDEPS_PATTERNS" | sed -e 's%|%%g' | tr '\n' ' '`" #v431
  MISSINGMSG2="<text use-markup=\"true\"><label>\"<b>${MISSINGPKGS}</b>\"</label></text>"
 fi
 
 DETAILSBUTTON=""
 if [ -s /tmp/missinglibs.txt -o -s /tmp/missinglibs_hidden.txt ];then #100830 details button
- DETAILSBUTTON="<button><label>View details</label><action>defaulttextviewer /tmp/missinglibs_details.txt & </action></button>"
+ DETAILSBUTTON="<button><label>$(gettext 'View details')</label><action>defaulttextviewer /tmp/missinglibs_details.txt & </action></button>"
 fi
 
 PKGS="$APKGNAME"
 [ $1 ] && PKGS="`echo -n "${1}" | tr '|' ' '`"
 
-export DEPS_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export DEPS_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
-   <text><label>Puppy has searched for any missing shared libraries of these packages:</label></text>
+   <text><label>$(gettext 'Puppy has searched for any missing shared libraries of these packages:')</label></text>
    <text><label>${PKGS}</label></text>
    ${MISSINGMSG1}
-   <text><label>Puppy has examined all user-installed packages and found these missing dependencies:</label></text>
+   <text><label>$(gettext 'Puppy has examined all user-installed packages and found these missing dependencies:')</label></text>
    ${MISSINGMSG2}
    <hbox>
     ${DETAILSBUTTON}
     <button ok></button>
    </hbox>

Changes to woof-code/rootfs-skeleton/usr/local/petget/configure.sh

@@ -2,12 +2,16 @@
 #(c) Copyright Barry Kauler 2009, puppylinux.com
 #2009 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html).
 #called from /usr/local/petget/pkg_chooser.sh
 #configure package manager
 #110118 alternate user interfaces.
-
-export LANG=C
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=configure.sh
+export OUTPUT_CHARSET=UTF-8
+
+#export LANG=C
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 . /root/.packages/DISTRO_PET_REPOS
 . /root/.packages/PKGS_MANAGEMENT #has PKG_REPOS_ENABLED
 
@@ -33,36 +37,36 @@
  UI_RADIO="${UI_RADIO}<radiobutton><label>${ONEUI}</label><action>echo -n ${ONEUI} > /var/local/petget/ui_choice</action></radiobutton>"
 done
 
 #  <text><label>Choose an alternate User Interface:</label></text>
 
-export CONFIG_DIALOG="<window title=\"Puppy Package Manager: configure\" icon-name=\"gtk-about\">
+export CONFIG_DIALOG="<window title=\"$(gettext 'Puppy Package Manager: configure')\" icon-name=\"gtk-about\">
 <hbox>
 
 <vbox>
- <frame Update database>
+ <frame $(gettext 'Update database')>
   <hbox>
-   <text><label>Puppy has a database file for each package repository. Click this button to download the latest information on what packages are in the repository:</label></text>
-   <button><label>Update now</label><action>rxvt -bg yellow -title 'download databases' -e /usr/local/petget/0setup</action></button>
+   <text><label>$(gettext 'Puppy has a database file for each package repository. Click this button to download the latest information on what packages are in the repository:')</label></text>
+   <button><label>$(gettext 'Update now')</label><action>rxvt -bg yellow -title 'download databases' -e /usr/local/petget/0setup</action></button>
   </hbox>
-  <text><label>Note: some repositories are 'fixed' and do not need to be updated. An example of this is the Slackware official version 12.2 repo. An example that does change is the Slackware 'slacky' 12.2 repo which has extra packages for Slackware 12.2. Anyway, to be on the safe side, clicking the above button will update all database files.</label></text>
-  <text><label>Warning: The database information for some repositories is quite large, about 1.5MB for 'slacky' and several MB for Ubuntu/Debian. If you are on dialup, be prepared for this.</label></text>
-  <text><label>Technical note: if you would like to see the package databases, they are at /root/.packages/Packages-*. These are in a standardised format, regardless of which distribution they were obtained from. This format is considerably smaller than that of the original distro.</label></text>
+  <text><label>$(gettext "Note: some repositories are 'fixed' and do not need to be updated. An example of this is the Slackware official version 12.2 repo. An example that does change is the Slackware 'slacky' 12.2 repo which has extra packages for Slackware 12.2. Anyway, to be on the safe side, clicking the above button will update all database files.")</label></text>
+  <text><label>$(gettext "Warning: The database information for some repositories is quite large, about 1.5MB for 'slacky' and several MB for Ubuntu/Debian. If you are on dialup, be prepared for this.")</label></text>
+  <text><label>$(gettext 'Technical note: if you would like to see the package databases, they are at') /root/.packages/Packages-*. $(gettext 'These are in a standardised format, regardless of which distribution they were obtained from. This format is considerably smaller than that of the original distro.')</label></text>
  </frame>
- <frame User Interface>
+ <frame $(gettext 'User Interface')>
   ${UI_RADIO}
  </frame>
 </vbox>
 
 <vbox>
- <text use-markup=\"true\"><label>\"<b>Requires restart of PPM to see changes</b>\"</label></text>
- <frame Choose repositories>
-  <text><label>Choose what repositories you would like to have appear in the main GUI window (tick a maximum of 5 boxes):</label></text>
+ <text use-markup=\"true\"><label>\"<b>$(gettext 'Requires restart of PPM to see changes')</b>\"</label></text>
+ <frame $(gettext 'Choose repositories')>
+  <text><label>$(gettext 'Choose what repositories you would like to have appear in the main GUI window (tick a maximum of 5 boxes):')</label></text>
   ${CHECKBOXES_REPOS}
   <hbox>
-   <text><label>Adding a new repository currently requires manual editing of some text files. Click this button for further information:</label></text>
-   <button><label>Add repo help</label>
+   <text><label>$(gettext 'Adding a new repository currently requires manual editing of some text files. Click this button for further information:')</label></text>
+   <button><label>$(gettext 'Add repo help')</label>
    <action>nohup defaulthtmlviewer file:///usr/local/petget/README-add-repo.htm & </action>
    </button>
   </hbox>
  </frame>
  <hbox>
@@ -100,9 +104,8 @@
  fi
 done
 grep -v '^PKG_REPOS_ENABLED' /root/.packages/PKGS_MANAGEMENT > /tmp/pkgs_management_tmp2
 mv -f /tmp/pkgs_management_tmp2 /root/.packages/PKGS_MANAGEMENT
 echo "PKG_REPOS_ENABLED='${enabledrepos}'" >> /root/.packages/PKGS_MANAGEMENT
-
 
 
 ###END###

Changes to woof-code/rootfs-skeleton/usr/local/petget/dependencies.sh

@@ -21,10 +21,14 @@
 #  ...notice the '-' are backslashed.
 #110722 versioning info added to dependencies.
 #110723 remove hardcoded path /root/.packages, so can run script in Woof.
 #110822 versioning operators can be chained, ex: +linux_kernel&ge2.6.32&lt2.6.33
 #111107 01micko: fix for '||' messing things up.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=dependencies.sh
+export OUTPUT_CHARSET=UTF-8
 
 if [ -f ./PKGS_MANAGEMENT ];then #110723
 . ./PKGS_MANAGEMENT
 . ./DISTRO_PET_REPOS
 . ./DISTRO_SPECS
@@ -41,11 +45,11 @@
 #a problem is that the dependencies may have their own dependencies. Some pkg
 #databases have all dependencies up-front, whereas some only list the higher-level
 #dependencies and the dependencies of those have to be looked for.
 
 #/usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Please wait, processing package database files..." &
-yaf-splash -bg orange -text "Please wait, processing package database files..." &
+yaf-splash -bg orange -text "$(gettext 'Please wait, processing package database files...')" &
 X1PID=$!
 
 ALLINSTALLEDPKGS="`cat /tmp/petget_installed_patterns_all`"
 TREE1="`cat /tmp/petget_installpreview_pkgname`"
 
@@ -76,12 +80,12 @@
 fi
 DB_OTHERS="`echo "$DB_OTHERS" | tr '\n' ' '`"
 
 #the question is, how deep to search for deps? i'll go down 2 levels... make it 3...
 cp -f /tmp/petget_missingpkgs_patterns /tmp/petget_missingpkgs_patternsx
-echo "HIERARCHY OF MISSING DEPENDENCIES OF PACKAGE $TREE1" > /tmp/petget_deps_visualtreelog #w017
-echo "Format of each line: 'a-missing-dependent-pkg: missing dependencies of a-missing-dependent-pkg'" >> /tmp/petget_deps_visualtreelog #w017
+echo "$(gettext 'HIERARCHY OF MISSING DEPENDENCIES OF PACKAGE') $TREE1" > /tmp/petget_deps_visualtreelog #w017
+echo "$(gettext "Format of each line: 'a-missing-dependent-pkg: missing dependencies of a-missing-dependent-pkg'")" >> /tmp/petget_deps_visualtreelog #w017
 for ONELEVEL in 1 2 3
 do
  echo "" >> /tmp/petget_deps_visualtreelog #w017
  echo -n "" > /tmp/petget_missingpkgs_patterns2
  for depPATTERN in `cat /tmp/petget_missingpkgs_patternsx`

Changes to woof-code/rootfs-skeleton/usr/local/petget/downloadpkgs.sh

@@ -13,12 +13,16 @@
 #101014 another hack, wary5 pets are now in the ibiblio quirky site.
 #101016 do not offer to trim-the-fat if install pet pkg(s).
 #101116 call download_file to download pkg, instead of direct run of wget.
 #101118 improve test fail and exit number.
 #110812 hack for pets that are in quirky site at ibiblio.
-
-export LANG=C
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=downloadpkgs.sh
+export OUTPUT_CHARSET=UTF-8
+
+#export LANG=C
 PASSEDPARAM=""
 [ $1 ] && PASSEDPARAM="$1" #DOWNLOADONLY
 FLAGPET="" #101016
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
@@ -99,28 +103,28 @@
 
  PKGNAMES="`cat $ONELIST | cut -f 1 -d '|' | tr '\n' ' '`"
 
  [ "$PKGNAMES" = "" -o "$PKGNAMES" = " " ] && continue #100921
 
- export DEPS_DIALOG="<window title=\"Puppy Package Manager: download\" icon-name=\"gtk-about\">
+ export DEPS_DIALOG="<window title=\"$(gettext 'Puppy Package Manager: download')\" icon-name=\"gtk-about\">
 <vbox>
- <text><label>You have chosen to download these packages:</label></text>
+ <text><label>$(gettext 'You have chosen to download these packages:')</label></text>
  <text use-markup=\"true\"><label>\"<b>${PKGNAMES}</b>\"</label></text>
- <text><label>Please choose which URL you would like to download them from. Choose 'LOCAL FOLDER' if you have already have them on this computer (on hard drive, USB drive or CD):</label></text>
+ <text><label>$(gettext "Please choose which URL you would like to download them from. Choose 'LOCAL FOLDER' if you have already have them on this computer (on hard drive, USB drive or CD):")</label></text>
 
  <frame ${LISTNAMECUT}>
   ${REPOBUTTONS}
-  <radiobutton><label>LOCAL FOLDER</label><variable>RADIO_URL_LOCAL</variable></radiobutton>
+  <radiobutton><label>$(gettext 'LOCAL FOLDER')</label><variable>RADIO_URL_LOCAL</variable></radiobutton>
  </frame>
 
  <hbox>
   <button>
-   <label>Test URLs</label>
+   <label>$(gettext 'Test URLs')</label>
    <action>/usr/local/petget/testurls.sh</action>
   </button>
   <button>
-   <label>Download packages</label>
+   <label>$(gettext 'Download packages')</label>
    <action type=\"exit\">BUTTON_PKGS_DOWNLOAD</action>
   </button>
   <button cancel></button>
  </hbox>
 </vbox>
@@ -191,14 +195,14 @@
     /usr/local/petget/installpkg.sh /root/$DLPKG
     #...appends pkgname and category to /tmp/petget-installed-pkgs-log if successful.
    fi
    if [ $? -ne 0 ];then
     #xmessage -bg red -title "Puppy Package Manager" "ERROR: faulty download of $DLPKG"
-    export FAIL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+    export FAIL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/error.xpm</input></pixmap>
-   <text use-markup=\"true\"><label>\"<b>Error, faulty download of ${DLPKG}</b>\"</label></text>
+   <text use-markup=\"true\"><label>\"<b>$(gettext 'Error, faulty download of') ${DLPKG}</b>\"</label></text>
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>
  </window>"
@@ -212,14 +216,14 @@
    #DLPKG_NAME="`basename $DLPKG .tgz`" 2>/dev/null
    #DLPKG_NAME="`basename $DLPKG .tar.gz`" 2>/dev/null
    #rm -rf /root/$DLPKG_NAME
   else
    #xmessage -bg red -title "Puppy Package Manager" "ERROR: Failed to download ${DLPKG}"
-   export FAIL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+   export FAIL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/error.xpm</input></pixmap>
-   <text use-markup=\"true\"><label>\"<b>Error, failed to download ${DLPKG}</b>\"</label></text>
+   <text use-markup=\"true\"><label>\"<b>$(gettext 'Error, failed to download') ${DLPKG}</b>\"</label></text>
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>
  </window>
@@ -233,14 +237,14 @@
 
 #101118 exit 1 if all pkgs failed to download...
 [ $FAILCNT -ne 0 ] && [ $FAILCNT -eq $PKGCNT ] && EXITVAL=1
 
 if [ "$PASSEDPARAM" = "DOWNLOADONLY" ];then
- export DL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+ export DL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/ok.xpm</input></pixmap>
-   <text><label>Finished. The packages have been downloaded to /root directory.</label></text>
+   <text><label>$(gettext 'Finished. The packages have been downloaded to') /root $(gettext 'directory.')</label></text>
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>
  </window>
@@ -251,27 +255,27 @@
 
 #announce summary of successfully installed pkgs...
 #installpkg.sh will have logged to /tmp/petget-installed-pkgs-log
 if [ -s /tmp/petget-installed-pkgs-log ];then
  if [ "$FLAGPET" != "yes" ];then #101016 do not offer to trim-the-fat if pet pkg(s)
-  BUTTONS9="<text><label>NOTE: If you are concerned about the large size of the installed packages, Puppy has some clever code to delete files that are not likely to be needed for the application to actually run. If you would like to try this, click 'Trim the fat' button (otherwise just click 'OK'):</label></text>
+  BUTTONS9="<text><label>$(gettext "NOTE: If you are concerned about the large size of the installed packages, Puppy has some clever code to delete files that are not likely to be needed for the application to actually run. If you would like to try this, click 'Trim the fat' button (otherwise just click 'OK'):")</label></text>
    <hbox>
-    <button><label>Trim the fat</label><action type=\"exit\">BUTTON_TRIM_FAT</action></button>
+    <button><label>$(gettext 'Trim the fat')</label><action type=\"exit\">BUTTON_TRIM_FAT</action></button>
     <button ok></button>
    </hbox>"
  else
   BUTTONS9="<hbox>
     <button ok></button>
    </hbox>"
  fi
  INSTALLEDMSG="`cat /tmp/petget-installed-pkgs-log`"
- CAT_MSG="Note: the package(s) do not have a menu entry."
- [ "`echo "$INSTALLEDMSG" | grep -o 'CATEGORY.*' | grep -v 'none'`" != "" ] && CAT_MSG="...look in the appropriate category in the menu (bottom-left of screen) to run the application. Note, some packages do not have a menu entry." #424 fix. 101016 fix.
- export INSTALL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+ CAT_MSG="$(gettext 'Note: the package(s) do not have a menu entry.')"
+ [ "`echo "$INSTALLEDMSG" | grep -o 'CATEGORY.*' | grep -v 'none'`" != "" ] && CAT_MSG="$(gettext '...look in the appropriate category in the menu (bottom-left of screen) to run the application. Note, some packages do not have a menu entry.')" #424 fix. 101016 fix.
+ export INSTALL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
    <pixmap><input file>/usr/local/lib/X11/pixmaps/ok.xpm</input></pixmap>
-   <text><label>The following packages have been successfully installed:</label></text>
+   <text><label>$(gettext 'The following packages have been successfully installed:')</label></text>
    <text wrap=\"false\" use-markup=\"true\"><label>\"<b>${INSTALLEDMSG}</b>\"</label></text>
    <text><label>${CAT_MSG}</label></text>
    ${BUTTONS9}
   </vbox>
  </window>
@@ -283,27 +287,27 @@
  if [ "$EXIT" = "BUTTON_TRIM_FAT" ];then
   INSTALLEDPKGNAMES="`echo "$INSTALLEDMSG" | cut -f 2 -d ' ' | tr '\n' ' '`"
   #101013 improvement suggested by L18L...
   CURRLOCALES="`locale -a | grep _ | cut -d '_' -f 1`"
   LISTLOCALES="`echo -e -n "en\n${CURRLOCALES}" | sort -u | tr -s '\n' | tr '\n' ',' | sed -e 's%,$%%'`"
-  export TRIM_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+  export TRIM_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
    <pixmap><input file>/usr/local/lib/X11/pixmaps/question.xpm</input></pixmap>
-   <text><label>You have chosen to 'trim the fat' of these installed packages:</label></text>
+   <text><label>$(gettext "You have chosen to 'trim the fat' of these installed packages:")</label></text>
    <text use-markup=\"true\"><label>\"<b>${INSTALLEDPKGNAMES}</b>\"</label></text>
    <frame Locale>
-   <text><label>Type the 2-letter country designations for the locales that you want to retain, separated by commas. Leave blank to retain all locale files (see /usr/share/locale for examples):</label></text>
+   <text><label>$(gettext 'Type the 2-letter country designations for the locales that you want to retain, separated by commas. Leave blank to retain all locale files (see /usr/share/locale for examples):')</label></text>
    <entry><default>${LISTLOCALES}</default><variable>ENTRY_LOCALE</variable></entry>
    </frame>
-   <frame Documentation>
-   <checkbox><default>true</default><label>Tick this to delete documentation files</label><variable>CHECK_DOCDEL</variable></checkbox>
+   <frame $(gettext 'Documentation')>
+   <checkbox><default>true</default><label>$(gettext 'Tick this to delete documentation files')</label><variable>CHECK_DOCDEL</variable></checkbox>
    </frame>
-   <frame development>
-   <checkbox><default>true</default><label>Tick this to delete development files</label><variable>CHECK_DEVDEL</variable></checkbox>
-   <text><label>(only needed if these packages are required as dependencies when compiling another package from source code)</label></text>
+   <frame $(gettext 'Development')>
+   <checkbox><default>true</default><label>$(gettext 'Tick this to delete development files')</label><variable>CHECK_DEVDEL</variable></checkbox>
+   <text><label>$(gettext '(only needed if these packages are required as dependencies when compiling another package from source code)')</label></text>
    </frame>
-   <text><label>Click 'OK', or if you decide to chicken-out click 'Cancel':</label></text>
+   <text><label>$(gettext "Click 'OK', or if you decide to chicken-out click 'Cancel':")</label></text>
    <hbox>
     <button ok></button>
     <button cancel></button>
    </hbox>
   </vbox>
@@ -310,11 +314,11 @@
   </window>"
   RETPARAMS="`gtkdialog3 --program=TRIM_DIALOG`"
   eval "$RETPARAMS"
   [ "$EXIT" != "OK" ] && exit $EXITVAL
 #  /usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Please wait, trimming fat from packages..." &
-  yaf-splash -bg orange -text "Please wait, trimming fat from packages..." &
+  yaf-splash -bg orange -text "$(gettext 'Please wait, trimming fat from packages...')" &
   X4PID=$!
   elPATTERN="`echo -n "$ENTRY_LOCALE" | tr ',' '\n' | sed -e 's%^%/%' -e 's%$%/%' | tr '\n' '|'`"
   for PKGNAME in $INSTALLEDPKGNAMES
   do
    cat /root/.packages/${PKGNAME}.files |

Changes to woof-code/rootfs-skeleton/usr/local/petget/fetchinfo.sh

@@ -3,10 +3,14 @@
 #passed param (also variable TREE1) is name of pkg, ex: abiword-1.2.3.
 #/tmp/petget_filterversion has the repository that installing from.
 #w019 now have /root/.packages/PKGS_HOMEPAGES
 #101221 yaf-splash fix.
 #110523 Scientific Linux docs.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=fetchinfo.sh
+export OUTPUT_CHARSET=UTF-8
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 
 #ex: TREE1=abiword-1.2.4 (first field in database entry).
@@ -26,11 +30,11 @@
 
 case $DB_DISTRO in
  slackware)
   if [ ! -f /root/.packages/PACKAGES.TXT-${DB_SUB} ];then
 #   /usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Please wait, downloading database file to /root/.packages/PACKAGES.TXT-${DB_SUB}..." &
-   yaf-splash -bg orange -text "Please wait, downloading database file to /root/.packages/PACKAGES.TXT-${DB_SUB}..." &
+   yaf-splash -close never -bg orange -text "$(gettext 'Please wait, downloading database file to') /root/.packages/PACKAGES.TXT-${DB_SUB}..." &
    X5PID=$!
    cd /root/.packages
    case $DB_SUB in
     official)
      wget http://slackware.cs.utah.edu/pub/slackware/slackware-${DB_RELEASE}/PACKAGES.TXT
@@ -71,11 +75,11 @@
   nohup defaulthtmlviewer $HOMESITE &
  ;;
  scientific) #110523
   ###THIS IS INCOMPLETE###
   if [ ! -f /root/.packages/primary.xml ];then
-   yaf-splash -bg orange -text "Please wait, downloading database file to /root/.packages/primary.xml..." &
+   yaf-splash -close never -bg orange -text "$(gettext 'Please wait, downloading database file to') /root/.packages/primary.xml..." &
    X5PID=$!
    cd /root/.packages
    wget http://ftp.scientificlinux.org/linux/scientific/${DISTRO_COMPAT_VERSION}/i386/os/repodata/primary.xml.gz
    sync
    gunzip primary.xml.gz

Changes to woof-code/rootfs-skeleton/usr/local/petget/filterpkgs.sh

@@ -11,12 +11,16 @@
 #v425 'ALL' may take awhile, put up please wait msg.
 #100716 PKGS_MANAGEMENT file has new variable PKG_PET_THEN_BLACKLIST_COMPAT_KIDS.
 #101129 checkboxes for show EXE DEV DOC NLS.
 #101221 yaf-splash fix.
 #110530 ignore packages with different kernel version number, format -k2.6.32.28- in pkg name (also findnames.sh)...
-
-export LANG=C
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=filterpkgs.sh
+export OUTPUT_CHARSET=UTF-8
+
+#export LANG=C
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 . /root/.packages/PKGS_MANAGEMENT #has DISTRO_PPM_DEVX_EXCEPTIONS, PKG_ALIASES_INSTALLED, PKG_NAME_ALIASES
 
@@ -25,11 +29,11 @@
 [ "$PKG_FIRST_CHAR" = "ALL" ] && PKG_FIRST_CHAR='a-z0-9'
 
 X1PID=0
 if [ "`cat /tmp/petget_pkg_first_char`" = "ALL" ];then
 # /usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Please wait, processing all entries may take awhile..." &
- yaf-splash -bg orange -text "Please wait, processing all entries may take awhile..." &
+ yaf-splash -close never -bg orange -text "$(gettext 'Please wait, processing all entries may take awhile...')" &
  X1PID=$!
 fi
 
 #which repo...
 FIRST_DB="`ls -1 /root/.packages/Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}* | head -n 1 | rev | cut -f 1 -d '/' | rev | cut -f 2-4 -d '-'`"

Changes to woof-code/rootfs-skeleton/usr/local/petget/findnames.sh

@@ -4,10 +4,14 @@
 #called from /usr/local/petget/pkg_chooser.sh
 #  ENTRY1 is a string, to search for a package.
 #101129 checkboxes for show EXE DEV DOC NLS. fixed some search bugs.
 #110223 run message as separate process.
 #110530 ignore packages with different kernel version number, format -k2.6.32.28- in pkg name (also filterpkgs.sh)...
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=findnames.sh
+export OUTPUT_CHARSET=UTF-8
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS #has PKGS_SPECS_TABLE.
 . /root/.packages/DISTRO_PET_REPOS #has PET_REPOS, PACKAGELISTS_PET_ORDER
 
@@ -46,11 +50,11 @@
   mv -f /tmp/filterpkgs.resultsxxx /tmp/filterpkgs.results
  fi
 fi
 
 if [ "$FNDIT" = "no" ];then
- xmessage -bg red -center -title "PPM find" "Sorry, no matching package name" & #110223 run as separate process.
+ xmessage -bg red -center -title "$(getext 'PPM find')" "$(gettext 'Sorry, no matching package name')" & #110223 run as separate process.
 else
  #101129 postprocess, show EXE, DEV, DOC, NLS...
  DEF_CHK_EXE='true'
  DEF_CHK_DEV='false'
  DEF_CHK_DOC='false'

Changes to woof-code/rootfs-skeleton/usr/local/petget/installpreview.sh

@@ -6,16 +6,20 @@
 #/tmp/petget_filterversion has the repository that installing from.
 #100821 bug in Lucid 5.1, /tmp/pup_event_sizefreem had two identical lines.
 #101221 yaf-splash fix.
 #120101 01micko: jwm >=547 has -reload, no screen flicker.
 #120116 rev. 514 introduced icon rendering method which broke -reload at 547. fixed at rev. 574.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=installpreview.sh
+export OUTPUT_CHARSET=UTF-8
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 
 #/usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Please wait, processing package database files..." &
-yaf-splash -bg orange -text "Please wait, processing package database files..." &
+yaf-splash -close never -bg orange -text "$(gettext 'Please wait, processing package database files...')" &
 X1PID=$!
 
 #ex: TREE1=abiword-1.2.4 (first field in database entry).
 DB_FILE=Packages-`cat /tmp/petget_filterversion` #ex: Packages-slackware-12.2-official
 
@@ -35,36 +39,36 @@
 DB_path="`echo -n "$DB_ENTRY" | cut -f 7 -d '|'`"
 DB_fullfilename="`echo -n "$DB_ENTRY" | cut -f 8 -d '|'`"
 DB_dependencies="`echo -n "$DB_ENTRY" | cut -f 9 -d '|'`"
 DB_description="`echo -n "$DB_ENTRY" | cut -f 10 -d '|'`"
 
-[ "$DB_description" = "" ] && DB_description="no description available"
+[ "$DB_description" = "" ] && DB_description="$(gettext 'no description available')"
 
 SIZEFREEM=`cat /tmp/pup_event_sizefreem | head -n 1` #100821 bug in Lucid 5.1, file had two identical lines.
 SIZEFREEK=`expr $SIZEFREEM \* 1024`
 
 if [ $DB_size ];then
  SIZEMK="`echo -n "$DB_size" | rev | cut -c 1`"
  SIZEVAL=`echo -n "$DB_size" | rev | cut -c 2-9 | rev`
- SIZEINFO="<text><label>After installation, this package will occupy ${SIZEVAL}${SIZEMK}B. The amount of free space that you have for installation is ${SIZEFREEM}MB (${SIZEFREEK}KB).</label></text>"
+ SIZEINFO="<text><label>$(gettext 'After installation, this package will occupy') ${SIZEVAL}${SIZEMK}B. $(gettext 'The amount of free space that you have for installation is') ${SIZEFREEM}MB (${SIZEFREEK}KB).</label></text>"
  SIZEVALz=`expr $SIZEVAL \/ 3`
  SIZEVALz=`expr $SIZEVAL + $SIZEVALz`
  SIZEVALx2=`expr $SIZEVALz + 10000`
  if [ $SIZEVALx2 -ge $SIZEFREEK ];then
-  MSGWARN1="${SIZEINFO}<text use-markup=\"true\"><label>\"<b>A general rule-of-thumb is that the free space should be at least the original-package-size plus installed-package-size plus 10MB to allow for sufficient working space during and after installation. It doesn't look to good, so you had better hit the 'Cancel' button</b> -- note, if you are running Puppy in a mode that has a 'pupsave' file, then the Utility menu has an entry 'Resize personal storage file' that should solve the problem.\"</label></text>"
+  MSGWARN1="${SIZEINFO}<text use-markup=\"true\"><label>\"<b>$(gettext "A general rule-of-thumb is that the free space should be at least the original-package-size plus installed-package-size plus 10MB to allow for sufficient working space during and after installation. It does not look to good, so you had better click the 'Cancel' button")</b> -- $(gettext "note, if you are running Puppy in a mode that has a 'pupsave' file, then the Utility menu has an entry 'Resize personal storage file' that should solve the problem.")\"</label></text>"
  else
-  MSGWARN1="${SIZEINFO}<text use-markup=\"true\"><label>\"<b>...free space looks ok, so click 'Install' button:</b>\"</label></text>"
+  MSGWARN1="${SIZEINFO}<text use-markup=\"true\"><label>\"<b>$(gettext "...free space looks ok, so click 'Install' button:")</b>\"</label></text>"
  fi
 else
- MSGWARN1="<text use-markup=\"true\"><label>\"<b>Unfortunately the provider of the package database has not supplied the size of this package when installed. If you are able to see the size of the compressed package, multiple that by 3 to get the approximate installed size. The free available space, which is ${SIZEFREEM}MB (${SIZEFREEK}KB), should be at least 4 times greater.</b>\"</label></text>"
+ MSGWARN1="<text use-markup=\"true\"><label>\"<b>$(gettext 'Unfortunately the provider of the package database has not supplied the size of this package when installed. If you are able to see the size of the compressed package, multiple that by 3 to get the approximate installed size. The free available space, which is') ${SIZEFREEM}MB (${SIZEFREEK}KB), $(gettext 'should be at least 4 times greater.')</b>\"</label></text>"
 fi
 
 
 #find missing dependencies...
 if [ "$DB_dependencies" = "" ];then
  #DEPINFO="<text><label>The provider of the package database has not supplied any dependency information for this package. However, after installing it you will have the option to test for any missing shared library files. If uncertain, you might want to look for online documentation for this package that explains any required dependencies.</label></text>"
- DEPINFO="<text><label>It seems that all dependencies are already installed. Sometimes though, the dependency information in the database is incomplete, however a check for presence of needed shared libraries will be done after installation.</label></text>"
+ DEPINFO="<text><label>$(gettext 'It seems that all dependencies are already installed. Sometimes though, the dependency information in the database is incomplete, however a check for presence of needed shared libraries will be done after installation.')</label></text>"
 else
 
  #find all missing pkgs...
  /usr/local/petget/findmissingpkgs.sh "$DB_dependencies"
  #...returns /tmp/petget_installed_patterns_all, /tmp/petget_pkg_deps_patterns, /tmp/petget_missingpkgs_patterns
@@ -76,44 +80,44 @@
  #|qt|
 
  DEPBUTTON=""
  ONLYMSG=""
  if [ "$MISSINGDEPS_PATTERNS" = "" ];then
-  DEPINFO="<text><label>It seems that all dependencies are already installed. Sometimes though, the dependency information in the database is incomplete, however a check for presence of needed shared libraries will be done after installation.</label></text>"
+  DEPINFO="<text><label>$(gettext 'It seems that all dependencies are already installed. Sometimes though, the dependency information in the database is incomplete, however a check for presence of needed shared libraries will be done after installation.')</label></text>"
  else
-  ONLYMSG=" ONLY"
+  ONLYMSG=" $(gettext 'ONLY')"
   DEPBUTTON="<button>
-   <label>Examine dependencies</label>
+   <label>$(gettext 'Examine dependencies')</label>
    <action>echo \"${TREE1}\" > /tmp/petget_installpreview_pkgname</action>
    <action type=\"exit\">BUTTON_EXAMINE_DEPS</action>
   </button>"
   xMISSINGDEPS="`echo "$MISSINGDEPS_PATTERNS" | sed -e 's%|%%g' | tr '\n' ' '`"
-  DEPINFO="<text><label>Warning, the following dependent packages are missing:</label></text>
+  DEPINFO="<text><label>$(gettext 'Warning, the following dependent packages are missing:')</label></text>
   <text use-markup=\"true\"><label>\"<b>${xMISSINGDEPS}</b>\"</label></text>
-  <text><label>A warning, these dependencies may have other dependencies not necessarily listed here. It is recommended that you click the 'Examine dependencies' button to find all dependencies before installing.</label></text>
-  <text use-markup=\"true\"><label>\"<b>Please click 'Examine dependencies' to install ${TREE1} as well as its dependencies</b>\"</label></text>"
+  <text><label>$(gettext "A warning, these dependencies may have other dependencies not necessarily listed here. It is recommended that you click the 'Examine dependencies' button to find all dependencies before installing.")</label></text>
+  <text use-markup=\"true\"><label>\"<b>$(gettext "Please click 'Examine dependencies' to install") ${TREE1} $(gettext "as well as its dependencies")</b>\"</label></text>"
   if [ $DB_size ];then
-   MSGWARN1="<text><label>After installation, this package will occupy ${SIZEVAL}${SIZEMK}B, however the dependencies will need more space so you really need to find what they will need first.</label></text>"
+   MSGWARN1="<text><label>$(gettext 'After installation, this package will occupy') ${SIZEVAL}${SIZEMK}B, $(gettext 'however the dependencies will need more space so you really need to find what they will need first.')</label></text>"
   else
-   MSGWARN1="<text><label>Also, the package database provider has not supplied the installed size of this package, so you will have to try and estimate whether you have enough free space for it (and the dependencies)</label></text>"
+   MSGWARN1="<text><label>$(gettext 'Also, the package database provider has not supplied the installed size of this package, so you will have to try and estimate whether you have enough free space for it (and the dependencies)')</label></text>"
   fi
  fi
 fi
 
 kill $X1PID
 
-export PREVIEW_DIALOG="<window title=\"Puppy Package Manager: preinstall\" icon-name=\"gtk-about\">
+export PREVIEW_DIALOG="<window title=\"$(gettext 'Puppy Package Manager: preinstall')\" icon-name=\"gtk-about\">
 <vbox>
- <text><label>You have chosen to install package '${TREE1}'. A short description of this package is:</label></text>
+ <text><label>$(gettext 'You have chosen to install package') '${TREE1}'. $(gettext 'A short description of this package is:')</label></text>
  <text use-markup=\"true\"><label>\"<b>${DB_description}</b>\"</label></text>
  ${DEPINFO}
 
  ${MSGWARN1}
 
  <frame>
   <hbox>
-   <text><label>If you would like more information about '${TREE1}', such as what it is for and the dependencies, this button will download and display detailed information:</label></text>
+   <text><label>$(gettext 'If you would like more information about') '${TREE1}', $(gettext 'such as what it is for and the dependencies, this button will download and display detailed information:')</label></text>
    <button><label>More info</label><action>/usr/local/petget/fetchinfo.sh ${TREE1} & </action></button>
   </hbox>
  </frame>
 
  <hbox>
@@ -186,11 +190,11 @@
     ;;
     8)
      FRAME_CNT=`cat /tmp/petget_frame_cnt`
      FRAME_CNT=`expr $FRAME_CNT + 1`
      if [ $FRAME_CNT -gt 5 ];then
-      echo -n "<text use-markup=\"true\"><label>\"<b>SORRY! Too many dependencies, list truncated. Suggest install some deps first.</b>\"</label></text>" >> /tmp/petget_moreframes
+      echo -n "<text use-markup=\"true\"><label>\"<b>$(gettext 'SORRY! Too many dependencies, list truncated. Suggest install some deps first.')</b>\"</label></text>" >> /tmp/petget_moreframes
      else
       echo -n "<checkbox><default>true</default><label>${DEP_NAME} SIZE: ${DEP_SIZE}B DESCRIPTION: ${DEP_DESCR}</label><variable>CHECK_PKG_${ONEREPO}_${DEP_NAME}</variable></checkbox>" >> /tmp/petget_moreframes
      fi
      echo "</frame>" >> /tmp/petget_moreframes
      DEP_CNT=0
@@ -214,17 +218,17 @@
  MOREFRAMES="`cat /tmp/petget_moreframes`"
  #make sure last frame has closed...
  [ "`echo "$MOREFRAMES" | tail -n 1 | grep '</frame>$'`" = "" ] && MOREFRAMES="${MOREFRAMES}</frame>"
 
  INSTALLEDSIZEM=`expr $INSTALLEDSIZEK \/ 1024`
- MSGWARN2="If that looks like enough free space, go ahead and click the 'Install' button..."
+ MSGWARN2="$(gettext "If that looks like enough free space, go ahead and click the 'Install' button...")"
  testSIZEK=`expr $INSTALLEDSIZEK \/ 3`
  testSIZEK=`expr $INSTALLEDSIZEK + $testSIZEK`
  testSIZEK=`expr $testSIZEK + 8000`
- [ $testSIZEK -gt $SIZEFREEK ] && MSGWARN2="Not too good! recommend that you make more space before installing -- see 'Resize personal storage file' in the 'Utility' menu."
-
- export DEPS_DIALOG="<window title=\"Puppy Package Manager: dependencies\" icon-name=\"gtk-about\">
+ [ $testSIZEK -gt $SIZEFREEK ] && MSGWARN2="$(gettext "Not too good! recommend that you make more space before installing -- see 'Resize personal storage file' in the 'Utility' menu.")"
+
+ export DEPS_DIALOG="<window title=\"$(gettext 'Puppy Package Manager: dependencies')\" icon-name=\"gtk-about\">
 <vbox>
 
  <frame REPOSITORY: ${MAIN_REPO}>
   ${MAIN_CHK}
  </frame>
@@ -232,36 +236,36 @@
  <notebook labels=\"${TABS}\">
  ${MOREFRAMES}
  </notebook>
 
  <hbox>
- <text><label>Sometimes Puppy's automatic dependency checking comes up with a list that may include packages that don't really need to be installed, or are already installed under a different name. If uncertain, just accept them all, but if you spot one that does not need to be installed, then un-tick it.</label></text>
-
- <text><label>Puppy usually avoids listing the same package more than once if it exists in two or more repositories. However, if the same package is listed twice, choose the one that seems to be most appropriate.</label></text>
+ <text><label>$(gettext "Sometimes Puppy's automatic dependency checking comes up with a list that may include packages that don't really need to be installed, or are already installed under a different name. If uncertain, just accept them all, but if you spot one that does not need to be installed, then un-tick it.")</label></text>
+
+ <text><label>$(gettext 'Puppy usually avoids listing the same package more than once if it exists in two or more repositories. However, if the same package is listed twice, choose the one that seems to be most appropriate.')</label></text>
  </hbox>
 
  <hbox>
   <vbox>
-   <text><label>Click to see the hierarchy of the dependencies:</label></text>
+   <text><label>$(gettext 'Click to see the hierarchy of the dependencies:')</label></text>
    <hbox>
     <button>
-     <label>View hierarchy</label>
+     <label>$(gettext 'View hierarchy')</label>
      <action>/usr/local/bin/defaulttextviewer /tmp/petget_deps_visualtreelog & </action>
     </button>
    </hbox>
   </vbox>
   <text><label>\"   \"</label></text>
-  <text use-markup=\"true\"><label>\"<b>If all of the above packages are selected, the total installed size will be ${INSTALLEDSIZEK}KB (${INSTALLEDSIZEM}MB). The free space available for installation is ${SIZEFREEK}KB (${SIZEFREEM}MB). ${MSGWARN2}</b>\"</label></text>
+  <text use-markup=\"true\"><label>\"<b>$(gettext 'If all of the above packages are selected, the total installed size will be') ${INSTALLEDSIZEK}KB (${INSTALLEDSIZEM}MB). $(gettext 'The free space available for installation is') ${SIZEFREEK}KB (${SIZEFREEM}MB). ${MSGWARN2}</b>\"</label></text>
  </hbox>
 
  <hbox>
   <button>
-   <label>Download-only selected packages</label>
+   <label>$(gettext 'Download-only selected packages')</label>
    <action type=\"exit\">BUTTON_PKGS_DOWNLOADONLY</action>
   </button>
   <button>
-   <label>Download-and-install selected packages</label>
+   <label>$(gettext 'Download-and-install selected packages')</label>
    <action type=\"exit\">BUTTON_PKGS_INSTALL</action>
   </button>
   <button cancel></button>
  </hbox>
 </vbox>
@@ -316,18 +320,18 @@
 [ "$PASSEDPRM" = "DOWNLOADONLY" ] && exit
 
 #w482 adjust msg as appropriate, restart jwm and update menu if required...
 INSTALLEDCAT="menu" #any string.
 [ "`cat /tmp/petget-installed-pkgs-log | grep -o 'CATEGORY' | grep -v 'none'`" = "" ] && INSTALLEDCAT="none"
-RESTARTMSG="Please wait, updating help page and menu..."
+RESTARTMSG="$(gettext 'Please wait, updating help page and menu...')"
 if [ "`pidof jwm`" != "" ];then #120101
  JWMVER=`jwm -v|head -n1|cut -d ' ' -f2|cut -d - -f2`
  if vercmp $JWMVER lt 574;then #120116 introduced rev 547, but 574 fixes -reload.
-  RESTARTMSG="Please wait, updating help page and menu (the screen will flicker!)..."
+  RESTARTMSG="$(gettext 'Please wait, updating help page and menu (the screen will flicker!)...')"
  fi
 fi
-[ "$INSTALLEDCAT" = "none" ] && RESTARTMSG="Please wait, updating help page..."
+[ "$INSTALLEDCAT" = "none" ] && RESTARTMSG="$(gettext 'Please wait, updating help page...')"
 #/usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "${RESTARTMSG}" &
 yaf-splash -bg orange -text "${RESTARTMSG}" &
 X3PID=$!
 
 #w091019 update image cache...

Changes to woof-code/rootfs-skeleton/usr/local/petget/petget

@@ -18,16 +18,20 @@
 #101221 yaf-splash fix.
 #110505 support sudo for non-root user.
 #110523 support for rpm pkgs.
 #120101 01micko: jwm >=547 has -reload, no screen flicker.
 #120116 rev. 514 introduced icon rendering method which broke -reload at 547. fixed at rev. 574.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=petget
+export OUTPUT_CHARSET=UTF-8
 
 [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505
 
 [ ! $1 ] && exit
 
-export LANG=C
+#export LANG=C
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 
 PASSEDPARAM="$1"
 
 if [ "`echo -n "$PASSEDPARAM" | grep '^\\-'`" != "" ];then
@@ -92,11 +96,11 @@
  download_file "$PASSEDPARAM"
  PKGPATH="`dirname "$PASSEDPARAM"`" #really a url.
  FULLPKGNAME="`basename "$PASSEDPARAM"`"
  PKGMAIN="`basename "$PASSEDPARAM" ${EXT}`"
  if [ ! -f "$FULLPKGNAME" ];then
-  xmessage -bg red "Sorry, failed to download $FULLPKGNAME"
+  xmessage -bg red "$(gettext 'Sorry, failed to download') $FULLPKGNAME"
   exit
  fi
 else
  #get rid of any leading '+'...
  PASSEDPARAM="`echo -n "$PASSEDPARAM" | sed -e 's%^+%%'`"
@@ -169,14 +173,14 @@
  esac
 
 cd "$PKGPATH" #well, this is /root
 
 #confirm want to install...
-export INSTALL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export INSTALL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/question.xpm</input></pixmap>
-   <text><label>Click 'OK' button to confirm that you wish to install this package:</label></text>
+   <text><label>$(gettext "Click 'OK' button to confirm that you wish to install this package:")</label></text>
    <text use-markup=\"true\"><label>\"<b>${FULLPKGNAME}</b>\"</label></text>
    <hbox>
     <button ok></button>
     <button cancel></button>
    </hbox>
@@ -219,14 +223,14 @@
 #w482 hack, if pkg was originally at /root then don't delete it...
 [ "$originPKGPATH" = "$PKGPATH" ] && mv -f ${PKGPATH}/${FULLPKGNAME}-TEMPBACKUP ${PKGPATH}/${FULLPKGNAME}
 
 #announce result...
 if [ $RETVAL -ne 0 -o ! -s /tmp/petget-installed-pkgs-log ];then
- export FAIL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+ export FAIL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/error.xpm</input></pixmap>
-   <text use-markup=\"true\"><label>\"<b>Error, package ${FULLPKGNAME} failed to install.</b>\"</label></text>
+   <text use-markup=\"true\"><label>\"<b>$(gettext 'Error, package') ${FULLPKGNAME} $(gettext 'failed to install.')</b>\"</label></text>
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>
  </window>"
@@ -236,20 +240,20 @@
 
 INSTALLEDMSG="`cat /tmp/petget-installed-pkgs-log`"
 MENUMSG=""
 INSTALLEDCAT="`echo -n "$INSTALLEDMSG" | rev | cut -f 1 -d ' ' | rev`"
 if [ "$INSTALLEDCAT" = "none" ];then
- MENUMSG="<text><label>...note, this package does not have a menu entry.</label></text>"
+ MENUMSG="<text><label>$(gettext '...note, this package does not have a menu entry.')</label></text>"
 else
- MENUMSG="<text><label>...look in '${INSTALLEDCAT}' in the menu (bottom-left of screen) to run the application.</label></text>"
+ MENUMSG="<text><label>$(gettext '...look in') '${INSTALLEDCAT}' $(gettext 'in the menu (bottom-left of screen) to run the application.')</label></text>"
 fi
 
 #installpkg.sh will have logged to /tmp/petget-installed-pkgs-log
-export INSTALL_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export INSTALL_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
  <vbox>
  <pixmap><input file>/usr/local/lib/X11/pixmaps/ok.xpm</input></pixmap>
-  <text><label>The following package has been successfully installed:</label></text>
+  <text><label>$(gettext 'The following package has been successfully installed:')</label></text>
   <text use-markup=\"true\"><label>\"<b>${INSTALLEDMSG}</b>\"</label></text>
   ${MENUMSG}
   <hbox>
    <button ok></button>
   </hbox>
@@ -256,18 +260,18 @@
  </vbox>
 </window>
 "
 gtkdialog3 --program=INSTALL_DIALOG
 
-RESTARTMSG="Please wait, updating help page and menu..."
+RESTARTMSG="$(gettext 'Please wait, updating help page and menu...')"
 if [ "`pidof jwm`" != "" ];then #120101
  JWMVER=`jwm -v|head -n1|cut -d ' ' -f2|cut -d - -f2`
  if vercmp $JWMVER lt 574;then #120116 547 to 574.
-  RESTARTMSG="Please wait, updating help page and menu (the screen will flicker!)..."
+  RESTARTMSG="$(gettext 'Please wait, updating help page and menu (the screen will flicker!)...')"
  fi
 fi
-[ "$INSTALLEDCAT" = "none" ] && RESTARTMSG="Please wait, updating help page..."
+[ "$INSTALLEDCAT" = "none" ] && RESTARTMSG="$(gettext 'Please wait, updating help page...')"
 #/usr/X11R7/bin/yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "${RESTARTMSG}" &
 yaf-splash -bg orange -text "${RESTARTMSG}" &
 X3PID=$!
 
 #w0910 update image cache...

Changes to woof-code/rootfs-skeleton/usr/local/petget/pkg_chooser.sh

@@ -12,14 +12,18 @@
 #101129 checkboxes for show EXE DEV DOC NLS.
 #101205 bugfix for: make sure first radiobutton matches list of pkgs.
 #110118 alternate User Interfaces. see also configure.sh.
 #110505 support sudo for non-root user.
 #110706 fix for deps checking.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=pkg_chooser.sh
+export OUTPUT_CHARSET=UTF-8
 
 [ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505
 
-export LANG=C
+#export LANG=C
 
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 . /root/.packages/PKGS_MANAGEMENT #has PKG_REPOS_ENABLED, PKG_NAME_ALIASES
 
@@ -229,15 +233,15 @@
 
 #  <text use-markup=\"true\"><label>\"<b>To install or uninstall,</b>\"</label></text>
 
 ALLCATEGORY=''
 if [ "$DISTRO_BINARY_COMPAT" = "puppy" ];then #v424 reintroduce the 'ALL' category.
- ALLCATEGORY='<radiobutton><label>ALL</label><action>/usr/local/petget/filterpkgs.sh ALL</action><action>refresh:TREE1</action></radiobutton>'
+ ALLCATEGORY="<radiobutton><label>$(gettext 'ALL')</label><action>/usr/local/petget/filterpkgs.sh ALL</action><action>refresh:TREE1</action></radiobutton>"
 fi
 #100513 also for 't2' (quirky) builds...
 if [ "$DISTRO_BINARY_COMPAT" = "t2" ];then #reintroduce the 'ALL' category.
- ALLCATEGORY='<radiobutton><label>ALL</label><action>/usr/local/petget/filterpkgs.sh ALL</action><action>refresh:TREE1</action></radiobutton>'
+ ALLCATEGORY="<radiobutton><label>$(gettext 'ALL')</label><action>/usr/local/petget/filterpkgs.sh ALL</action><action>refresh:TREE1</action></radiobutton>"
 fi
 
 #w476 reverse COMPAT_DBS, PUPPY_DBS...
 #100412 make sure first radiobutton matches list of pkgs...
 #101205 bugfix...

Changes to woof-code/rootfs-skeleton/usr/local/petget/removepreview.sh

@@ -15,10 +15,14 @@
 #111228 if snapmergepuppy running, wait for it to complete.
 #120101 01micko: jwm >=547 has -reload, no screen flicker.
 #120103 shinobar, bk: improve file deletion when older file in lower layer.
 #120107 rerwin: need quotes around some paths in case of space chars.
 #120116 rev. 514 introduced icon rendering method which broke -reload at 547. fixed at rev. 574.
+#120203 BK: internationalized.
+
+export TEXTDOMAIN=removepreview.sh
+export OUTPUT_CHARSET=UTF-8
 
 . /etc/rc.d/PUPSTATE  #111228 this has PUPMODE and SAVE_LAYER.
 . /etc/DISTRO_SPECS #has DISTRO_BINARY_COMPAT, DISTRO_COMPAT_VERSION
 . /root/.packages/DISTRO_PKGS_SPECS
 
@@ -25,14 +29,14 @@
 DB_pkgname="$TREE2"
 
 #v424 info box, nothing yet installed...
 #if [ "$DB_pkgname" = "" ];then
 if [ "$DB_pkgname" = "" -a "`cat /root/.packages/user-installed-packages`" = "" ];then #fix for ziggi
- export REM_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+ export REM_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
    <pixmap><input file>/usr/local/lib/X11/pixmaps/error.xpm</input></pixmap>
-   <text><label>There are no user-installed packages yet, so nothing to uninstall!</label></text>
+   <text><label>$(gettext 'There are no user-installed packages yet, so nothing to uninstall!')</label></text>
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>
  </window>
@@ -42,14 +46,14 @@
 fi
 if [ "$DB_pkgname" = "" ];then #fix for ziggi moved here problem is  #2011-12-27 KRG
 exit 0                         #clicking an empty line in the gui would have
 fi                             #thrown the above REM_DIALOG even if pkgs are installed
 
-export REM_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export REM_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
    <pixmap><input file>/usr/local/lib/X11/pixmaps/question.xpm</input></pixmap>
-   <text><label>Click 'OK' button to confirm that you wish to uninstall package '$DB_pkgname'</label></text>
+   <text><label>$(gettext "Click 'OK' button to confirm that you wish to uninstall package") '$DB_pkgname'</label></text>
    <hbox>
     <button ok></button>
     <button cancel></button>
    </hbox>
   </vbox>
@@ -112,31 +116,31 @@
  firstchar=`echo ${DB_pkgname} | cut -c 1`
  possiblePKGS=`find /root/.packages -type f -iname "$firstchar*.files"`
  possible5=`echo "$possiblePKGS" | head -n5`
  count=`echo "$possiblePKGS" | wc -l`
  [ ! "$count" ] && count=0
- [ ! "$possiblePKGS" ] && possiblePKGS="No pkgs beginning with $firstchar found"
+ [ ! "$possiblePKGS" ] && possiblePKGS="$(gettext 'No pkgs beginning with') ${firstchar} $(gettext 'found')"
  if [ "$count" -le '5' ];then
   WARNMSG="$possiblePKGS"
  else
-  WARNMSG="Found more than 5 pkgs starting with $firstchar .
-The first 5 are
+  WARNMSG="$(gettext 'Found more than 5 pkgs starting with') ${firstchar}.
+$(gettext 'The first 5 are')
 $possible5"
  fi
- xmessage -bg red "WARNING :
-No file named ${DB_pkgname}.files found in
-/root/.packages/ folder .
+ xmessage -bg red "$(gettext 'WARNING:')
+$(gettext 'No file named') ${DB_pkgname}.files $(gettext 'found in')
+/root/.packages/ $(gettext 'folder.')
 
 $0
-refusing cowardly to remove the package .
+$(gettext 'refusing cowardly to remove the package.')
 
-Possible suggestions are
+$(gettext 'Possible suggestions are')
 $WARNMSG
 
-Possible solution :
-Edit /root/.packages/user-installed-packages to match the pkgname
-and start again .
+$(gettext 'Possible solution:')
+$(gettext 'Edit') /root/.packages/user-installed-packages $(gettext 'to match the pkgname')
+$(gettext 'and start again.')
 "
  rox /root/.packages
  geany /root/.packages/user-installed-packages
  exit 101
  ###+++2011-12-27 KRG
@@ -201,18 +205,18 @@
 EXTRAMSG=""
 if [ -s /tmp/petget-deps-maybe-rem ];then
  #MAYBEREM="`cat /tmp/petget-deps-maybe-rem`" # wrap=\"false\"
  #nah, just list the names, not descriptions...
  MAYBEREM="`cat /tmp/petget-deps-maybe-rem | cut -f 1 -d ' ' | tr '\n' ' '`"
- EXTRAMSG="<text><label>Perhaps you don't need these dependencies that you had also installed:</label></text> <text use-markup=\"true\"><label>\"<b>${MAYBEREM}</b>\"</label></text><text><label>...if you do want to remove them, you will have to do so back on the main window, after clicking the 'Ok' button below (perhaps make a note of the package names on a scrap of paper right now)</label></text>"
+ EXTRAMSG="<text><label>$(gettext 'Perhaps you do not need these dependencies that you had also installed:')</label></text> <text use-markup=\"true\"><label>\"<b>${MAYBEREM}</b>\"</label></text><text><label>$(gettext "...if you do want to remove them, you will have to do so back on the main window, after clicking the 'Ok' button below (perhaps make a note of the package names on a scrap of paper right now)")</label></text>"
 fi
 
 #announce success...
-export REM_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export REM_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
   <vbox>
   <pixmap><input file>/usr/local/lib/X11/pixmaps/ok.xpm</input></pixmap>
-   <text><label>Package '$DB_pkgname' has been removed.</label></text>
+   <text><label>$(gettext 'Package') '$DB_pkgname' $(gettext 'has been removed.')</label></text>
    ${EXTRAMSG}
    <hbox>
     <button ok></button>
    </hbox>
   </vbox>

Changes to woof-code/rootfs-skeleton/usr/local/petget/ui_Classic

@@ -1,35 +1,39 @@
 #default user interface.
+#120203 rodin.s: internationalized.
+
+export TEXTDOMAIN=ui_Classic
+export OUTPUT_CHARSET=UTF-8
 
-export MAIN_DIALOG="<window title=\"Puppy Package Manager\" icon-name=\"gtk-about\">
+export MAIN_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
 
 <vbox>
  <hbox>
-  <text><label>Repo:</label></text>
+  <text><label>$(gettext 'Repo:')</label></text>
   ${DB_ORDERED}
  </hbox>
  ${xFIRSTCHARS}
  <hbox>
   <vbox>
-   <radiobutton><label>Desktop</label><action>/usr/local/petget/filterpkgs.sh Desktop</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>System</label><action>/usr/local/petget/filterpkgs.sh System</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Setup</label><action>/usr/local/petget/filterpkgs.sh Setup</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Utility</label><action>/usr/local/petget/filterpkgs.sh Utility</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Filesystem</label><action>/usr/local/petget/filterpkgs.sh Filesystem</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Graphic</label><action>/usr/local/petget/filterpkgs.sh Graphic</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Document</label><action>/usr/local/petget/filterpkgs.sh Document</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Business</label><action>/usr/local/petget/filterpkgs.sh Calculate</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Personal</label><action>/usr/local/petget/filterpkgs.sh Personal</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Network</label><action>/usr/local/petget/filterpkgs.sh Network</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Internet</label><action>/usr/local/petget/filterpkgs.sh Internet</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Multimedia</label><action>/usr/local/petget/filterpkgs.sh Multimedia</action><action>refresh:TREE1</action></radiobutton>
-   <radiobutton><label>Fun</label><action>/usr/local/petget/filterpkgs.sh Fun</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Desktop')</label><action>/usr/local/petget/filterpkgs.sh Desktop</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'System')</label><action>/usr/local/petget/filterpkgs.sh System</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Setup')</label><action>/usr/local/petget/filterpkgs.sh Setup</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Utility')</label><action>/usr/local/petget/filterpkgs.sh Utility</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Filesystem')</label><action>/usr/local/petget/filterpkgs.sh Filesystem</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Graphic')</label><action>/usr/local/petget/filterpkgs.sh Graphic</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Document')</label><action>/usr/local/petget/filterpkgs.sh Document</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Business')</label><action>/usr/local/petget/filterpkgs.sh Calculate</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Personal')</label><action>/usr/local/petget/filterpkgs.sh Personal</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Network')</label><action>/usr/local/petget/filterpkgs.sh Network</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Internet')</label><action>/usr/local/petget/filterpkgs.sh Internet</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Multimedia')</label><action>/usr/local/petget/filterpkgs.sh Multimedia</action><action>refresh:TREE1</action></radiobutton>
+   <radiobutton><label>$(gettext 'Fun')</label><action>/usr/local/petget/filterpkgs.sh Fun</action><action>refresh:TREE1</action></radiobutton>
    ${ALLCATEGORY}
   </vbox>
   <vbox>
   <tree>
-    <label>Package|Description</label>
+    <label>$(gettext 'Package|Description')</label>
     <height>280</height><width>668</width>
     <variable>TREE1</variable>
     <input>cat /tmp/filterpkgs.results.post</input>
     <action signal=\"button-release-event\">/usr/local/petget/installpreview.sh</action>
     <action signal=\"button-release-event\">/usr/local/petget/finduserinstalledpkgs.sh</action>
@@ -39,49 +43,49 @@
  </hbox>
 <hbox>
  <vbox>
 
   <hbox>
-   <text><label>Show:</label></text>
+   <text><label>$(gettext 'Show:')</label></text>
    <checkbox><default>${DEF_CHK_EXE}</default><label>EXE</label><variable>CHK_EXE</variable><action>/tmp/filterpkgs.results.postfilter.sh EXE \$CHK_EXE</action><action>refresh:TREE1</action></checkbox>
    <checkbox><default>${DEF_CHK_DEV}</default><label>DEV</label><variable>CHK_DEV</variable><action>/tmp/filterpkgs.results.postfilter.sh DEV \$CHK_DEV</action><action>refresh:TREE1</action></checkbox>
    <checkbox><default>${DEF_CHK_DOC}</default><label>DOC</label><variable>CHK_DOC</variable><action>/tmp/filterpkgs.results.postfilter.sh DOC \$CHK_DOC</action><action>refresh:TREE1</action></checkbox>
    <checkbox><default>${DEF_CHK_NLS}</default><label>NLS</label><variable>CHK_NLS</variable><action>/tmp/filterpkgs.results.postfilter.sh NLS \$CHK_NLS</action><action>refresh:TREE1</action></checkbox>
   </hbox>
 
   <hbox>
-   <text><label>Help:</label></text>
+   <text><label>$(gettext 'Help:')</label></text>
    <button><input file>/usr/local/lib/X11/mini-icons/mini-question.xpm</input><action>defaulthtmlviewer file:///usr/local/petget/help.htm & </action></button>
   </hbox>
 
   <hbox>
-   <text><label>Find:</label></text>
+   <text><label>$(gettext 'Find:')</label></text>
    <entry activates-default=\"true\">
     <variable>ENTRY1</variable>
    </entry>
    <button can-default=\"true\" has-default=\"true\" use-stock=\"true\">
-    <label>Go</label>
+    <label>$(gettext 'Go')</label>
     <action>/usr/local/petget/findnames.sh</action>
     <action>refresh:TREE1</action>
    </button>
   </hbox>
   <button>
    <input file icon=\"gtk-preferences\"></input>
-   <label>Configure package manager</label>
+   <label>$(gettext 'Configure package manager')</label>
    <action>/usr/local/petget/configure.sh</action>
    <action>/usr/local/petget/filterpkgs.sh</action>
    <action>refresh:TREE1</action>
   </button>
   <button type=\"exit\">
    <input file icon=\"gtk-close\"></input>
-   <label>Exit package manager</label>
+   <label>$(gettext 'Exit package manager')</label>
   </button>
  </vbox>
  <text><label>\" \"</label></text>
- <frame Installed packages>
+ <frame $(gettext 'Installed packages')>
   <tree>
-    <label>Package|Description</label>
+    <label>$(gettext 'Package|Description')</label>
     <height>100</height><width>480</width>
     <variable>TREE2</variable>
     <input>cat /tmp/installedpkgs.results</input>
     <action signal=\"button-release-event\">/usr/local/petget/removepreview.sh</action>
     <action signal=\"button-release-event\">/usr/local/petget/finduserinstalledpkgs.sh</action>
@@ -90,5 +94,7 @@
  </frame>
 </hbox>
 </vbox>
 </window>
 "
+
+export TEXTDOMAIN=pkg_chooser.sh

Changes to woof-code/rootfs-skeleton/usr/local/petget/ui_Ziggy

@@ -1,48 +1,52 @@
 #alternate user interface designed by zigbert.
+#120203 rodin.s: internationalized.
+
+export TEXTDOMAIN=ui_Ziggy
+export OUTPUT_CHARSET=UTF-8
 
 ALLITEM='' ; ALLSTOCK='' ; CATHEIGHT='100' ; WINHEIGHT='380'
 if [ "$ALLCATEGORY" != "" ];then
  ALLITEM='<item stock="gtk-ALL">ALL</item>'
  ALLSTOCK='stock["gtk-ALL"] = {{ "pet24.png", *, *, *}}'
  CATHEIGHT='112'
  WINHEIGHT='388'
 fi
 
-export MAIN_DIALOG='<window title="Puppy Package Manager" icon-name="gtk-about" default_height="'${WINHEIGHT}'" default_width="680">
+export MAIN_DIALOG='<window title="'$(gettext 'Puppy Package Manager')'" icon-name="gtk-about" default_height="'${WINHEIGHT}'" default_width="680">
 <hbox>
  <vbox>
   <hbox>
-   <button tooltip-text="Uninstall packages">
-    <label>Uninstall</label>
+   <button tooltip-text="'$(gettext 'Uninstall packages')'">
+    <label>'$(gettext 'Uninstall')'</label>
     <input file icon="gtk-clear"></input>
     <action>launch:INSTALLED_DIALOG</action>
    </button>
-   <button tooltip-text="Configure package manager">
+   <button tooltip-text="'$(gettext 'Configure package manager')'">
     <input file icon="gtk-preferences"></input>
     <action>/usr/local/petget/configure.sh</action>
     <action>/usr/local/petget/filterpkgs.sh</action>
     <action>refresh:TREE1</action>
    </button>
-   <button tooltip-text="Help">
+   <button tooltip-text="'$(gettext 'Help')'">
     <input file icon="gtk-help"></input>
     <action>defaulthtmlviewer file:///usr/local/petget/help.htm & </action>
    </button>
-   <button type="exit"  tooltip-text="Quit package manager">
+   <button type="exit"  tooltip-text="'$(gettext 'Quit package manager')'">
     <input file icon="gtk-quit"></input>
    </button>
    </hbox>
 
 
- <frame Repositories>
+ <frame '$(gettext 'Repositories')'>
  <vbox>
   '${DB_ORDERED}'
  </vbox>
  </frame>
 
 
-   <frame package types>
+   <frame '$(gettext 'package types')'>
   <vbox>
    <checkbox>
     <default>'${DEF_CHK_EXE}'</default>
     <label>EXE</label>
     <variable>CHK_EXE</variable>
@@ -72,25 +76,25 @@
    </checkbox>
   </vbox>
   </frame>
 
   <hbox width-request="100">
-   <text><label>Find:</label></text>
+   <text><label>'$(gettext 'Find:')'</label></text>
    <entry activates-default="true">
     <variable>ENTRY1</variable>
    </entry>
    <button can-default="true" has-default="true" use-stock="true">
-    <label>Go</label>
+    <label>'$(gettext 'Go')'</label>
     <action>/usr/local/petget/findnames.sh</action>
     <action>refresh:TREE1</action>
    </button>
   </hbox>
 </vbox>
 
 <vbox>
    <tree>
-   <label>Category</label>
+   <label>'$(gettext 'Category')'</label>
    <variable>CATEGORY</variable>
    <item stock="gtk-Desktop">Desktop</item>
    <item stock="gtk-System">System</item>
    <item stock="gtk-Setup">Setup</item>
    <item stock="gtk-Utility">Utility</item>
@@ -108,11 +112,11 @@
    <action signal="button-release-event">/usr/local/petget/filterpkgs.sh $CATEGORY</action>
    <action signal="button-release-event">refresh:TREE1</action>
   </tree>
 </vbox>
   <tree>
-    <label>Package|Description</label>
+    <label>'$(gettext 'Package|Description')'</label>
     <variable>TREE1</variable>
     <input>cat /tmp/filterpkgs.results.post</input>
     <action signal="button-release-event">/usr/local/petget/installpreview.sh</action>
     <action signal="button-release-event">/usr/local/petget/finduserinstalledpkgs.sh</action>
     <action signal="button-release-event">refresh:TREE2</action>
@@ -119,15 +123,15 @@
   </tree>
 
 </hbox>
 </window>'
 
-export INSTALLED_DIALOG='<window title="Uninstall Puppy Package" icon-name="gtk-about" default_height="380" default_width="450">
+export INSTALLED_DIALOG='<window title="'$(gettext 'Uninstall Puppy Package')'" icon-name="gtk-about" default_height="380" default_width="450">
  <vbox>
-  <text><label>Click on an item in the list to uninstall package</label></text>
+  <text><label>'$(gettext 'Click on an item in the list to uninstall package')'</label></text>
   <tree>
-    <label>Installed Package|Description</label>
+    <label>'$(gettext 'Installed Package|Description')'</label>
     <variable>TREE2</variable>
     <input>cat /tmp/installedpkgs.results</input>
     <action signal="button-release-event">/usr/local/petget/removepreview.sh</action>
     <action signal="button-release-event">/usr/local/petget/finduserinstalledpkgs.sh</action>
     <action signal="button-release-event">refresh:TREE2</action>
@@ -153,5 +157,7 @@
 	stock["gtk-Fun"] = {{ "games24.png", *, *, *}}
 	'${ALLSTOCK}'}
 class "GtkWidget" style "icon-style"' > /tmp/puppy_package_manager/gtkrc_ppm
 
 export GTK2_RC_FILES=/root/.gtkrc-2.0:/tmp/puppy_package_manager/gtkrc_ppm
+
+export TEXTDOMAIN=pkg_chooser.sh

Changes to woof-distro/x86/Packages-puppy-wary5-official

@@ -422,10 +422,12 @@
 gtkterm_NLS-0.99.7-rc1-w5c|gtkterm_NLS|0.99.7-rc1-w5c||Utility|64K||gtkterm_NLS-0.99.7-rc1-w5c.pet|+gtkterm|serial terminal||||
 gutenprint-5.2.7-w5c|gutenprint|5.2.7-w5c||BuildingBlock|8880K||gutenprint-5.2.7-w5c.pet|+cairo,+gtk+|High quality drivers for Canon Epson Lexmark Sony Olympus and PCL|puppy|wary5||
 gutenprint_DEV-5.2.7-w5c|gutenprint_DEV|5.2.7-w5c||BuildingBlock|1336K||gutenprint_DEV-5.2.7-w5c.pet|+gutenprint|High quality drivers for Canon Epson Lexmark Sony Olympus and PCL|puppy|wary5||
 gutenprint_DOC-5.2.7-w5c|gutenprint_DOC|5.2.7-w5c||BuildingBlock|3208K||gutenprint_DOC-5.2.7-w5c.pet||High quality drivers for Canon Epson Lexmark Sony Olympus and PCL|puppy|wary5||
 gutenprint_NLS-5.2.7-w5c|gutenprint_NLS|5.2.7-w5c||BuildingBlock|10764K||gutenprint_NLS-5.2.7-w5c.pet|+gutenprint|High quality drivers for Canon Epson Lexmark Sony Olympus and PCL|puppy|wary5||
+gxmessage-2.12.4-w5c|gxmessage|2.12.4-w5c||Develop|36K||gxmessage-2.12.4-w5c.pet|+gtk+|simple message-boxes fcalled from scripts, replaces xlib-only xmessage|puppy|wary5||
+gxmessage_DOC-2.12.4-w5c|gxmessage_DOC|2.12.4-w5c||Develop|76K||gxmessage_DOC-2.12.4-w5c.pet||simple gui message boxes||||
 gzip-1.4-w5c|gzip|1.4-w5c||BuildingBlock|212K||gzip-1.4-w5c.pet||The zip compression utility|puppy|wary5||
 gzip_DOC-1.4-w5c|gzip_DOC|1.4-w5c||BuildingBlock|132K||gzip_DOC-1.4-w5c.pet||The zip compression utility|puppy|wary5||
 hdparm-9.37-w5c|hdparm|9.37-w5c||BuildingBlock|92K||hdparm-9.37-w5c.pet||Getset hard disk parameters|puppy|wary5||
 hdparm_DOC-9.37-w5c|hdparm_DOC|9.37-w5c||BuildingBlock|56K||hdparm_DOC-9.37-w5c.pet||Getset hard disk parameters|puppy|wary5||
 hfsutils-3.2.6-w5c|hfsutils|3.2.6-w5c||Filesystem|1136K||hfsutils-3.2.6-w5c.pet||Utilities to access Macintosh disks in Unix|puppy|wary5||