Opened 4 years ago

Closed 4 years ago

#10372 closed defect (fixed)

Activities list view crashes in Arabic

Reported by: cjb Owned by: erikos
Priority: normal Milestone: 10.1.3
Component: sugar-toolkit Version: 1.5/1.0 Software Build os852 aka 10.1.2
Keywords: Cc: greenfeld
Blocked By: Blocking: #6808
Deployments affected: Action Needed: no action
Verified: no

Description

Hi,

On Arabic machines (LANG=ar_SY.UTF-8) the activities list view is always empty. shell.log contains:

  File "/usr/lib/python2.6/site-packages/sugar/util.py", line 251, in timestamp_to_elapsed_string
    elapsed_units) % elapsed_units
TypeError: not all arguments converted during string formatting

Perhaps a translation is missing?

Attachments (1)

0001-If-the-string-does-not-contain-a-conversion-specifie.patch (1.5 KB) - added by erikos 4 years ago.
Patch against 0.84

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by erikos

  • Component changed from sugar to sugar-toolkit

We have that issue as well in master so I filed as well SL #2354.

And it effects the Activities list and the Journal.

We fail here, since the translation pulled does not have a '%d'. Looking at pootle there are strings that look wrong. I mailed the localization list for feedback.

On a second note, we might need to make the code more robust. I will have a look at a similar issue that has been reported in python.

comment:2 Changed 4 years ago by erikos

  • Action Needed changed from diagnose to package
  • Milestone changed from Not Triaged to 10.1.3
  • Owner changed from cjb to erikos

Sam, can you please test that rpm with (LANG=ar_SY.UTF-8):
http://dev.laptop.org/~erikos/F11_rpms/sugar-toolkit-0.84.12-2.fc11.i586.rpm

The activities list view should be displayed correctly. Furthermore the Journal main view should display correctly as well.

Changed 4 years ago by erikos

Patch against 0.84

comment:3 Changed 4 years ago by erikos

  • Cc greenfeld added; erikos removed

comment:4 Changed 4 years ago by erikos

  • Action Needed changed from package to test in build

comment:5 Changed 4 years ago by greenfeld

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from new to closed

Verified in 10.1.3 os351 that the activities list and the journal view do not crash in Arabic.

comment:6 Changed 4 years ago by cjl

  • Blocking 6808 added
Note: See TracTickets for help on using tickets.