[Bugs] #2354 UNSP: Activities list view and Journal view crashes in Arabic

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Sep 24 05:03:21 EDT 2010

#2354: Activities list view and Journal view crashes in Arabic
    Reporter:  erikos                     |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit              |        Version:  0.90.x                     
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                

Comment(by erikos):

 Replying to [comment:7 dsd]:
 > I think you should add a comment in the code explaining this oddity.
 (after reading this bug for a 2nd time I'm still not really understanding
 the issue here -- no doubt I'm just missing something that could be
 explained in a comment)

 Ok, I added a comment and note the ticket.

 So the issue we are handling is that, the original string is something
 like "%d months' that gets as well into the .po files. So, some languages
 do have several plural forms and in some cases do not need to specify the
 number at all since the information is included in the word itself. The
 translators agreed at some point to put zero length strings in the
 translations in those cases. And our code does not handle those cases as
 formatting does fail then.

 This is only a fix for 0.84-0.90. In 0.92 we will use dictionaries as
 [http://bugs.sugarlabs.org/ticket/2354?replyto=7#comment:4 Sascha has
 pointed out] and which was the conclusion in the
 [http://bugs.python.org/issue8359#msg103023 python bug] as well as the
 format() method for strings seem not to handle this case correctly, yet.

 Hopes this explains it a bit better.

Ticket URL: <http://bugs.sugarlabs.org/ticket/2354#comment:8>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system

More information about the Bugs mailing list