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.