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

Bert Freudenberg bert at freudenbergs.de
Tue May 18 14:50:21 EDT 2010


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"

- Bert -


-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.squeakland.org/pipermail/etoys-dev/attachments/20100518/73ba6edd/attachment.html


More information about the etoys-dev mailing list