[Pharo-project] [COTDC] 19 - NaturalLanguageFormTranslator

Gary Chambers gazzaguru2 at btinternet.com
Mon Feb 28 12:59:15 CET 2011


Provides support for looking up Forms by name for presentation in the UI.
Different forms can be registered for a name for different locales allowing
images presented in the UI to be localised.

Typically used where images contain language dependent text.

E.g.

buttonForm := (NaturalLanguageFormTranslator localeID: Locale current 
localeID)
    translate: 'submit button'


Form translations are added like so:

(NaturalLanguageFormTranslator isoLanguage: 'en' isoCountry: 'gb')
    name: 'submit button' form: aForm


Regards, Gary

----- Original Message ----- 
From: "Stéphane Ducasse" <stephane.ducasse at inria.fr>
To: <Pharo-project at lists.gforge.inria.fr>
Sent: Saturday, February 26, 2011 5:56 PM
Subject: Re: [Pharo-project] [COTDC] 19 - NaturalLanguageFormTranslator


this is a funny one
Looks like a monty python one. ")
On Feb 25, 2011, at 9:08 PM, laurent laffont wrote:

> I don't know why I'm here.
>
> Laurent.
>
> On Thu, Feb 24, 2011 at 8:55 PM, laurent laffont 
> <laurent.laffont at gmail.com> wrote:
> Today:   NaturalLanguageFormTranslator
>
>
> Comment Of The Day Contest - One Day One Comment
> Rules:
> #1: Each day a not commented class is elected. Each day the best comment 
> will be integrated with name of the author(s).
> #2: If you cannot comment it, deprecate it.
> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
>
> Laurent
>






More information about the Pharo-project mailing list