308
edits
Line 43: | Line 43: | ||
The magic happens when we then try to use this command in another language, like French: "move truck de Paris à London". Parser 2 will identify the French goal and French source and hand it to your command. You don't even need to know any French to get the basic command working in French. The same goes for other languages, including languages that look very different, like Japanese ("truckをParisからLondonへmove"). | The magic happens when we then try to use this command in another language, like French: "move truck de Paris à London". Parser 2 will identify the French goal and French source and hand it to your command. You don't even need to know any French to get the basic command working in French. The same goes for other languages, including languages that look very different, like Japanese ("truckをParisからLondonへmove"). | ||
By using semantic roles to identify arguments, your commands will automatically be functional in other languages. All that remains to be localized, then, is the name of your verb and other metadata, as well as strings in the <code>preview</code> and <code>execute</code> code. Read more about [[Ubiquity_0.5_Command_Localization_Tutorial|localizing commands]] and [[Ubiquity_0.5_Making_Commands_Localizable|making commands localizable]]. | By using semantic roles to identify arguments, your commands will automatically be functional in other languages. All that remains to be localized, then, is the name of your verb and other metadata, as well as strings in the <code>preview</code> and <code>execute</code> code. Read more about [[Labs/Ubiquity/Ubiquity_0.5_Command_Localization_Tutorial|localizing commands]] and [[Labs/Ubiquity/Ubiquity_0.5_Making_Commands_Localizable|making commands localizable]]. | ||
== Reference == | == Reference == |
edits