Opened 7 years ago

Closed 6 years ago

Last modified 20 months ago

#10372 closed defect (fixed)

Activities list view crashes in Arabic

Reported by: cjb Owned by: erikos
Priority: normal Milestone:
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



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/", 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 7 years ago.
Patch against 0.84

Download all attachments as: .zip

Change History (8)

comment:1 Changed 7 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 7 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):

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

Changed 7 years ago by erikos

Patch against 0.84

comment:3 Changed 6 years ago by erikos

  • Cc greenfeld added; erikos removed

comment:4 Changed 6 years ago by erikos

  • Action Needed changed from package to test in build

comment:5 Changed 6 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 6 years ago by cjl

  • Blocking 6808 added

comment:7 Changed 20 months ago by Quozl

  • Milestone 10.1.3 deleted

Milestone 10.1.3 deleted

Note: See TracTickets for help on using tickets.