I think is a nice feature to have.<div>The tricky part should be how solve the UI.</div><div>Probably, can be done if we implement the new launcher screen,</div><div>instead of the menu in the home and the flashing animation.</div>
<div><br></div><div>Gonzalo</div><div><br></div><div><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 7:20 AM, Simon Schampijer <span dir="ltr"><<a href="mailto:simon@schampijer.de" target="_blank">simon@schampijer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
when talking about the 'grab watch hands' feature [1] in the Clock activity I came across the desire to show the written clock information (e.g. ten minutes to 10 am) in different languages.<br>
<br>
To make that easily manageable without reloading translations on run-time I was wondering if there would be a general desire to run activities in different locales independent from the system. One scenario would be that a teacher in a Spanish speaking country would start the Clock activity in the English locale to teach the clock in English.<br>
<br>
The question is, if starting an activity in a different locale than the system locale that would be an interesting feature in general. Advantages would be that the locale of the system does not change, making experimenting with languages not as disruptive. Would people think that would be a pedagogical interesting feature?<br>
<br>
Technically, one of doing this would be to set the 'LANG/LANGUAGE' env variable in sugar-activity, reading the config from a system file. That file could be modified in an activity section (e.g. control panel or the activity list view...)<br>
<br>
diff --git a/bin/sugar-activity b/bin/sugar-activity<br>
index abaa091..070a196 100644<br>
--- a/bin/sugar-activity<br>
+++ b/bin/sugar-activity<br>
@@ -104,6 +104,8 @@ def main():<br>
os.environ['SUGAR_BUNDLE_ID'] = bundle.get_bundle_id()<br>
os.environ['SUGAR_BUNDLE_NAME'<u></u>] = bundle.get_name()<br>
os.environ['SUGAR_BUNDLE_<u></u>VERSION'] = str(bundle.get_activity_<u></u>version())<br>
+ os.environ['LANG'] = 'de_DE'<br>
+ os.environ['LANGUAGE'] = 'de_DE'<br>
<br>
# must be done early, some activities set translations globally, SL #3654<br>
locale_path = i18n.get_locale_path(bundle.<u></u>get_bundle_id())<br>
<br>
<br>
Regards,<br>
Simon<br>
<br>
[1] <a href="http://bugs.sugarlabs.org/ticket/1959" target="_blank">http://bugs.sugarlabs.org/<u></u>ticket/1959</a><br>
______________________________<u></u>_________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.<u></u>org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/<u></u>listinfo/sugar-devel</a><br>
</blockquote></div><br></div>