Issue Details (XML | Word | Printable)

Key: SQ-100
Type: Improvement Improvement
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Scott Wallace
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
squeakland

Translate project launcher

Created: 26/Feb/09 12:09 AM   Updated: 17/May/11 06:00 AM
Component/s: translation, website
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
From TRAC 8440 (bert)

When showing an Etoys project in the browser under Sugar, the page displayed is in English. It should be translated.

There should be a po file with the strings. Then we could convert to json which could be embedded in the launcher page script. This one seems to be BSD licensed: http://code.google.com/p/asynapse/source/browse/trunk/perl/Asynapse/bin/po2json.pl

Not sure if we can access the Browser's language tag from javascript, possibly we have to generate the language tage on server-side and insert as variable to the script.


teefal added a comment - 07/Apr/09 04:04 PM
Do you mean:

1) the text outside the plugin should be i18n

2) we should pass a language variable into the plugin

3) something else

Bert Freudenberg added a comment - 13/Oct/09 10:20 AM
This is about the English strings in http://squeakland.org/launcher which are displayed under Sugar offering to download instead of embedding the project.

Bert Freudenberg added a comment - 17/May/11 06:00 AM
Almost fixed now, using a modified JavaScript launcher. Sources and translations are at
    https://github.com/bertfreudenberg/etoys-plugin-launcher
We now have Spanish and German translations at
    http://squeakland.org/launcher
Possible improvements:
* make non-latin languages work. This means switching to UTF-8 content type, but not sure how to do that for a single page.
* use server-side language detection. Currently it uses the navigator.language property which reports the user's system language, not the browser's preferred languages.