<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 18.05.2010, at 09:46, Ricardo Moran wrote:</div><blockquote type="cite">Hi,<div>I've found this method:</div><div><br></div><div>----------------------------------------------------</div><div><div>LocaleID&gt;&gt;displayName</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>| magicPhrase translatedMagicPhrase |</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>magicPhrase := '&lt;language display name&gt;'.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>translatedMagicPhrase := NaturalLanguageTranslator translateWithoutLoading: magicPhrase toLocaleID: self.</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>^ translatedMagicPhrase = magicPhrase</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTrue: [self displayLanguage]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifFalse: [translatedMagicPhrase]</div>

<div>----------------------------------------------------</div><div><br></div><div>Shouldn't magicPhrase be 'Language-Name' as it is in the po file?</div></div></blockquote><div><br></div><div>Yes, we should fix that.</div><br><blockquote type="cite"><div><div>Also, this string doesn't seem to be translated in any file, is that correct?</div>

</div></blockquote></div><div><br></div><div>It is translated:</div><div><br></div><div><a href="http://etoys.laptop.org/svn/trunk/etoys/po/etoys/de.po">http://etoys.laptop.org/svn/trunk/etoys/po/etoys/de.po</a></div><span class="Apple-style-span" style="font-family: Optima; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">#: Language name as you'd like it to appear in the Languages menu
msgid "Language-Name"
msgstr "Deutsch"
</pre><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></div></span><div>
<span class="Apple-style-span" style="font-size: 12px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>