[etoys-dev] Question about LocaleID>>#displayName

Korakurider korakurider at gmail.com
Wed May 19 03:17:53 EDT 2010


On Wed, May 19, 2010 at 3:50 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On 18.05.2010, at 09:46, Ricardo Moran wrote:
>
> Hi,
> I've found this method:
> ----------------------------------------------------
> LocaleID>>displayName
> | magicPhrase translatedMagicPhrase |
> magicPhrase := '<language display name>'.
> translatedMagicPhrase := NaturalLanguageTranslator translateWithoutLoading:
> magicPhrase toLocaleID: self.
> ^ translatedMagicPhrase = magicPhrase
> ifTrue: [self displayLanguage]
> ifFalse: [translatedMagicPhrase]
> ----------------------------------------------------
> Shouldn't magicPhrase be 'Language-Name' as it is in the po file?
>
> Yes, we should fix that.
>
> Also, this string doesn't seem to be translated in any file, is that
> correct?
>
> It is translated:
> http://etoys.laptop.org/svn/trunk/etoys/po/etoys/de.po
>
> #: Language name as you'd like it to appear in the Languages menu
> msgid "Language-Name"
> msgstr "Deutsch"

Some language needs additional font installed to draw string properly.
So if we *naively fix* the translation, display of language name might
be corrupted.
Consideration on packaging will be required...

/Korakurider

>
> - Bert -
>
>
> _______________________________________________
> etoys-dev mailing list
> etoys-dev at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/etoys-dev
>
>


More information about the etoys-dev mailing list