Re: Is there a "select langauge" module?
From: Gunnar Strand (Gunnar.News_at_gustra.org)
Date: 01/25/04
- Next message: Tad McClellan: "Re: How To explicitly name a hash?"
- Previous message: Paul Tomsic: "Re: bouncing a request back to java from perl....."
- In reply to: pkent: "Re: Is there a "select langauge" module?"
- Next in thread: pkent: "Re: Is there a "select langauge" module?"
- Reply: pkent: "Re: Is there a "select langauge" module?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jan 2004 22:57:53 +0100
The Locale::Maketext::TJP13 is an excellent article discussing
the problems with translations and describes the reason behind
the Locale::Maketext module:
http://search.cpan.org/~sburke/Locale-Maketext-1.08/lib/Locale/Maketext/TPJ13.pod
The parameterizaion of messages is the central issue in the
article. I wouldn't mind seeing a reference to it in the
perlfaq somewhere. Recommended reading!
Kind Regards,
/Gunnar
pkent wrote:
> In article <Pine.LNX.4.53.0401241756310.20482@ppepc56.ph.gla.ac.uk>,
> "Alan J. Flavell" <flavell@ph.gla.ac.uk> wrote:
>
>
>>Years ago, IBM internationalised their VM messages by providing
>>for each language a file of message texts, with the parameters
>>designated by placeholders $1, $2, $3 etc.
>>
>>The message-writing routines were called with a message code and a
>>list of parameter values. It's a key feature that the parameters did
>>not have to be placed in numerical sequence - some languages wanted
>>the parameters in one order, others in another, for best idiom. So
>>you might have something like (pure invention)
>>
>>IBMABC123E Command $1 got Error $3 opening file $2
>
>
> Yep this is, in my limited experience, the way that part of the
> localization of internationalized application is done, and eminently
> sensible it is, too. MacOS programs also often have string resources
> (shown up with ResEdit) that look like "Cannot open file ^1 because: ^2"
>
> Other things you also want to change when creating the message are
> number format, date format, time corrections, gender, pluralization,
> screen space allocated for strings, text directionality, keyboard
> shotcut keys... quite a lot really. Some of this sort of thing is done
> in:
>
> http://java.sun.com/j2se/1.3/docs/api/java/text/MessageFormat.html
> and others in
> http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html
>
> but I can't immediately find a perl module which offers similar
> functions. The MessageFormat class is like a very souped-up sprintf()
> with all the bells and whistles, and you could use the ResourceBundle
> class to load the correct format strings etc. for the current locale or
> user prefs.
>
> I was reading somewhere else that a program was localized into German
> but that the error messages took up about 50% (they said) more space.
> Naturally the GUI elements weren't resized to take account of this :-)
>
> P
>
- Next message: Tad McClellan: "Re: How To explicitly name a hash?"
- Previous message: Paul Tomsic: "Re: bouncing a request back to java from perl....."
- In reply to: pkent: "Re: Is there a "select langauge" module?"
- Next in thread: pkent: "Re: Is there a "select langauge" module?"
- Reply: pkent: "Re: Is there a "select langauge" module?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|