PaiPix feedback on mozilla, openoffice and openoffice.org-debian-files
Antonio Amorim <[email protected]> Tue, 25 Jan 2005 20:52:46 +0000
| Newsgroups | gmane.linux.debian.devel.openoffice,gmane.linux.debian.knoppix |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------020302070702090806080302
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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
--------------020302070702090806080302
Content-Type: text/plain;
name="mozilla-1.7.5.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mozilla-1.7.5.patch"
--- /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";
--------------020302070702090806080302
Content-Type: text/plain;
name="openoffice.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="openoffice.patch"
--- /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
##
--------------020302070702090806080302
Content-Type: text/plain;
name="calc.desktop.patch"
Content-Disposition: inline;
filename="calc.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /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 2=
004-09-24 11:22:41.000000000 +0100
@@ -24,6 +24,7 @@
Comment[da]=3DOpenOffice.org-regneark
Comment[sv]=3DOpenOffice.org-tabell
Comment[pl]=3DOpenOffice.org Arkusz
+Comment[pt]=3DFolha de c=C3=A1lculo OpenOffice.org
Comment[pt_BR]=3DPlanilha OpenOffice.org
Comment[ja]=3DOpenOffice.org =E8=A1=A8=E8=A8=88=E7=AE=97
Comment[ko]=3DOpenOffice.org =EC=8A=A4=ED=94=84=EB=A0=88=EB=93=9C=EC=8B=9C=
=ED=8A=B8
--------------020302070702090806080302
Content-Type: text/plain;
name="writer.desktop.patch"
Content-Disposition: inline;
filename="writer.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/write=
r.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]=3DOpenOffice.org-tekstdokument
Comment[sv]=3DOpenOffice.org-textdokument
Comment[pl]=3DOpenOffice.org Dokument tekstowy
+Comment[pt]=3DDocumento texto OpenOffice.org
Comment[pt_BR]=3DDocumento texto OpenOffice.org
Comment[ja]=3DOpenOffice.org =E6=96=87=E6=9B=B8=E3=83=89=E3=82=AD=E3=83=A5=
=E3=83=A1=E3=83=B3=E3=83=88
Comment[ko]=3DOpenOffice.org =ED=85=8D=EC=8A=A4=ED=8A=B8 =EB=AC=B8=EC=84=
=9C
--------------020302070702090806080302
Content-Type: text/plain;
name="web.desktop.patch"
Content-Disposition: inline;
filename="web.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/web.d=
esktop 2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/web.desktop 20=
04-09-24 11:25:33.000000000 +0100
@@ -24,6 +24,7 @@
Comment[da]=3DOpenOffice.org HTML-dokument
Comment[sv]=3DOpenOffice.org-HTML-dokument
Comment[pl]=3DOpenOffice.org Dokument HTML
+Comment[pt]=3DDocumento HTML OpenOffice.org
Comment[pt_BR]=3DDocumento HTML OpenOffice.org
Comment[ja]=3DOpenOffice.org HTML =E5=BD=A2=E5=BC=8F=E3=83=89=E3=82=AD=E3=
=83=A5=E3=83=A1=E3=83=B3=E3=83=88
Comment[ko]=3DOpenOffice.org HTML =EB=AC=B8=EC=84=9C
--------------020302070702090806080302
Content-Type: text/plain;
name="template.desktop.patch"
Content-Disposition: inline;
filename="template.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/templ=
ate.desktop 2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/template.deskt=
op 2004-09-24 11:25:17.000000000 +0100
@@ -22,6 +22,7 @@
Name[da]=3DOpenOffice.org Fra skabelon
Name[sv]=3DFr=C3=A5n en OpenOffice.org-mall
Name[pl]=3DOpenOffice.org Na podstawie szablonu
+Name[pt]=3DA partir de um modelo OpenOffice.org
Name[pt_BR]=3DA partir de um modelo OpenOffice.org
Name[ja]=3DOpenOffice.org =E3=83=86=E3=83=B3=E3=83=97=E3=83=AC=E3=83=BC=E3=
=83=88=E3=81=8B=E3=82=89
Name[ko]=3DOpenOffice.org =EC=84=9C=EC=8B=9D =ED=8C=8C=EC=9D=BC=EB=A1=9C=
=EB=B6=80=ED=84=B0
--------------020302070702090806080302
Content-Type: text/plain;
name="math.desktop.patch"
Content-Disposition: inline;
filename="math.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /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 2=
004-09-24 11:24:35.000000000 +0100
@@ -24,6 +24,7 @@
Comment[da]=3DOpenOffice.org-formel
Comment[sv]=3DOpenOffice.org-formel
Comment[pl]=3DOpenOffice.org Formu=C5=82a
+Comment[pt]=3DF=C3=B3rmula OpenOffice.org
Comment[pt_BR]=3DF=C3=B3rmula OpenOffice.org
Comment[ja]=3DOpenOffice.org =E6=95=B0=E5=BC=8F
Comment[ko]=3DOpenOffice.org =EC=88=98=EC=8B=9D
--------------020302070702090806080302
Content-Type: text/plain;
name="directory.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="directory.patch"
--- /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
--------------020302070702090806080302
Content-Type: text/plain;
name="draw.desktop.patch"
Content-Disposition: inline;
filename="draw.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /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 2=
004-09-24 11:23:46.000000000 +0100
@@ -25,6 +25,7 @@
Comment[da]=3DOpenOffice.org-tegning
Comment[sv]=3DOpenOffice.org-teckning
Comment[pl]=3DOpenOffice.org Rysunek
+Comment[pt]=3DDesenho OpenOffice.org
Comment[pt_BR]=3DDesenho OpenOffice.org
Comment[ja]=3DOpenOffice.org =E5=9B=B3=E5=BD=A2=E6=8F=8F=E7=94=BB
Comment[ko]=3DOpenOffice.org =EA=B7=B8=EB=A6=AC=EA=B8=B0
--------------020302070702090806080302
Content-Type: text/plain;
name="impress.desktop.patch"
Content-Disposition: inline;
filename="impress.desktop.patch"
Content-Transfer-Encoding: quoted-printable
--- /mnt/hda5/knx/source/KNOPPIX/usr/share/applnk/OpenOffice.org1.1/impre=
ss.desktop 2004-11-21 23:27:07.000000000 +0000
+++ /mnt/hda5/knx/fixes/usr/share/applnk/OpenOffice.org1.1/impress.deskto=
p 2004-09-24 11:24:10.000000000 +0100
@@ -24,6 +24,7 @@
Comment[da]=3DOpenOffice.org-pr=C3=A6sentation
Comment[sv]=3DOpenOffice.org-presentation
Comment[pl]=3DOpenOffice.org Prezentacja
+Comment[pt]=3DApresenta=C3=A7=C3=A3o OpenOffice.org
Comment[pt_BR]=3DApresenta=C3=A7=C3=A3o OpenOffice.org
Comment[ja]=3DOpenOffice.org =E3=83=97=E3=83=AC=E3=82=BC=E3=83=B3=E3=83=86=
=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3
Comment[ko]=3DOpenOffice.org =ED=94=84=EB=A0=88=EC=A0=A0=ED=85=8C=EC=9D=B4=
=EC=85=98
--------------020302070702090806080302--