NaturalLanguageTranslator seems useless

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

NaturalLanguageTranslator seems useless

Adrien BARREAU
Hi,

I'm reading some code and I saw that:
   ^'File' translated.

It calls NaturalLanguageTranslator translate: aString, which makes ... ^ aString.

It seems pretty useless ...
Is there any translation project?

Adrien.
Reply | Threaded
Open this post in threaded view
|

Re: NaturalLanguageTranslator seems useless

Stéphane Ducasse
translated is the protocol to make sure string get translated.
Now to get the translation you should load a package that will load the the right
translate: method :)

Stef
On Mar 9, 2011, at 2:42 PM, Adrien BARREAU wrote:

> Hi,
>
> I'm reading some code and I saw that:
>    ^'File' translated.
>
> It calls NaturalLanguageTranslator translate: aString, which makes ... ^ aString.
>
> It seems pretty useless ...
> Is there any translation project?
>
> Adrien.


Reply | Threaded
Open this post in threaded view
|

Re: NaturalLanguageTranslator seems useless

Henrik Sperre Johansen
In reply to this post by Adrien BARREAU
<base href="x-msg://110/">Check out the Gettext package in the PharoNonCorePackages repository.

Cheers,
Henry

On Mar 9, 2011, at 2:42 42PM, Adrien BARREAU wrote:

Hi, 

I'm reading some code and I saw that:
   ^'File' translated.

It calls NaturalLanguageTranslator translate: aString, which makes ... ^ aString.

It seems pretty useless ...
Is there any translation project?

Adrien. 

Reply | Threaded
Open this post in threaded view
|

Re: NaturalLanguageTranslator seems useless

laurent laffont


19 - NaturalLanguageFormTranslator - G.Chambers

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



Laurent.


On Wed, Mar 9, 2011 at 4:44 PM, Henrik Johansen <[hidden email]> wrote:
Check out the Gettext package in the PharoNonCorePackages repository.

Cheers,
Henry

On Mar 9, 2011, at 2:42 42PM, Adrien BARREAU wrote:

Hi, 

I'm reading some code and I saw that:
   ^'File' translated.

It calls NaturalLanguageTranslator translate: aString, which makes ... ^ aString.

It seems pretty useless ...
Is there any translation project?

Adrien.