View Single Post
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 07-20-2012, 05: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>>",
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>>",
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>
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>
Continues in similar style.
   
Reply With Quote