Re: i18n requires setlocale

2002-09-13 Thread Petter Reinholdtsen
[Junichi Uekawa] Are you mentioning pointerize ? No, I was thinking about a patch I made to boot-floppies to choose translation from a prioritized list of languages. The patch was not accepted, if I recall correctly. I've been talking about pointerize in other contexts without remembering

Re: i18n requires setlocale

2002-09-12 Thread Petter Reinholdtsen
[Martin Quinson] The problem of using gettext in debconf is that gettext wants the catalogs to be installed before used, and that debconf is used before the installation of the package (obviously). As long as this problem is not solved, it seems impossible to use gettext in debconf. Well,

Re: i18n requires setlocale

2002-09-12 Thread Junichi Uekawa
Petter Reinholdtsen [EMAIL PROTECTED] immo vero scripsit: AFAIK, it's not implemented yet in debconf. It is not too hard to implement. I once did part of it for boot-floppies. But I believe it is better to rewrite debconf and cdebconf to use gettext, and perhaps make a small version of

Re: i18n requires setlocale

2002-09-11 Thread Martin Quinson
On Tue, Sep 10, 2002 at 07:32:30PM +0200, Petter Reinholdtsen wrote: I would also like to add support for the LANGUAGE style variable listing several languages in priority order to be able to use other translations if the primary translation is missing. I want it to be able to tell the

Re: i18n requires setlocale

2002-09-11 Thread Martin Sjögren
ons 2002-09-11 klockan 00.55 skrev Tollef Fog Heen: Can't be done, since it will be set in a subprocess.. it's kinda hackish, but AFAICT there is no other way. You can't pass environment vars to parents. Ah, true. So we'd want every program to first db_get the locale and set the environment

Re: i18n requires setlocale

2002-09-11 Thread Martin Sjögren
ons 2002-09-11 klockan 09.30 skrev Martin Quinson: On Tue, Sep 10, 2002 at 07:32:30PM +0200, Petter Reinholdtsen wrote: I would also like to add support for the LANGUAGE style variable listing several languages in priority order to be able to use other translations if the primary

Re: i18n requires setlocale

2002-09-11 Thread Tollef Fog Heen
* Martin Sjögren | ons 2002-09-11 klockan 00.55 skrev Tollef Fog Heen: | Can't be done, since it will be set in a subprocess.. it's kinda | hackish, but AFAICT there is no other way. You can't pass environment | vars to parents. | | Ah, true. So we'd want every program to first db_get the

Re: i18n requires setlocale

2002-09-11 Thread Petter Reinholdtsen
[Martin Quinson] AFAIK, if you are using gettext, setting LANG=nb:nn:da:sv should do the trick since gettext implements fallbacks. No, you are thinking about the LANGUAGE variable. The LANG variable can only contain one locale, while the LANGUAGE variable can be a colon-separated list of

Re: i18n requires setlocale

2002-09-11 Thread Martin Quinson
On Wed, Sep 11, 2002 at 12:34:34PM +0200, Petter Reinholdtsen wrote: [Martin Quinson] AFAIK, if you are using gettext, setting LANG=nb:nn:da:sv should do the trick since gettext implements fallbacks. No, you are thinking about the LANGUAGE variable. The LANG variable can only

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-10 Thread Junichi Uekawa
On Mon, 9 Sep 2002 15:50:26 +0200 [EMAIL PROTECTED] (Denis Barbier) wrote: On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: [...] - for debs (base system), we: * make the templates.ll files in whatever encoding * either recode them or not when concatening [...]

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-10 Thread Junichi Uekawa
On Mon, 9 Sep 2002 15:36:58 +0200 Marcin Owsiany [EMAIL PROTECTED] wrote: 1. Am I right that cdebconf handles the templates in debian-installer? 2. Is this possible on all architectures? I mean: do all architectures use framebuffer? That also means that bterm will be Essential in

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-10 Thread Junichi Uekawa
On Mon, 9 Sep 2002 15:36:58 +0200 Marcin Owsiany [EMAIL PROTECTED] wrote: Hi, - for udebs, we: * make the templates.ll files in whatever encoding we like * recode (say using iconv) the templates.ll to UTF-8 when creating the combined templates file * simply copy the strings

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-10 Thread Philip Blundell
On Tue, 2002-09-10 at 02:03, Chris Tillman wrote: On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: On Mon, Sep 09, 2002 at 11:52:42AM +0200, Martin Sj?gren wrote: 2. Is this possible on all architectures? I mean: do all architectures use framebuffer? Some m68k's could

Re: i18n requires setlocale

2002-09-10 Thread Petter Reinholdtsen
[Martin Sjögren] I've been thinking the same thing. However, the i18n support is pretty hazy as it is: * main-menu asks debconf for debian-installer/language which afaict doesn't exist. IMO it would be better if the thing that asked for debian-installer/language first, sets

Re: i18n requires setlocale

2002-09-10 Thread Tollef Fog Heen
* Petter Reinholdtsen | I would like to rename the debconf answer from | debian-installer/language to debian-installer/locale, and store a real | locale name (ll_CC) there. This way, we can actually use LANG=$locale | after generating the required locale data file. We can also pass the |

Re: i18n requires setlocale

2002-09-10 Thread Tollef Fog Heen
* Martin Sjögren | * main-menu asks debconf for debian-installer/language which afaict | doesn't exist. IMO it would be better if the thing that asked for | debian-installer/language first, sets LANG=$language after that, so | setlocale can be used. Can't be done, since it will be set in a

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-10 Thread Marcin Owsiany
On Tue, Sep 10, 2002 at 05:26:03PM +0900, Junichi Uekawa wrote: - for udebs, we: * make the templates.ll files in whatever encoding we like [...] I'd like this kind of text to be committed to doc/ dir of debian-installer repository. Commited. We can fix the text contents later to

Re: i18n requires setlocale

2002-09-10 Thread Marcin Owsiany
On Wed, Sep 11, 2002 at 12:55:53AM +0200, Tollef Fog Heen wrote: * Martin Sjgren | * main-menu asks debconf for debian-installer/language which afaict | doesn't exist. IMO it would be better if the thing that asked for | debian-installer/language first, sets LANG=$language after that, so

Re: i18n requires setlocale

2002-09-09 Thread Martin Sjögren
mån 2002-09-09 klockan 03.45 skrev Junichi Uekawa: Why can't they be in UTF-8? My local encoding *is* UTF-8 Your local encoding is a country default that has been used in the past, and which is used in your debconf templates file, assumed when you do not specify an encoding in your

Re: i18n requires setlocale

2002-09-09 Thread Junichi Uekawa
ISO-8859-? for most european countries, EUC-JP in Japan, and so on. Not what your environment variable holds. Hmm. I meant to ask whether or am I cursed with Latin1 because I happen to live in western Europe? (but I must've forgotten it somehow) which it seems I am. So my conversion

Re: i18n requires setlocale

2002-09-09 Thread Martin Sjögren
mån 2002-09-09 klockan 11.38 skrev Junichi Uekawa: ISO-8859-? for most european countries, EUC-JP in Japan, and so on. Not what your environment variable holds. Hmm. I meant to ask whether or am I cursed with Latin1 because I happen to live in western Europe? (but I must've

I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Marcin Owsiany
On Mon, Sep 09, 2002 at 11:52:42AM +0200, Martin Sjgren wrote: No, but isn't that the point of separating sv_SE.UTF-8 from sv_SE.ISO-8859-1? gettext does the conversion on the fly, so all gettext-using programs work just fine. Debconf doesn't. (yet) To sum up then: - for udebs, we: *

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Denis Barbier
On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: [...] - for debs (base system), we: * make the templates.ll files in whatever encoding * either recode them or not when concatening [...] Some developers keep all translations in a single templates file, see 'adduser' for

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Tollef Fog Heen
* Marcin Owsiany | 1. Am I right that cdebconf handles the templates in debian-installer? yes. | 2. Is this possible on all architectures? I mean: do all architectures |use framebuffer? |That also means that bterm will be Essential in debian-installer, |since we won't be able to

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Marcin Owsiany
On Mon, Sep 09, 2002 at 03:50:26PM +0200, Denis Barbier wrote: On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: [...] - for debs (base system), we: * make the templates.ll files in whatever encoding * either recode them or not when concatening [...] Some

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Martin Sjögren
mån 2002-09-09 klockan 15.50 skrev Denis Barbier: On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: [...] - for debs (base system), we: * make the templates.ll files in whatever encoding * either recode them or not when concatening [...] Some developers keep all

Re: I18N roadmap [was: i18n requires setlocale]

2002-09-09 Thread Chris Tillman
On Mon, Sep 09, 2002 at 03:36:58PM +0200, Marcin Owsiany wrote: On Mon, Sep 09, 2002 at 11:52:42AM +0200, Martin Sj?gren wrote: 2. Is this possible on all architectures? I mean: do all architectures use framebuffer? Some m68k's could not use lang chooser in b-f because there is no bterm

i18n requires setlocale

2002-09-08 Thread Junichi Uekawa
Hi, i18n of messages and other things require setlocale. AFAIK there are no call to setlocale in the sources. Adding setlocale(LC_ALL,); to start of each main() should be enough. Otherwise applications will be running in C locale. regards, junichi -- [EMAIL PROTECTED] :

Re: i18n requires setlocale

2002-09-08 Thread Martin Sjögren
sön 2002-09-08 klockan 13.59 skrev Junichi Uekawa: Hi, i18n of messages and other things require setlocale. AFAIK there are no call to setlocale in the sources. Adding setlocale(LC_ALL,); to start of each main() should be enough. I've been thinking the same thing. However, the

Re: i18n requires setlocale

2002-09-08 Thread Junichi Uekawa
* main-menu asks debconf for debian-installer/language which afaict doesn't exist. IMO it would be better if the thing that asked for debian-installer/language first, sets LANG=$language after that, so setlocale can be used. * The Packages file parsing didn't support Description-ll_CC, only

Re: i18n requires setlocale

2002-09-08 Thread Martin Sjögren
sön 2002-09-08 klockan 17.31 skrev Junichi Uekawa: No templates should be in UTF-8. They need to be converted from their local encoding to the UTF-8 on the fly, or on creation of udebs. Why can't they be in UTF-8? My local encoding *is* UTF-8 (unless I misunderstand what you mean). And

Re: i18n requires setlocale

2002-09-08 Thread Chris Tillman
On Sun, Sep 08, 2002 at 06:49:54PM +0200, Martin Sj?gren wrote: s??n 2002-09-08 klockan 17.31 skrev Junichi Uekawa: No templates should be in UTF-8. They need to be converted from their local encoding to the UTF-8 on the fly, or on creation of udebs. Why can't they be in UTF-8? My

Re: i18n requires setlocale

2002-09-08 Thread Denis Barbier
On Sun, Sep 08, 2002 at 05:14:56PM +0200, Martin Sjögren wrote: [...] * Should we even use debconf i18n (which is pretty limited) or po files as per gettext? [...] FYI I have written some tools to manage translated Debconf templates files with gettext and will send an ITP as soon as

Re: i18n requires setlocale

2002-09-08 Thread Tollef Fog Heen
* Chris Tillman | For floppy installs, why not plan on having a floppy version available | in each language rather than trying to do a multilingual floppy? Because we will then have a zillion different floppies to choose from? :) -- Tollef Fog Heen

Re: i18n requires setlocale

2002-09-08 Thread Chris Tillman
On Sun, Sep 08, 2002 at 11:43:17PM +0200, Tollef Fog Heen wrote: * Chris Tillman | For floppy installs, why not plan on having a floppy version available | in each language rather than trying to do a multilingual floppy? Because we will then have a zillion different floppies to choose

Re: i18n requires setlocale

2002-09-08 Thread Junichi Uekawa
Why can't they be in UTF-8? My local encoding *is* UTF-8 Your local encoding is a country default that has been used in the past, and which is used in your debconf templates file, assumed when you do not specify an encoding in your templates file. ISO-8859-? for most european countries,

Re: i18n requires setlocale

2002-09-08 Thread Junichi Uekawa
On Sun, 8 Sep 2002 16:51:49 -0700 Chris Tillman [EMAIL PROTECTED] wrote: | For floppy installs, why not plan on having a floppy version available | in each language rather than trying to do a multilingual floppy? Because we will then have a zillion different floppies to choose from?