[COTDC] 19 - NaturalLanguageFormTranslator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[COTDC] 19 - NaturalLanguageFormTranslator

laurent laffont
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.
Laurent
Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 19 - NaturalLanguageFormTranslator

laurent laffont
I don't know why I'm here.

Laurent.

On Thu, Feb 24, 2011 at 8:55 PM, laurent laffont <[hidden email]> 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.
Laurent

Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 19 - NaturalLanguageFormTranslator

Stéphane Ducasse
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 <[hidden email]> 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
>


Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 19 - NaturalLanguageFormTranslator

Gary Chambers-4
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" <[hidden email]>
To: <[hidden email]>
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
> <[hidden email]> 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
>



Reply | Threaded
Open this post in threaded view
|

Re: [COTDC] 19 - NaturalLanguageFormTranslator

laurent laffont
Sometimes I would like to write a program to dump Gary's brain into a HelpSystem book :)

Laurent

On Mon, Feb 28, 2011 at 12:59 PM, Gary Chambers <[hidden email]> wrote:
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" <[hidden email]>
To: <[hidden email]>
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 <[hidden email]> 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