[Localization] Sugar errors when language set to Khmer

Sayamindu Dasgupta sayamindu at gmail.com
Tue Jun 30 15:53:53 EDT 2009


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
>



-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]


More information about the Localization mailing list