[Sugar-devel] Sugar no me permite cambiar el idioma.
Gonzalo Odiard
godiard at sugarlabs.org
Wed Jul 1 15:42:46 EDT 2015
Right, in that case have sense the traceback sent by Alejandro.
Filled a ticket http://bugs.sugarlabs.org/ticket/4868 and sent
a pr https://github.com/sugarlabs/sugar/pull/547
2015-07-01 16:25 GMT-03:00 Walter Bender <walter.bender at gmail.com>:
>
> 2015-07-01 14:48 GMT-04:00 Gonzalo Odiard <godiard at sugarlabs.org>:
>
>> But in that case, the file will no be found and will do
>>
>>
>> https://github.com/sugarlabs/sugar/blob/master/extensions/cpsection/language/model.py#L100
>>
>> Right?
>>
>
> If the file exists but is, for example, empty, or has malformed data, it
> will skip the test at L100.
>
> -walter
>
>
>>
>> 2015-06-30 18:53 GMT-03:00 Walter Bender <walter.bender at gmail.com>:
>>
>>> FWIW, if the $HOME env. variable is malformed, then there is the
>>> possibility that neither the test at [1] or [2] will be triggered,
>>> resulting in an error as Alejandro experienced. We should probably add a
>>> check or default value.
>>>
>>> -walter
>>>
>>>
>>> [1]
>>> https://github.com/sugarlabs/sugar/blob/master/extensions/cpsection/language/model.py#L115
>>> [2]
>>> https://github.com/sugarlabs/sugar/blob/master/extensions/cpsection/language/model.py#L121
>>>
>>> 2015-06-30 16:31 GMT-04:00 Alejandro Calderón <acalderon at fundaorth.org>:
>>>
>>>> Excelente Germán, también me funciono esa :)
>>>>
>>>> El 30 de junio de 2015, 15:25, Gonzalo Odiard <godiard at sugarlabs.org>
>>>> escribió:
>>>>
>>>>> Perfecto :)
>>>>>
>>>>> 2015-06-30 17:23 GMT-03:00 Alejandro Calderón <acalderon at fundaorth.org
>>>>> >:
>>>>>
>>>>>> Súper, gracias Gonzalo, con eso se resolvió.
>>>>>>
>>>>>> Saludos! :)
>>>>>>
>>>>>>
>>>>>> El 30 de junio de 2015, 15:18, Gonzalo Odiard <godiard at sugarlabs.org>
>>>>>> escribió:
>>>>>>
>>>>>>> Debería tener dos líneas:
>>>>>>>
>>>>>>> LANG="es_CO.utf8"
>>>>>>> LANGUAGE="es_CO.utf8"
>>>>>>>
>>>>>>>
>>>>>>> 2015-06-30 17:09 GMT-03:00 Alejandro Calderón <
>>>>>>> acalderon at fundaorth.org>:
>>>>>>>
>>>>>>>> Misteriosamente es un archivo vacío :/
>>>>>>>>
>>>>>>>> El 30 de junio de 2015, 15:05, Gonzalo Odiard <
>>>>>>>> godiard at sugarlabs.org> escribió:
>>>>>>>>
>>>>>>>>> Si, puedes editar el archivo /home/olpc/.i18n y reemplazar donde
>>>>>>>>> dice "en_US.utf8"
>>>>>>>>> por "es_CO.utf8" (para español, Colombia)
>>>>>>>>>
>>>>>>>>> Gonzalo
>>>>>>>>>
>>>>>>>>> 2015-06-30 17:00 GMT-03:00 Alejandro Calderón <
>>>>>>>>> acalderon at fundaorth.org>:
>>>>>>>>>
>>>>>>>>>> Creo que si, el asunto es que estas máquinas tienen nuestro build
>>>>>>>>>> personalizado, aunque son unas pocas, existe forma de cambiar el idioma a
>>>>>>>>>> Sugar por terminal?
>>>>>>>>>>
>>>>>>>>>> El 30 de junio de 2015, 14:57, Gonzalo Odiard <
>>>>>>>>>> godiard at sugarlabs.org> escribió:
>>>>>>>>>>
>>>>>>>>>>> Podrías probar instalar la version 13.2.3 ?
>>>>>>>>>>>
>>>>>>>>>>> http://wiki.laptop.org/go/Release_notes/13.2.3#XO-1.75_2
>>>>>>>>>>>
>>>>>>>>>>> 2015-06-30 16:54 GMT-03:00 Alejandro Calderón <
>>>>>>>>>>> acalderon at fundaorth.org>:
>>>>>>>>>>>
>>>>>>>>>>>> Hola Gonzalo, las XO se encuentran en inglés, quisiera pasarlas
>>>>>>>>>>>> a español pero cuando presiono en el icono de Languaje no me cambia a la
>>>>>>>>>>>> pantalla de idioma, es como si no presionara ese botón.
>>>>>>>>>>>>
>>>>>>>>>>>> Te comparto una imágen de como se queda.
>>>>>>>>>>>>
>>>>>>>>>>>> [image: Imágenes integradas 1]
>>>>>>>>>>>>
>>>>>>>>>>>> El 30 de junio de 2015, 14:43, Gonzalo Odiard <
>>>>>>>>>>>> godiard at sugarlabs.org> escribió:
>>>>>>>>>>>>
>>>>>>>>>>>>> Que lenguaje seleccionas cuando te da el error?
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2015-06-30 16:32 GMT-03:00 Alejandro Calderón <
>>>>>>>>>>>>> acalderon at fundaorth.org>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hola Gonzalo, gracias por tu pronta respuesta, mi XO es una
>>>>>>>>>>>>>> 1.75, el build es 14.1.1 customized (build 3).
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Sugar: 0.102.0
>>>>>>>>>>>>>> Firmware Q4D35
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Gracias de antemano.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> El 30 de junio de 2015, 14:29, Gonzalo Odiard <
>>>>>>>>>>>>>> godiard at sugarlabs.org> escribió:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Que version de Sugar y build estás usando?
>>>>>>>>>>>>>>> (Puedes fijarte en Mis Ajustes -> Acerca de mi computdora)
>>>>>>>>>>>>>>> Por último, que idioma y pais has seleccionado?
>>>>>>>>>>>>>>> Podemos probar y ver si nos da el mismo error.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tue, Jun 30, 2015 at 4:25 PM, Alejandro Calderón <
>>>>>>>>>>>>>>> acalderon at fundaorth.org> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hola a todos.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Quisiera solicitarles ayuda debido a que algunas XO que
>>>>>>>>>>>>>>>> tenemos no nos permiten cambiar el idioma, el mensaje que recibo en los log
>>>>>>>>>>>>>>>> es el siguiente.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>>>>>>> File
>>>>>>>>>>>>>>>> "/usr/lib/python2.7/site-packages/jarabe/controlpanel/gui.py", line 372, in
>>>>>>>>>>>>>>>> __select_option_cb
>>>>>>>>>>>>>>>> self.show_section_view(option)
>>>>>>>>>>>>>>>> File
>>>>>>>>>>>>>>>> "/usr/lib/python2.7/site-packages/jarabe/controlpanel/gui.py", line 264, in
>>>>>>>>>>>>>>>> show_section_view
>>>>>>>>>>>>>>>> self._options[option]['alerts'])
>>>>>>>>>>>>>>>> File
>>>>>>>>>>>>>>>> "/usr/share/sugar/extensions/cpsection/language/view.py", line 63, in
>>>>>>>>>>>>>>>> __init__
>>>>>>>>>>>>>>>> self._selected_locales = self._model.get_languages()
>>>>>>>>>>>>>>>> File
>>>>>>>>>>>>>>>> "/usr/share/sugar/extensions/cpsection/language/model.py", line 127, in
>>>>>>>>>>>>>>>> get_languages
>>>>>>>>>>>>>>>> return [lang]
>>>>>>>>>>>>>>>> UnboundLocalError: local variable 'lang' referenced before
>>>>>>>>>>>>>>>> assignment
>>>>>>>>>>>>>>>> 1435676014.848136 WARNING root: icon_size is deprecated.
>>>>>>>>>>>>>>>> Use pixel_size instead.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> De antemano mil gracias.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Saludos!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Sugar-devel mailing list
>>>>>>>>>>>>>>>> Sugar-devel at lists.sugarlabs.org
>>>>>>>>>>>>>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Gonzalo Odiard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> SugarLabs - Software [for | by] children learning
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Gonzalo Odiard
>>>>>>>>>>>>>
>>>>>>>>>>>>> SugarLabs - Software [for | by] children learning
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Gonzalo Odiard
>>>>>>>>>>>
>>>>>>>>>>> SugarLabs - Software [for | by] children learning
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Gonzalo Odiard
>>>>>>>>>
>>>>>>>>> SugarLabs - Software [for | by] children learning
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Gonzalo Odiard
>>>>>>>
>>>>>>> SugarLabs - Software [for | by] children learning
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gonzalo Odiard
>>>>>
>>>>> SugarLabs - Software [for | by] children learning
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel at lists.sugarlabs.org
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> Walter Bender
>>> Sugar Labs
>>> http://www.sugarlabs.org
>>>
>>
>>
>>
>> --
>> Gonzalo Odiard
>>
>> SugarLabs - Software [for | by] children learning
>>
>
>
>
> --
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
>
--
Gonzalo Odiard
SugarLabs - Software [for | by] children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150701/9ea8a14a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_3932.JPG
Type: image/jpeg
Size: 27712 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150701/9ea8a14a/attachment-0001.jpe>
More information about the Sugar-devel
mailing list