Re: Currencies list?

2005-03-31 Thread Murray Cumming
On Wed, 2005-03-30 at 19:47 +0100, Alastair McKinstry wrote:
> On CÃad, 2005-03-30 at 12:00 +0200, Murray Cumming wrote:
> > Thanks. Here is the code I wrote for Glom for those who like C++:
> > http://cvs.gnome.org/viewcvs/glom/glom/data_structure/iso_codes.cc?
> > view=markup
>
> The po domains were renamed "iso_4217", "iso_639", etc. to aid the
> Translation project.

That fixed it. Many thanks.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-30 Thread Alastair McKinstry
On CÃad, 2005-03-30 at 12:00 +0200, Murray Cumming wrote:
> On Wed, 2005-03-30 at 06:34 +0100, Simos Xenitellis wrote:
> > ``So the plan is then to be able to use
> > dgettext("iso-639", language_name)
> > to get the correct translations.''
> > 
> > In addition, it recommends to contact the maintainer of the iso-codes
> > package when you are considering to make an implementation, as the
> > current format is in flux.
> 
> Thanks. Here is the code I wrote for Glom for those who like C++:
> http://cvs.gnome.org/viewcvs/glom/glom/data_structure/iso_codes.cc?
> view=markup
> 
> The dgettext() part is not working for me in de_DE.UTF-8 on Ubuntu
> Hoary, but maybe the translation is not complete yet.

The po domains were renamed "iso_4217", "iso_639", etc. to aid the
Translation project.

Good to see the data being used!

Regards
Alastair


___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-30 Thread Murray Cumming
On Wed, 2005-03-30 at 15:06 +0200, Danilo Åegan wrote:
> Yesterday at 17:41, Murray Cumming wrote:
> 
> > - how could I get a translation of a currency name, in the current
> > locale?
> 
> As for current locale, why not use strfmon or localeconv instead?
> 
> #include 
> #include 
> 
> int main(void) {
>   char dump[100];
>   struct lconv *info;
> 
>   setlocale(LC_ALL,"");
>   info = localeconv();
> 
>   strfmon(dump, 100, "%n", 123.45);
>   printf("%s\nint_curr_symbol: %s\ncurrency_symbol: %s\n", dump, 
> info->int_curr_symbol, info->currency_symbol);
>   
>   return 0;
> }
> 
> This gives me in sr_CS locale:
> 
> 123,45 ÐÐÐ
> int_curr_symbol: CSD 
> currency_symbol: ÐÐÐ
> 
> Of course, if you need to list all the currencies and allow user to
> select them, then using iso-codes is likely much better.

Yes, I do need a list, but thanks for the suggestion. I can use that to
offer a good default.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-30 Thread Danilo Šegan
Yesterday at 17:41, Murray Cumming wrote:

> - how could I get a translation of a currency name, in the current
> locale?

As for current locale, why not use strfmon or localeconv instead?

#include 
#include 

int main(void) {
  char dump[100];
  struct lconv *info;

  setlocale(LC_ALL,"");
  info = localeconv();

  strfmon(dump, 100, "%n", 123.45);
  printf("%s\nint_curr_symbol: %s\ncurrency_symbol: %s\n", dump, 
info->int_curr_symbol, info->currency_symbol);
  
  return 0;
}

This gives me in sr_CS locale:

123,45 ÐÐÐ
int_curr_symbol: CSD 
currency_symbol: ÐÐÐ

Of course, if you need to list all the currencies and allow user to
select them, then using iso-codes is likely much better.

Cheers,
Danilo
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-30 Thread Murray Cumming
On Wed, 2005-03-30 at 06:34 +0100, Simos Xenitellis wrote:
> ``So the plan is then to be able to use
> dgettext("iso-639", language_name)
> to get the correct translations.''
> 
> In addition, it recommends to contact the maintainer of the iso-codes
> package when you are considering to make an implementation, as the
> current format is in flux.

Thanks. Here is the code I wrote for Glom for those who like C++:
http://cvs.gnome.org/viewcvs/glom/glom/data_structure/iso_codes.cc?
view=markup

The dgettext() part is not working for me in de_DE.UTF-8 on Ubuntu
Hoary, but maybe the translation is not complete yet.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Simos Xenitellis

Some more information on currency internationalisation...
http://www.xencraft.com/resources/multi-currency.html#group

Simos

ÎÏÎÏ 30/ÎÎÏ/2005, ÎÎÎÏÎ ÎÎÏÎÏÏÎ ÎÎÎ ÏÏÎ 06:34, Î/Î 
Simos Xenitellis
ÎÎÏÎÏÎ:
> ÎÏÎÏ 29/ÎÎÏ/2005, ÎÎÎÏÎ ÎÏÎÏÎ ÎÎÎ ÏÏÎ 19:49, Î/Î 
> Christian Rose ÎÎÏÎÏÎ:
> > tis 2005-03-29 klockan 17:41 +0200 skrev Murray Cumming:
> > > On Tue, 2005-03-29 at 16:32 +0100, Simos Xenitellis wrote:
> > > > Murray Cumming wrote:
> > > > 
> > > > >Does anyone know of a LGPL (or similar) library that can give me a
> > > > >(translatable) list of currencies (with symbol, name, and country)? I
> > > > >would like to use this for the numeric formatting options in Glom. 
> > > > 
> > > > The currency codes and names are listed in ISO 4217, see:
> > > > http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
> > > > http://www.xe.com/iso4217.htm
> > > > 
> > > > What programming language are you interested in? I suppose C?
> > > 
> > > Yes, C/C++.
> > > 
> > > > There is already a textual domain for currency names, maintained at
> > > > the Translation Project:
> > > > http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217
> > > 
> > > Thanks, but I'm not sure how I should use this in my application.
> > > 
> > > For instance
> > > - how could I get a list of currencies.
> > > - how could I get a translation of a currency name, in the current
> > > locale?
> > 
> > The iso* domains in the Translation Project are what translators see of
> > the "iso-codes" package (see
> > http://people.debian.org/~mckinstry/iso-codes-0.45.tar.gz). That package
> > contains XML files with some or all of the information you list above.
> > As I understand it, you should be able to depend on that package, and
> > get the translations from it.
> 
> The above URL does not seem to work at the moment. You can try 
> http://packages.debian.org/unstable/misc/iso-codes
> 
> To use the textual domain, I copy from the README file of the package: 
> 
> ``Currently there are lists of languages and countries embedded in:
> 
> - Gnome Libs
> - bootfloppies / PGI
> - KDE
> - Gnumeric
> - Gnucash
> - ...''
> 
> ``So the plan is then to be able to use
> dgettext("iso-639", language_name)
> to get the correct translations.''
> 
> In addition, it recommends to contact the maintainer of the iso-codes
> package when you are considering to make an implementation, as the
> current format is in flux.
> 
> Kexchange (http://www.favorin.com/projects/kexchange/) does not make use
> of iso-codes but rather translates again the currency names.



___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Simos Xenitellis
ÎÏÎÏ 29/ÎÎÏ/2005, ÎÎÎÏÎ ÎÏÎÏÎ ÎÎÎ ÏÏÎ 19:49, Î/Î 
Christian Rose ÎÎÏÎÏÎ:
> tis 2005-03-29 klockan 17:41 +0200 skrev Murray Cumming:
> > On Tue, 2005-03-29 at 16:32 +0100, Simos Xenitellis wrote:
> > > Murray Cumming wrote:
> > > 
> > > >Does anyone know of a LGPL (or similar) library that can give me a
> > > >(translatable) list of currencies (with symbol, name, and country)? I
> > > >would like to use this for the numeric formatting options in Glom. 
> > > 
> > > The currency codes and names are listed in ISO 4217, see:
> > > http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
> > > http://www.xe.com/iso4217.htm
> > > 
> > > What programming language are you interested in? I suppose C?
> > 
> > Yes, C/C++.
> > 
> > > There is already a textual domain for currency names, maintained at
> > > the Translation Project:
> > > http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217
> > 
> > Thanks, but I'm not sure how I should use this in my application.
> > 
> > For instance
> > - how could I get a list of currencies.
> > - how could I get a translation of a currency name, in the current
> > locale?
> 
> The iso* domains in the Translation Project are what translators see of
> the "iso-codes" package (see
> http://people.debian.org/~mckinstry/iso-codes-0.45.tar.gz). That package
> contains XML files with some or all of the information you list above.
> As I understand it, you should be able to depend on that package, and
> get the translations from it.

The above URL does not seem to work at the moment. You can try 
http://packages.debian.org/unstable/misc/iso-codes

To use the textual domain, I copy from the README file of the package: 

``Currently there are lists of languages and countries embedded in:

- Gnome Libs
- bootfloppies / PGI
- KDE
- Gnumeric
- Gnucash
- ...''

``So the plan is then to be able to use
dgettext("iso-639", language_name)
to get the correct translations.''

In addition, it recommends to contact the maintainer of the iso-codes
package when you are considering to make an implementation, as the
current format is in flux.

Kexchange (http://www.favorin.com/projects/kexchange/) does not make use
of iso-codes but rather translates again the currency names.

Simos

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Clytie Siddall
On 30/03/2005, at 4:19 AM, Christian Rose wrote:
The iso* domains in the Translation Project are what translators see of
the "iso-codes" package (see
http://people.debian.org/~mckinstry/iso-codes-0.45.tar.gz). That 
package
contains XML files with some or all of the information you list above.
As I understand it, you should be able to depend on that package, and
get the translations from it.
Yes. For example, I translated the iso-codes-0.45 package recently, 
including the currencies file, so you can get the translations straight 
from the Translation Project,

http://www.iro.umontreal.ca/translation/HTML/
or find them in the released package.
I'm glad someone's going to be using that data: it was a pain to 
translate, and I did catch myself wondering, "Will anyone ever use 
this?"  :)

from Clytie (vi-VN, team/nhÃm Gnome-vi)
Clytie Siddall--Renmark, in the Riverland of South Australia
á thÃnh phá Renmark, tái mián sÃng cáa Nam Ãc
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Christian Rose
tis 2005-03-29 klockan 17:41 +0200 skrev Murray Cumming:
> On Tue, 2005-03-29 at 16:32 +0100, Simos Xenitellis wrote:
> > Murray Cumming wrote:
> > 
> > >Does anyone know of a LGPL (or similar) library that can give me a
> > >(translatable) list of currencies (with symbol, name, and country)? I
> > >would like to use this for the numeric formatting options in Glom. 
> > 
> > The currency codes and names are listed in ISO 4217, see:
> > http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
> > http://www.xe.com/iso4217.htm
> > 
> > What programming language are you interested in? I suppose C?
> 
> Yes, C/C++.
> 
> > There is already a textual domain for currency names, maintained at
> > the Translation Project:
> > http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217
> 
> Thanks, but I'm not sure how I should use this in my application.
> 
> For instance
> - how could I get a list of currencies.
> - how could I get a translation of a currency name, in the current
> locale?

The iso* domains in the Translation Project are what translators see of
the "iso-codes" package (see
http://people.debian.org/~mckinstry/iso-codes-0.45.tar.gz). That package
contains XML files with some or all of the information you list above.
As I understand it, you should be able to depend on that package, and
get the translations from it.


Christian

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Adam Weinberger
On Tue, 2005-29-03 at 16:26 +0200, Murray Cumming wrote:
> Does anyone know of a LGPL (or similar) library that can give me a
> (translatable) list of currencies (with symbol, name, and country)? I
> would like to use this for the numeric formatting options in Glom.

Murray -

Check out kexchange, at http://www.favorin.com/projects/kexchange/

# Adam


-- 
Adam Weinberger
[EMAIL PROTECTED] || [EMAIL PROTECTED]
[EMAIL PROTECTED]||   [EMAIL PROTECTED]
http://www.vectors.cx


___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Murray Cumming
On Tue, 2005-03-29 at 16:32 +0100, Simos Xenitellis wrote:
> Murray Cumming wrote:
> 
> >Does anyone know of a LGPL (or similar) library that can give me a
> >(translatable) list of currencies (with symbol, name, and country)? I
> >would like to use this for the numeric formatting options in Glom.
> >
> >  
> >
> The currency codes and names are listed in ISO 4217, see:
> http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
> http://www.xe.com/iso4217.htm
> 
> What programming language are you interested in? I suppose C?

Yes, C/C++.

> There is already a textual domain for currency names, maintained at
> the Translation Project:
> http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217

Thanks, but I'm not sure how I should use this in my application.

For instance
- how could I get a list of currencies.
- how could I get a translation of a currency name, in the current
locale?
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Currencies list?

2005-03-29 Thread Simos Xenitellis
Murray Cumming wrote:
Does anyone know of a LGPL (or similar) library that can give me a
(translatable) list of currencies (with symbol, name, and country)? I
would like to use this for the numeric formatting options in Glom.
 

The currency codes and names are listed in ISO 4217, see:
http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
http://www.xe.com/iso4217.htm
What programming language are you interested in? I suppose C?
There is already a textual domain for currency names, maintained at
the Translation Project:
http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217
Simos

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n