[squeakland] Transalating Text in Etoys - followup from education committee question

Steve Thomas sthomas1 at gosargon.com
Thu Feb 18 14:45:44 EST 2010


Kathleen,

I looked at Bert's comment at: http://tracker.squeakland.org/browse/SQ-555

We need a way to look up guides in per-language directories.

Maybe by moving the QuickGuides to the locale/<lang> directories?


So it seems for Quick Guides he would prefer a separate copy in each
directory.

The method I was discussing is more for making a mulit-lingual Etoy project.
Where the text changes to the users native language.

To do that, you can use a Text Object (see list of which text objects this
works for below)

   1. Enter your text in the default language (ex: English)
   2. In the Sugar Flap to the right of the Supplier Bin icon, click on
   "Choose Language" and pick another language (ex: Spanish)
   3. Change the text to Spanish

Now when you switch languages the text will change. As was pointed out on
the education committee meeting call you will still have problems with
different languages using different length words for the same meaning.
(ex:English - up -> Spanish: arriba)  This problem is independent of any
translation technology, but it is good to be aware of it.  One possible way
to deal with this is to change the Kerning.  To change Kerning select a word
inside a Text object then <Shift><Cmd><-> to decrease the Kern and
<Shift><Cmd><+> to increase the kern. (NOTE: hit all three keys at the same
time, ie: Shift,Cmd and minus sign or plus sign).


List of Translatable Text Objects:

   1. Text  - this is the one from the supplies bin
   2. Text (border)


List of Non-Translatable Text Objects:

   1. Enhanced Text
   2. Scrolling Text
   3. Title

FYI list of keyboard shortcuts while editing Text (on Windows use <ctrl> on
Macintosh <command>:
Text Emphasis
    (not available on all platforms)
Cmd-1    10 point font
Cmd-2    12 point font
Cmd-3    18 point font
Cmd-4    24 point font
Cmd-5    36 point font
Cmd-6    color, action-on-click, link to class comment, link to method, url
        Brings up a menu.  To remove these properties, select
        more than the active part and then use command-0.
Cmd-7    bold
Cmd-8    italic
Cmd-9    narrow (same as negative kern)
Cmd-0    plain text (resets all emphasis)
Cmd--    underlined (toggles it)
Cmd-=    struck out (toggles it)

Shift-Cmd--    (aka _) negative kern (letters 1 pixel closer)
Shift-Cmd-+    positive kern (letters 1 pixel larger spread)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/squeakland/attachments/20100218/92e0bd13/attachment.html


More information about the squeakland mailing list