Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Questions and Comments (http://www.alice.org/community/forumdisplay.php?f=9)
-   -   Alice in languages other than English (http://www.alice.org/community/showthread.php?t=9385)

edem 07-20-2012 02:56 PM

Alice in languages other than English
 
I want to help with a workshop to initiate young kids to programming by using Alice in French-spoken Africa. The language being however a potential barrier, I was wondering if there is any way to have the Alice software menu in French.

Mr Kidnapper 07-20-2012 06:13 PM

Yes. This is possible.
In your "Alice 2.2\Required\resources" folder there is a .py file called Alice Style.
It contains all of the Alice functions and method names in English. To translate this you simply need to change the strings in the quotation marks.
I recommend you use a program called Notepad++ to edit these files.
In Notepad++, the strings will be grey.
For example, if I were to translate a string to Japanese:
Before
[CODE]
edu.cmu.cs.stage3.alice.core.question.ask.AskUserForNumber : "ask user for a number <<question>>",
edu.cmu.cs.stage3.alice.core.question.ask.AskUserYesNo : "ask user for yes or no <<question>>",
edu.cmu.cs.stage3.alice.core.question.ask.AskUserForString : "ask user for a string <<question>>",[/CODE]
After
[CODE]
edu.cmu.cs.stage3.alice.core.question.ask.AskUserForNumber : "ユーザーから数に聞く <<question>>",
edu.cmu.cs.stage3.alice.core.question.ask.AskUserYesNo : "ユーザーから「はい」と「いいえ」に聞く <<question>>",
edu.cmu.cs.stage3.alice.core.question.ask.AskUserForString : "ユーザーからストリングにきく <<question>>",[/CODE]
And save it.

Some things to take note of are:
Leave the quotation marks in there
Don't change anything with arrows ("<" ">") or brackets "[" "]" around it.

To edit the Alice tutorial, they are located in "Alice 2.2\Required\tutorial"
as .stl files.
These .stl files are written in XML style.
Before:
[CODE]<stencil title="About the Alice Tutorial" stepsToGoBack="1">
<stateCapsule>
<![CDATA[existantElements|?|nonExistantElements|?|propertyValues|?|elementPositions|?|]]>
</stateCapsule>
<note type="null" hasNext="true" xPos="0.006782945736434108" yPos="0.0945945945945946">
<id>
<![CDATA[null]]>
</id>
<message>
<![CDATA[Welcome to the Alice Tutorial! This tutorial will introduce you to the basics of Alice.]]>
</message>
<message>
<![CDATA[Click "next" to move to the next step in the tutorial.]]>
</message>
</note>
</stencil>[/CODE]
After:
[CODE]<stencil title="アリスのチュートリアルについて" stepsToGoBack="1">
<stateCapsule>
<![CDATA[existantElements|?|nonExistantElements|?|propertyValues|?|elementPositions|?|]]>
</stateCapsule>
<note type="null" hasNext="true" xPos="0.006782945736434108" yPos="0.0945945945945946">
<id>
<![CDATA[null]]>
</id>
<message>
<![CDATA[アリスのチュートリアルにようこそ!このチュートリアルはアリスの初歩にしょうかいします。]]>
</message>
<message>
<![CDATA[続けるために「次へ」をクリックして下さい]]>
</message>
</note>
</stencil>[/CODE]
Continues in similar style.

djslater107 07-21-2012 09:26 AM

Translating Alice
 
Previous posts do a very nice job of explaining the process of changing Alice to other languages, but note that these modifications will not affect the gallery. Each model in the gallery, and each of the model's sub-parts has to be individually translated.

For those who would be interested in taking on this task, let me know and I can send you a document explaining the process.

August 3 we will be releasing new version of Alice, Alice 2.3, which has a Spanish language option. This means that you will be able to use Alice in Spanish by choosing an option in preferences. Thanks to our partners in Costa Rica, the gallery will also be in Spanish.

Let us know if you would

edem 07-23-2012 11:26 AM

Re: Translating Alice
 
I would be interested to help translate Alice in French. Feel free to email me if there is such project in the works.

[QUOTE=djslater107;50533]Previous posts do a very nice job of explaining the process of changing Alice to other languages, but note that these modifications will not affect the gallery. Each model in the gallery, and each of the model's sub-parts has to be individually translated.

For those who would be interested in taking on this task, let me know and I can send you a document explaining the process.

August 3 we will be releasing new version of Alice, Alice 2.3, which has a Spanish language option. This means that you will be able to use Alice in Spanish by choosing an option in preferences. Thanks to our partners in Costa Rica, the gallery will also be in Spanish.

Let us know if you would[/QUOTE]


All times are GMT -5. The time now is 10:46 AM.

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.