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

Re: catalan l10n for openoffice 1.0.1



[CCing to debian-openoffice for reference]

Hi Albert,

On Sat, Dec 21, 2002 at 08:33:10PM +0100, Albert Cervera Areny wrote:
> Do you know how I could do that? I'd be iterested if it is not very
> difficult and as I have no experience with open office sources some help
> or orientation would be very appreciated.
> 
> > On Wed, Dec 18, 2002 at 10:55:40PM +0100, Albert Cervera Areny wrote:
> >> Hi! I'm new to the list and I'd like to know if there will be the
> >> catalan i18n files for openoffice.org Today, I've seen it's been
> >> updated but can't see the catalan package.
> >
> > They don't seem to be part of the 1.0.1 source.  Several translation
> > projects have produced their own installation sets based on a forked
> > version of the code.  We need such additions in the form of a patchset
> > that can be applied to the original sources.  If someone is willing to
> > generate such a patch, we are happy to add this to the packages.
> >
> > Chris

Sorry to take a while to get back to you - your mail came while I was on
holiday and I had all the bookmarks for this on my other machine.

Please read this for an overview of the translation process:

  http://l10n.openoffice.org/adding_language.html

It seems that Mandrake already supply the updates needed for catalan in the
form of patches.  This is good, because their patches are compatible with
ours and can be simply dropped in the debian/patches directory of the
openoffice source.  I was not able to find any information from the authors
about the licensing of these patches; I need that to make sure that we are
allowed to distribute these patches.  Also, it is part of Debian policy to
submit patches added to packages upstream; I can't find any record of these
patches in OpenOffice's IssueZilla and this needs to be checked out why
nothing has been submitted upstream yet.

You can check out Mandrake's packaging from CVS like this:

  export CVSROOT=:ext:anoncvs@cvs.mandrakesoft.com:/cooker
  export CVS_RSH=ssh
  cvs login
[type 'cvs' as password]
  cvs -z3 get SPECS/OpenOffice.org

You can get the latest Debian package source from CVS like this:

  apt-get source openoffice.org
  cd openoffice.org-1.0.2
  rm -r debian
  export CVSROOT=:pserver:anonymous@cvs.debian.org:/cvs/debian-openoffice
  cvs login
[press enter when prompted for a password]
  cvs get -d debian oo-deb/debian

The relevant patches seem to be:
openoffice-1.0.1-catalan-localization.txt  
openoffice-1.0.2-catalan.patch
openoffice-1.0.1-external-localize-ca.patch

You should place patches in debian/patches.

Once OOo is patched to generate the Catalan, you need to modify the list of
languages generated by the langpack process.  To do this, edit
debian/local/openoffice-xlate-lang, and add catalan to the table of
language number, language code and language name found at the end of the
file:

__DATA__
01:en:English (US)
03:pt:Portuguese
etc.

To generate the control file, do the following:

  rm debian/control
  debian/rules control

Now you can build the packages!  See debian/README for details about the
package building system, build options and the available targets.  Or:

  debuild

(assuming that you have the devscripts package installed)

Chris

Attachment: pgp65UUawZXSK.pgp
Description: PGP signature


Reply to: