Wait, there is already in-image support to obtain the current locale and language setting.
Did you try Locale current ? (and there is a setting to enable its obtention automatically on startup). Actually if somebody uses it for real and tests it well that would be a big +1 :) Guille El vie., 3 de jul. de 2015 a la(s) 11:23 a. m., Thierry Goubier < thierry.goub...@gmail.com> escribió: > 2015-07-03 11:06 GMT+02:00 jannik laval <jannik.la...@gmail.com>: > >> >> >> 2015-07-03 11:01 GMT+02:00 Thierry Goubier <thierry.goub...@gmail.com>: >> >>> >>> >>> 2015-07-03 10:51 GMT+02:00 jannik laval <jannik.la...@gmail.com>: >>> >>>> Hi Thierry, >>>> >>>> It is a choice :) >>>> Scratch uses the scratch plugin to do that. >>>> In phratch, I removed the scratch plugin, to be sure to be compatible >>>> with platforms where it is not available. >>>> >>> >>> Ok. I need to have a deeper look into all this (like why phratch doesn't >>> has the sound working on linux). My daughters are using scratch at the >>> moment, and we're planning scratch-type of things around fablab-type >>> activities, so it would be good to do Phratch instead. >>> >> >> Yes, does she try to load the sound addon ? >> Normally, sound should work on the latest pharo VM, but I did not try it. >> > > I'll have a try. There is a CI for Phratch? I'm on Ubuntu 15.04, so I > can't use the pharo ppa to install Phratch. > > >> >> >>> >>> And I want to control my daughter's Lego with Phratch via bluetooth ;) >>> >> >> Yes, we have some problems with Linux and bluetooth... but we will fix it >> soon, i hope. >> > > What is missing? There is some in-house expertise on using serial ports > from within Pharo, and, from what I could see from the Mindstorm > documentation, a Lego Mindstorm should appear as a serial device. > > >> >>> >>> >>>> Maybe, we can reintroduce it using OSProcess or NativeBoost. >>>> >>> >>> Yes, I've seen that you load OSProcess in Phratch, so it means we can >>> rely on it. NativeBoost has access to the environment variables, and it >>> would be to use LANG. >>> >>> >>>> If you have a code snippet, I can use it. >>>> >>> >>> I don't know enough about Phratch source code to propose anything yet. >>> LANG value on my system is probably typical and is 'fr_FR.UTF-8'; how would >>> that match Phratch language settings ? >>> >> >> phratch uses the .po files, like scratch. So, the string sent by your >> system should be uderstandable by phratch. >> > > Ok. I'll have a look then. > > Thierry > > >> >> Jannik >> >> >>> >>> Regards, >>> >>> Thierry >>> >> >> >> >> -- >> >> ~~Jannik Laval~~ >> École des Mines de Douai >> Enseignant-chercheur >> http://www.jannik-laval.eu >> http://www.phratch.com >> http://www.approchealpes.info >> http://car.mines-douai.fr/ >> >