From owner-freebsd-i18n Mon Jan 22 7:20:33 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 8B2E937B401; Mon, 22 Jan 2001 07:18:00 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id RAA14352; Mon, 22 Jan 2001 17:16:19 +0200 (EET) Received: (from phantom@localhost) by phantom.cris.net (8.11.1/8.11.1) id f0MFIBT65727; Mon, 22 Jan 2001 17:18:11 +0200 (EET) (envelope-from phantom) Date: Mon, 22 Jan 2001 17:18:11 +0200 From: Alexey Zelkin To: i18n@FreeBSD.org Cc: ache@FreeBSD.org, bde@FreeBSD.org Subject: call for review: LC_{NUMERIC,MONETARY} support for libc Message-ID: <20010122171811.A65663@phantom.cris.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MGYHOYXEY6WxJCY8" X-Mailer: Mutt 1.0.1i X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii hi, I have wrote support for libc's locale for two additional locale categories: LC_NUMERIC and LC_MONETARY. (LC_MESSAGES is not yet finished) in order to make FreeBSD's locale support more complete. As you can see from output of test program (source in test/tst.c) lconv structure now correctly fills after execution of setlocale() and ready to use by functions which need this one. I don't have any applications which actualy use lconv structure for numeric/monetary formating. Therefore any comments on way how they're handling are welcome! Attached archive contains: libc/ -- new files and patches for libc/locale files. share/ -- sources of /usr/share/locale/$lang/LC_{NUMERIC,MONETARY}. Currently I have included only en_US.ISO_8859-1 and ru_RU.KOI8-R examples. test/ -- small test program Once again -- comments are welcome! -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@crimea.edu */ /* http://www.ccssu.crimea.ua/~phantom && phantom@FreeBSD.org */ --MGYHOYXEY6WxJCY8 Content-Type: application/x-tar-gz Content-Disposition: attachment; filename="newlocale.tgz" Content-Transfer-Encoding: base64 H4sIAH88bDoAA+087VLcuJb5az+Fbic30PT3d6BDZgghGWoJpGioO9nJrMu43eCN23bZ7uSy GV5uH2Gr9n32HEm2JVkNYUI6t3ZaMxXsoyPpSDrfkjtwP/uhY/tu69F3K6TfHg0G5BEhndGg g3+htPlf/kJG3V6v3Rt2hkNA64y6nUdk8P1IKsoiSe2YkEfRlR2k4Xwp3ucr1/VXQdBqS5Dv f3Jlx9+HC+6x//3hqANovXa3u97/VRR1/4PF3I09Z+rOHo4V7rP/o14P0Aad/nr/V1Ju2f+3 9kd35vnuN4/RabeH/f7y/R/2B4X8U/0/BDXwiLQfYH53lr/4/j8mT17Hrvty8uqJaR6fvN07 3n1/MDH3jw72jl8fHh1MarvkyZejk/09eN6ZtJ60muEibV3emCYH7hpuYJ1PmoeTE+vZs8F2 o0M+mIYRL6zT8+a/nRw+a5xmuK8OT3fZlj/58upgcgbvN61FEnPeY4xoms3J+evXh7/CeKSZ xA7BEQEKj/i0YxqXsRuRxiey8R+PN8hz6Kx5+Pbd5HT/hrzAl7O90zcHZ0Ch7fs7y6i3Zykw egC7D0imMQtj4hMvKNBvxmQa0qk8+XJ4PDnbOzq6gdr9k3fvb0hjTpClGyFAXh4en/zjGGCX 7OXN6TtAfOLjULS9QSecL8FNCypbR/vW8fnbg9PD/TEiTcMAZ+4Fjr+YuuT5RTJtRnF42Zx/ fGF+x/2/Rf7FHcTF/9Nj3CX/XQDK8j8ajkZr+V9FEeX/sfmY/GPv9BhYeIckke24CZnb1+TC JW6SuEHq2T6xU5JeASCYknBGfC9wE7GZO4/SawYmwE9CwzQM6QhT1/Hmtm9FoRekZh0g6VW4 SOxgmliJG5lNgFzG4SLygkuzN+7B68HJ6+8pA3/lcov8q2r9T+uAe8t/t93ttdfyv4ryo+W/ WZL/+lr+V1hU+Z+DH5I+aPR3z/iv0wW0/rAzWsd/qyhL9//BtP9Xx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LuuyLuuyLuuyLuvy /7X8Hzp1pV4AeAAA --MGYHOYXEY6WxJCY8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Jan 23 15:49:12 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 8673A37B6A2; Tue, 23 Jan 2001 15:48:54 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.2/8.11.2) id f0NNmQL29780; Wed, 24 Jan 2001 02:48:26 +0300 (MSK) (envelope-from ache) Date: Wed, 24 Jan 2001 02:48:25 +0300 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= To: Alexey Zelkin Cc: i18n@FreeBSD.org, bde@FreeBSD.org Subject: Re: call for review: LC_{NUMERIC,MONETARY} support for libc Message-ID: <20010124024825.A29687@nagual.pp.ru> References: <20010122171811.A65663@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010122171811.A65663@phantom.cris.net>; from phantom@FreeBSD.org.ua on Mon, Jan 22, 2001 at 05:18:11PM +0200 Organization: Biomechanoid Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 22, 2001 at 17:18:11 +0200, Alexey Zelkin wrote: > I have wrote support for libc's locale for two additional locale > categories: LC_NUMERIC and LC_MONETARY. (LC_MESSAGES is not yet > finished) in order to make FreeBSD's locale support more complete. Looks good (but I not actually test it). 1) What happens in your variant when some monetary/numeric locale data is missing? Currently we don't have all locales monetary/numeric ready, so LC_ALL may fails, breaking compatibility. 2) About Russian monetary: I think thousand/decimal must be the same as for digits - there is no difference between those types of digits. And I think that Russian "rub." is better then "rub", point here indicates abbreviation. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Jan 24 8:52:31 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from beep.ru (www.beep.ru [212.188.13.192]) by hub.freebsd.org (Postfix) with SMTP id 591A637B69B for ; Wed, 24 Jan 2001 08:52:12 -0800 (PST) Received: from 212.13.99.131 by beep.ru with SMTP id AA13767 for freebsd-i18n@freebsd.org; Wed, 24 Jan 2001 19:45:06 +0300 (MSK) Date: Wed, 24 Jan 2001 19:44:01 +0300 From: Evgeny Dolgopiat X-Mailer: The Bat! (v1.36) S/N F29DEE5D / Educational Reply-To: =?Windows-1251?B?xeLj5e3o6SDE7uvj7u//8g==?= X-Priority: 3 (Normal) Message-ID: <13822.010124@beep.ru> To: "Michael C . Wu" Cc: freebsd-i18n@freebsd.org Subject: Some questions about localization. X-Sender: Evgeny Dolgopiat Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Content-Length: 1776 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I have some questions about l18n of standart utilities: cp, rm and etc.: 1. What do you think about quantity of arrays for local messages? a) one - char** messages: fprintf(stderr, "%s", messages[0]); fprintf(stdin, "%s", messages[1]); warn("%s", messages[2]); b) two - char** error_messages, info_messages: fprintf(stderr, "%s", error_messages[0]); fprintf(stdin, "%s", messages[0]); warn("%s", messages[1]); c) three - char** error_messages, warning_messages, info_messages: fprintf(stderr, "%s", error_messages[0]); fprintf(stdin, "%s", messages[0]); warn("%s", warning_messages[0]); d) more, more, more ... 2) What about l18n this part of code: /*******/ #define YESNO "(y / n)"; printf("Input your choice %s: " YESNO); answer = getchar(); if( answer == 'y' || answer == 'Y'){ ... } else{ ... } /**********/ a) First method: /*******/ #define YESNO "(y / n)"; printf("%s %s: " messages[0], YESNO); answer = getchar(); if( answer == 'y' || answer == 'Y'){ ... } else{ ... } /**********/ b) Second method: /*******/ #define YESNO messages[1]; printf("%s %s: " messages[0], messages[1]); scanf("%s", answer); if( ! strcmp(answer, messages[2]) || ! strncmp(answer, messages[3])){ ... } else{ ... } /**********/ c) Anything else? 3) Is any common rules for l18n? For example about name of file with messages, sequence order of messages in file (alphbetical list, order in src, ...) and a kind of. Best regards, Evgeny mailto:evg_dolgop@beep.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Jan 25 3: 6:56 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 8617937B698; Thu, 25 Jan 2001 03:06:30 -0800 (PST) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id NAA20380; Thu, 25 Jan 2001 13:05:11 +0200 (EET) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id f0PB5rA62675; Thu, 25 Jan 2001 13:05:53 +0200 (EET) Date: Thu, 25 Jan 2001 13:05:53 +0200 From: Alexey Zelkin To: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= Cc: i18n@FreeBSD.ORG, bde@FreeBSD.ORG Subject: Re: call for review: LC_{NUMERIC,MONETARY} support for libc Message-ID: <20010125130553.A60383@ark.cris.net> References: <20010122171811.A65663@phantom.cris.net> <20010124024825.A29687@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <20010124024825.A29687@nagual.pp.ru>; from ache@nagual.pp.ru on Wed, Jan 24, 2001 at 02:48:25AM +0300 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, On Wed, Jan 24, 2001 at 02:48:25AM +0300, Андрей Чернов wrote: > On Mon, Jan 22, 2001 at 17:18:11 +0200, Alexey Zelkin wrote: > > I have wrote support for libc's locale for two additional locale > > categories: LC_NUMERIC and LC_MONETARY. (LC_MESSAGES is not yet > > finished) in order to make FreeBSD's locale support more complete. > > Looks good (but I not actually test it). > > 1) What happens in your variant when some monetary/numeric locale data is > missing? Currently we don't have all locales monetary/numeric ready, so > LC_ALL may fails, breaking compatibility. In case of missing LC_MONETARY or LC_NUMERIC for some locales -- localeconv() just will be filled with default (C locale) values. > 2) About Russian monetary: I think thousand/decimal must be the same as > for digits - there is no difference between those types of digits. And I > think that Russian "rub." is better then "rub", point here indicates > abbreviation. I have used information from locale definitions taken from ftp://dkuug.dk/i18n/WG15-collection. As I could understand it's maintained and was used as source for glibc's locale definitions. -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Jan 25 3:11:38 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id E2F7537B404; Thu, 25 Jan 2001 03:11:19 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.2/8.11.2) id f0PBAxd53775; Thu, 25 Jan 2001 14:11:00 +0300 (MSK) (envelope-from ache) Date: Thu, 25 Jan 2001 14:10:56 +0300 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, bde@FreeBSD.ORG Subject: Re: call for review: LC_{NUMERIC,MONETARY} support for libc Message-ID: <20010125141055.A53703@nagual.pp.ru> References: <20010122171811.A65663@phantom.cris.net> <20010124024825.A29687@nagual.pp.ru> <20010125130553.A60383@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010125130553.A60383@ark.cris.net>; from phantom@ark.cris.net on Thu, Jan 25, 2001 at 01:05:53PM +0200 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jan 25, 2001 at 13:05:53 +0200, Alexey Zelkin wrote: > In case of missing LC_MONETARY or LC_NUMERIC for some locales -- localeconv() > just will be filled with default (C locale) values. Ok. > > 2) About Russian monetary: I think thousand/decimal must be the same as > > for digits - there is no difference between those types of digits. And I > > think that Russian "rub." is better then "rub", point here indicates > > abbreviation. > > I have used information from locale definitions taken from > ftp://dkuug.dk/i18n/WG15-collection. As I could understand it's maintained > and was used as source for glibc's locale definitions. Please contact Keld Simonsen to fix this. Some time ago I already ask him to fix another part (month/weekday names area) and he did it. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Jan 25 3:28:31 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 1EF7A37B400; Thu, 25 Jan 2001 03:28:14 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.2/8.11.2) id f0PBRWs53999; Thu, 25 Jan 2001 14:27:33 +0300 (MSK) (envelope-from ache) Date: Thu, 25 Jan 2001 14:27:31 +0300 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@FreeBSD.ORG, bde@FreeBSD.ORG Subject: Re: call for review: LC_{NUMERIC,MONETARY} support for libc Message-ID: <20010125142730.A53976@nagual.pp.ru> References: <20010122171811.A65663@phantom.cris.net> <20010124024825.A29687@nagual.pp.ru> <20010125130553.A60383@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010125130553.A60383@ark.cris.net>; from phantom@ark.cris.net on Thu, Jan 25, 2001 at 01:05:53PM +0200 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jan 25, 2001 at 13:05:53 +0200, Alexey Zelkin wrote: > > Looks good (but I not actually test it). BTW, not about functionality, but about style: I doubt that we need so many small header files just to pick one-two function prototypes. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Jan 27 5:53: 9 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from mx.globalone.ru (mx.globalone.ru [194.84.254.251]) by hub.freebsd.org (Postfix) with ESMTP id B8FC037B401 for ; Sat, 27 Jan 2001 05:52:51 -0800 (PST) Received: from hq.globalone.ru (hq.globalone.ru [172.16.38.1]) by mx.globalone.ru (8.11.1/8.11.1) with ESMTP id f0RDqjm20195 for ; Sat, 27 Jan 2001 16:52:46 +0300 Received: from host205.spb.in.rosprint.ru ([172.17.13.205]) by hq.globalone.ru (Netscape Messaging Server 4.15) with SMTP id G7TQJW00.914 for ; Sat, 27 Jan 2001 16:52:44 +0300 Message-ID: <069e01c08868$74c640e0$cd0d11ac@host205.spb.in.rosprint.ru> From: "Alexander Voropay" To: Subject: Re: Some questions about localization. Date: Sat, 27 Jan 2001 16:52:00 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1251" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Evgeny Dolgopiat wrote: >I have some questions about l18n of standart utilities: cp, rm and > >1. What do you think about quantity of arrays for local messages? >3) Is any common rules for l18n? For example about name of file with >messages, sequence order of messages in file (alphbetical list, order >in src, ...) and a kind of. The "localized messages" is subject of NLS subsystem, where NLS (message catalog mangetment system) is a part of whole I18N system environment. As it is known, in the *NIX world there are two main realizations of NLS : 1) X/Open XPG with catopen() [mostly obsoleted now] 2) SUN XView with gettext() / textdomain() It is recommended to use GNUgettext for all new GPL-ed projects for messages output. Just use libgettext in your proggies. New autoconf/automake utilities knows this library well, too. P.S. If you can read Russian, you could find this my page interesting : http://www.sensi.org/~alec/locale/locale_n.html -- -=AV=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Jan 27 6:56:39 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from flux.ptc.spbu.ru (flux.ptc.spbu.ru [195.19.225.195]) by hub.freebsd.org (Postfix) with ESMTP id 8C53A37B401 for ; Sat, 27 Jan 2001 06:56:19 -0800 (PST) Received: from snark.ptc.spbu.ru (snark.ptc.spbu.ru [195.19.225.131]) by flux.ptc.spbu.ru (8.9.3/8.9.3/cf-1.0.rbl) with ESMTP id RAA45651 for ; Sat, 27 Jan 2001 17:56:13 +0300 (MSK) Received: (from uwe@localhost) by snark.ptc.spbu.ru (8.8.8+Sun/8.8.8) id RAA13019 for freebsd-i18n@FreeBSD.ORG; Sat, 27 Jan 2001 17:56:12 +0300 (MSK) Date: Sat, 27 Jan 2001 17:56:12 +0300 From: "Valeriy E. Ushakov" To: freebsd-i18n@FreeBSD.ORG Subject: Re: Some questions about localization. Message-ID: <20010127175611.A13006@snark.ptc.spbu.ru> References: <069e01c08868$74c640e0$cd0d11ac@host205.spb.in.rosprint.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.3i In-Reply-To: <069e01c08868$74c640e0$cd0d11ac@host205.spb.in.rosprint.ru>; from "Alexander Voropay" on Sat, Jan 27, 2001 at 16:52:00 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jan 27, 2001 at 16:52:00 +0300, Alexander Voropay wrote: > It is recommended to use GNUgettext for all new GPL-ed projects for > messages output. This is, obviously, not quite appropriate for BSD code base, is it? PS: I have vague recollections about some utility that assisted in maintaing catgets(3) by building catalogs from source code and provided some help in maintaing numbering. It is deja vu or does anyone know about such a thing? I help maintaining a program (lout (ports/print)) with catgets-style localization and such an utility would be very handy. SY, Uwe -- uwe@ptc.spbu.ru | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message