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

PaiPix feedback on mozilla, openoffice and openoffice.org-debian-files



Dear colleagues,

   The mozilla package need a patch to support the Portuguese localization.

The file /usr/bin/openoffice from
openoffice.org-debian-files openoffice.org-debian-files needs a patch to not only enable the language to be used but also to define the default dictionary as the one in that language. This patch is a bit old but the standard file does not solve it yet (does it?).

The kde menu files for openoffice in /usr/share/applnk/OpenOffice.org1.1/ need the Portuguese localization.


See also http://aamorimsrv.fis.fc.ul.pt .

All the best,
Antonio Amorim


--- /mnt/hda5/knx/source/KNOPPIX/usr/bin/mozilla-1.7.3	2004-10-07 08:36:48.000000000 +0100
+++ /mnt/hda5/knx/fixes/usr/bin/mozilla-1.7.3	2004-10-22 13:45:43.000000000 +0100
@@ -301,6 +301,10 @@
 	    set_UILocale "pt-BR"		# Brazilian Portuguese
 	    set_ContentLocale "BR";
 	    ;;
+	pt_PT*)
+	    set_UILocale "pt-PT"		# Portuguese
+	    set_ContentLocale "PT";
+	    ;;
 	sl*)
 	    set_UILocale "sl-SI"		# Slovenian
 	    set_ContentLocale "SI";
--- /mnt/hda5/knx/source/KNOPPIX/usr/bin/openoffice	2004-10-14 21:26:23.000000000 +0100
+++ /mnt/hda5/knx/fixes/usr/bin/openoffice	2004-10-11 12:29:04.000000000 +0100
@@ -82,6 +81,44 @@
   return $check_oo_ret
 }
 
+###
+### Change locale for OOo 1.1
+### change_locale <new locale>
+change_locale()
+{
+  TMPFILE=`mktemp -t oooLocale.XXXXXXXXXX` && {
+    cat > $TMPFILE <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<oor:node xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:name="Setup" oor:package="org.openoffice">
+ <node oor:name="L10N">
+  <prop oor:name="ooLocale" oor:type="xs:string">
+   <value>$1</value>
+  </prop>
+ </node>
+</oor:node>
+EOF
+    ooconfigimport $TMPFILE > /dev/null
+
+    rm -f $TMPFILE
+  }
+  TMPFILE=`mktemp -t oooLocale.XXXXXXXXXX` && {
+    cat > $TMPFILE <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<oor:node xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:name="Linguistic" oor:package="org.openoffice.Office">
+ <node oor:name="General">
+  <prop oor:name="DefaultLocale" oor:type="xs:string">
+   <value>$1</value>
+  </prop>
+ </node>
+</oor:node>
+EOF
+    ooconfigimport $TMPFILE > /dev/null
+
+    rm -f $TMPFILE
+  }
+
+}
+
 ### get_upgrade_versions <path to instdb.ins to search>
 ### Print a list to stdout of versions that this version will upgrade from
 ### These are extracted from the UpdateFor key in instdb.ins
@@ -204,6 +241,10 @@
 # Set locale to en_US if locale is C
 if [ "x$LOCALE" = "xC" ] ; then LOCALE="en_US"; fi
 
+# LC_CTYPE is taken in preference to LANG.  OOo doesn't understand
+# two values, so clobber LC_CTYPE instead
+LC_CTYPE="$LOCALE"
+
 # Change _ to - and remove part after '@' character
 LOCALEOO=`echo $LOCALE | sed 's/_/-/;s/@.*//'`
 
@@ -303,8 +344,7 @@
   echo "Using existing OpenOffice.org"
 else
   ## Change locale of OOo
-  LD_LIBRARY_PATH="/usr/lib/openoffice/program/:$LD_LIBRARY_PATH" \
-  	/usr/lib/openoffice/program/setofficelang.bin -f "$LOCALEOO"
+  change_locale "$LOCALEOO"
 fi
 
 ##
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/calc.desktop	2004-11-21 23:27:06.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/calc.desktop	2004-09-24 11:22:41.000000000 +0100
@@ -24,6 +24,7 @@
 Comment[da]=OpenOffice.org-regneark
 Comment[sv]=OpenOffice.org-tabell
 Comment[pl]=OpenOffice.org Arkusz
+Comment[pt]=Folha de cálculo OpenOffice.org
 Comment[pt_BR]=Planilha OpenOffice.org
 Comment[ja]=OpenOffice.org 表��
 Comment[ko]=OpenOffice.org ì?¤í??ë ?ë??ì??í?¸
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/writer.desktop	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/writer.desktop	2004-09-24 11:25:53.000000000 +0100
@@ -24,6 +24,7 @@
 Comment[da]=OpenOffice.org-tekstdokument
 Comment[sv]=OpenOffice.org-textdokument
 Comment[pl]=OpenOffice.org Dokument tekstowy
+Comment[pt]=Documento texto OpenOffice.org
 Comment[pt_BR]=Documento texto OpenOffice.org
 Comment[ja]=OpenOffice.org æ??æ?¸ã??ã?­ã?¥ã?¡ã?³ã??
 Comment[ko]=OpenOffice.org í??ì?¤í?¸ 문ì??
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/web.desktop	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/web.desktop	2004-09-24 11:25:33.000000000 +0100
@@ -24,6 +24,7 @@
 Comment[da]=OpenOffice.org HTML-dokument
 Comment[sv]=OpenOffice.org-HTML-dokument
 Comment[pl]=OpenOffice.org Dokument HTML
+Comment[pt]=Documento HTML OpenOffice.org
 Comment[pt_BR]=Documento HTML OpenOffice.org
 Comment[ja]=OpenOffice.org HTML å½¢å¼?ã??ã?­ã?¥ã?¡ã?³ã??
 Comment[ko]=OpenOffice.org HTML 문ì??
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/template.desktop	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/template.desktop	2004-09-24 11:25:17.000000000 +0100
@@ -22,6 +22,7 @@
 Name[da]=OpenOffice.org Fra skabelon
 Name[sv]=Från en OpenOffice.org-mall
 Name[pl]=OpenOffice.org Na podstawie szablonu
+Name[pt]=A partir de um modelo OpenOffice.org
 Name[pt_BR]=A partir de um modelo OpenOffice.org
 Name[ja]=OpenOffice.org ã??ã?³ã??ã?¬ã?¼ã??ã??ã??
 Name[ko]=OpenOffice.org ì??ì?? í??ì?¼ë¡?ë¶?í?°
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/math.desktop	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/math.desktop	2004-09-24 11:24:35.000000000 +0100
@@ -24,6 +24,7 @@
 Comment[da]=OpenOffice.org-formel
 Comment[sv]=OpenOffice.org-formel
 Comment[pl]=OpenOffice.org FormuÅ?a
+Comment[pt]=Fórmula OpenOffice.org
 Comment[pt_BR]=Fórmula OpenOffice.org
 Comment[ja]=OpenOffice.org æ?°å¼?
 Comment[ko]=OpenOffice.org ì??ì??
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/.directory	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/.directory	2004-09-24 11:20:59.000000000 +0100
@@ -6,4 +6,4 @@
 Terminal=0
 Type=Directory
 Icon=ooo_gulls.xpm
-NoDisplay=true
+NoDisplay=false
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/draw.desktop	2004-11-21 23:27:06.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/draw.desktop	2004-09-24 11:23:46.000000000 +0100
@@ -25,6 +25,7 @@
 Comment[da]=OpenOffice.org-tegning
 Comment[sv]=OpenOffice.org-teckning
 Comment[pl]=OpenOffice.org Rysunek
+Comment[pt]=Desenho OpenOffice.org
 Comment[pt_BR]=Desenho OpenOffice.org
 Comment[ja]=OpenOffice.org å?³å½¢æ??ç?»
 Comment[ko]=OpenOffice.org 그리기
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/impress.desktop	2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/impress.desktop	2004-09-24 11:24:10.000000000 +0100
@@ -24,6 +24,7 @@
 Comment[da]=OpenOffice.org-præsentation
 Comment[sv]=OpenOffice.org-presentation
 Comment[pl]=OpenOffice.org Prezentacja
+Comment[pt]=Apresentação OpenOffice.org
 Comment[pt_BR]=Apresentação OpenOffice.org
 Comment[ja]=OpenOffice.org ã??ã?¬ã?¼ã?³ã??ã?¼ã?·ã?§ã?³
 Comment[ko]=OpenOffice.org í??ë ?ì  í??ì?´ì??

Reply to: