On Wednesday 13 Oct 2010 12:02:05 pm commits@source.squeak.org wrote:
added multilingual Unicode environments (SQ-850)
This patch requires a postscript to reinitialize language environments and Hands:
LanguageEnvironment resetKnownEnvironments. LanguageEnvironment clearDefault. HandMorph allSubInstances do: [ :h | h clearKeyboardInterpreter]
Is it handled through an update?
Subbu
On 13.10.2010, at 02:03, K. K. Subramaniam wrote:
On Wednesday 13 Oct 2010 12:02:05 pm commits@source.squeak.org wrote:
added multilingual Unicode environments (SQ-850)
This patch requires a postscript to reinitialize language environments and Hands:
LanguageEnvironment resetKnownEnvironments. LanguageEnvironment clearDefault. HandMorph allSubInstances do: [ :h | h clearKeyboardInterpreter]
Is it handled through an update?
It could, if needed. But I'd rather use less ephemeral means.
The keyboard interpreter is set on startup, as well as the default LanguageEnvironment. So we don't need those.
I did not know about resetKnownEnvironments. Please add that to ReleaseBuilder.
Also, please check if the updated Etoys-To-Go shell script in svn works as you need it. I'll do the same change to the regular etoys script.
Sugar tarballs are due today ...
- Bert -
On Wednesday 13 Oct 2010 2:47:05 pm Bert Freudenberg wrote:
I did not know about resetKnownEnvironments. Please add that to ReleaseBuilder.
KnownEnvironments is a list that maps lang codes to language environments. It has to be recomputed everytime a language Environment (or language support to an existing environment) is modified. The actual language environment is picked from this list during locale switch.
IMHO, this should not be a global list but one which is computed at startup based on translations available (not just in the image) and the interpreters computed based on current charset encoding.
I have checked in two patches. Pick one which you feel is right.
The long term fix is to push the logic into VM and fallback to guesswork only for legacy VMs.
Subbu
etoys-dev@lists.squeakfoundation.org