LANG environment variable not set when switching language in SOAS4 /SOAS5 / SOAS6 / Blueberry

Bug #481407 reported by Carlo Falciola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sugar on a Stick
New
Undecided
Unassigned

Bug Description

LANG environment variable seems not set when switching language in SOAS4
 tested with Italian and French locale on an usb stick created with liveusb-creator-3.7.1 for windows.

This imply thats:
- Turtleart do not find correct strings for the palette components (dynamically generated on first activation)
- Activity names in Sugar home view (list and circle) are shown in english.

ciao carlo

Revision history for this message
Carlo Falciola (cfalciola) wrote :

Same in soas05.iso

Revision history for this message
Carlo Falciola (cfalciola) wrote :

Maybe relate to
Ticket #614 (new defect) fail gracefully if LANG isn't set

Revision history for this message
Sebastian Dziallas (sdziallas) wrote :

I guess it's a Sugar bug in the language switcher...

Revision history for this message
Carlo Falciola (cfalciola) wrote :

Maybe...
 In the Trisquel Toast it works fine, and in the XO too...

Revision history for this message
Carlo Falciola (cfalciola) wrote :

I also tried to make a check on the source code and everiwhere I saw the LANGUAGE env var to be set by sugar the LANG env var seems to be set too, more or less in the same way, at least as my low python skills let me understand...

ciao carlo

summary: - LANG environment variable seems not set when switching language in
- SOAS4
+ LANG environment variable seems not set when switching language in SOAS4
+ /SOAS5
Revision history for this message
Carlo Falciola (cfalciola) wrote : Re: LANG environment variable seems not set when switching language in SOAS4 /SOAS5

Suspect that this is also the main reason for jigsaw-puzzle Activity not showing available (italian) transaltion

summary: LANG environment variable seems not set when switching language in SOAS4
- /SOAS5
+ /SOAS5 / SOAS6
Revision history for this message
Carlo Falciola (cfalciola) wrote : Re: LANG environment variable seems not set when switching language in SOAS4 /SOAS5 / SOAS6

I made Ia few test with the Blueberry release:
1 - the LANG variable is not set there when switching with the sugar control panel.
2 - Then I tried to set it manually in the
                 /etc/sysconfig/i18n file with LANG=it_IT.UTF-8
 then everything works fine, turleart, activities name, etc....

3 - made the same test with Trisquel and I realized that it uses a diffeent file in a different place:
 /etc/locale.gen in wich appears the LANG setting .

my question is
How can Sugar knows upstream all the possible location&names of file in wich to set the LANG environment variable?
What I'm missing?
Is there a standard command invoked by Sugar to set it in a distro independent way?

tahnks for your help
ciao carlo

summary: - LANG environment variable seems not set when switching language in SOAS4
- /SOAS5 / SOAS6
+ LANG environment variable not set when switching language in SOAS4
+ /SOAS5 / SOAS6 / Blueberry
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.