[Localization] Sugar errors when language set to Khmer

Philipp Kocher philipp.kocher at gmx.net
Wed Jul 1 06:19:19 EDT 2009


Hi

It works fine with the new language pack.
Thanks very much for the fast fix.

I will have a look at the red crosses.

Regards,
Philipp

Sayamindu Dasgupta wrote:
> Hello,
> I just corrected some of the problematic translations - to install the
> uploaded translations, please download
> http://people.sugarlabs.org/sayamindu/langpacks/8.2/km_lang_pack_v2.sh
> and run it as root user on the XO (it will backup the old translations
> and install the new ones).
> 
> The relevant links: http://translate.sugarlabs.org/km/fructose82/,
> http://translate.sugarlabs.org/km/glucose82/,
> http://translate.sugarlabs.org/km/honey/ : crosses beside a particular
> filename indicates that the translations are not formatted correctly.
> 
> Let me know if this solves your problem.
> 
> Thanks,
> Sayamindu
> 
> On Tue, Jun 30, 2009 at 2:23 PM, Philipp Kocher<philipp.kocher at gmx.net> wrote:
>> Hi
>>
>> After switching the language in sugar to Khmer I get an errors when I try to
>> erase an activity from the home view (see error in HomeBox.py below) and
>> when I try to install an activity or library with "sugar-control-panel -s
>> install_update all" (see error in updater.py below).
>>
>> Sugar is not completely translated to Khmer, but that shouldn't cause the
>> errors.
>>
>> Any hints how to fix the two problems?
>>
>> /usr/share/sugar/shell/view/home/HomeBox.py in
>> __erase_activated_cb(self=<HomeBox object at 0x89ad464 (SugarHomeBox at
>> 0x8a8d900)>, view=<FavoritesView object at 0x89ad4b4 (SugarFavoritesView at
>> 0x89edb90)>, bundle_id='vu.lux.olpc.Speak')
>>     80         alert.props.msg = \
>>     81                 _('Confirm erase: Do you want to permanently erase
>> %s?') \
>> ---> 82                 % activity_info.name
>>        activity_info.name = dbus.String(u'Speak', variant_level=1)
>>     83
>>     84         cancel_icon = Icon(icon_name='dialog-cancel')
>>
>> TypeError: not all arguments converted during string formatting
>>
>>
>>
>> Failure updating NatureImages None
>> file:///media/PHILIPP/xo_kh/Activities//bundles/NatureImages-8.xol
>> Traceback (most recent call last):
>>  File "/usr/share/sugar/shell/controlpanel/model/updater.py", line 442, in
>> refresh
>>    refresh_new(row)
>>  File "/usr/share/sugar/shell/controlpanel/model/updater.py", line 425, in
>> refresh_new
>>    {'version':version, 'size':_humanize_size(row[UPDATE_SIZE])}
>>  File "/usr/share/sugar/shell/controlpanel/model/updater.py", line 70, in
>> _humanize_size
>>    return locale.format(_("%.1f MB"), bytes / 1024 / 1024)
>>  File "/usr/lib/python2.5/locale.py", line 145, in format
>>    formatted = percent % value
>> ValueError: unsupported format character '�' (0xffffffe1) at index 2
>>
>> Thanks,
>> Philipp
>>
> 
> 
> 



More information about the Localization mailing list