Re: [Libreoffice] Gettext patch

2011-06-21 Thread Bjoern Michaelsen
On Tue, 21 Jun 2011 17:39:50 +0100 Michael Meeks wrote: > textdomain sets some sort of global variable (last I looked) > which subsequent gettext calls then work from. That shouldn't work > well in LibreOffice's case where we need to multiplex lots of > catalogs at speed; I strongly recomme

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Michael Meeks
On Tue, 2011-06-21 at 13:13 +0200, Andras Timar wrote: > >Instead of calling textdomain - since (I suspect) we can probably > > call > > lots of these resource mgrs in quick succession - eg. initializing an > > sw/ widget derived from sfx2/ from vcl/ - I suggest we drop the > > textdomain

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Andras Timar
Hi Michael, 2011/6/21 Michael Meeks : > On Tue, 2011-06-21 at 11:43 +0200, Andras Timar wrote: >> +    OSL_TRACE( "bindtextdomain(): %s -> %s\n", pPrefixName, p ); >> +    textdomain( pPrefixName ); > >        Instead of calling textdomain - since (I suspect) we can probably call > lots of these r

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Tor Lillqvist
> I wonder if we want to introduce gettext as an internal / > self-built & packaged dependency on Windows - We (or "they") already do this, the librsvg stack dragged in for example gettext, which gets built on Windows. (Although when using the bundled librsvg stack, that is just a silly depende

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Michael Meeks
Hi Andras, On Tue, 2011-06-21 at 11:43 +0200, Andras Timar wrote: > +OSL_TRACE( "bindtextdomain(): %s -> %s\n", pPrefixName, p ); > +textdomain( pPrefixName ); Instead of calling textdomain - since (I suspect) we can probably call lots of these resource mgrs in quick succession -

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Andras Timar
2011/6/21 Caolán McNamara : > On Tue, 2011-06-21 at 11:43 +0200, Andras Timar wrote: >> +    setlocale(LC_ALL, ""); > > Is there a way to tell gettext what language you want, without tweaking > setlocale ? > AFAIK LANGUAGE environment variable can be used, and can be selected according to the langu

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Caolán McNamara
On Tue, 2011-06-21 at 11:43 +0200, Andras Timar wrote: > +setlocale(LC_ALL, ""); Is there a way to tell gettext what language you want, without tweaking setlocale ? C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.free

Re: [Libreoffice] Gettext patch

2011-06-21 Thread Andras Timar
Hi, 2011/6/15 Bjoern Michaelsen : >> I would like to work on "gettextizaton" of LibreOffice. Michael said >> you had an initial patch. Can you share it with me? > > No, I have no patch, I just collected some starting points and design > considerations. You find those here: > > http://wiki.document

Re: [Libreoffice] Gettext patch

2011-06-15 Thread Bjoern Michaelsen
Hi Andras, On Wed, 15 Jun 2011 12:07:12 +0200 Andras Timar wrote: > I would like to work on "gettextizaton" of LibreOffice. Michael said > you had an initial patch. Can you share it with me? No, I have no patch, I just collected some starting points and design considerations. You find those her