#11302 NORM 11.3.0: 11.3.0 activity updates for translations

Zarro Boogs per Child bugtracker at laptop.org
Fri Oct 21 00:27:50 EDT 2011

#11302: 11.3.0 activity updates for translations
           Reporter:  dsd            |       Owner:  dsd          
               Type:  defect         |      Status:  new          
           Priority:  normal         |   Milestone:  11.3.0       
          Component:  build-system   |     Version:  not specified
         Resolution:                 |    Keywords:               
        Next_action:  test in build  |    Verified:  0            
Deployment_affected:                 |   Blockedby:               
           Blocking:                 |  

Comment(by cjl):

 Tested in build 882:

  Updated translations only:

 >Ruler 13: string "Use this ruler from the outside edge of the computer"
  not translated in Spanish.

 Not sure why the Sept 20th commit only had 5 strings, but I've committed
 the 6 string version.  New build of Ruler will pick up this string.


 >Stopwatch 12: the activity name is CronóMetro but it should be

 This was probably done to match the CamelCase of the activity name
 StopWatch, but I've changed it as requested and re-committed PO.


 >Minor fixes with translation updates:

  Finance: "Next Year" must be "Año siguiente", not "Siguiente Año".  The
 same for "Previous Year", should be "Año anterior", not "Anterior Año".
 And also "This Year" should be "Este año", not "Esto Año".

 This is an internationalization error in the activity.  It assumes an
 English-like syntax of adjective (previous/this/next) + self.period (day,
 week, year, forever)

 Lines 454-457 of finance.py

 # Update the label self.period to reflect the period.
 self.prevperiodbtn.set_tooltip(_('Previous') + ' ' + self.period)
 self.thisperiodbtn.set_tooltip(_('This') + ' ' + self.period)
 self.nextperiodbtn.set_tooltip(_('Next') + ' ' + self.period)

 Lines 388-402 of finance.py

 def update_header(self):

 if self.period == _('Day'):
         text = self.period_start.strftime("%B %d, %Y")
 elif self.period == _('Week'):
         text = _('Week of') + self.period_start.strftime(" %B %d, %Y")
 elif self.period == _('Month'):
         text = self.period_start.strftime("%B, %Y")
 elif self.period == _('Year'):
         text = self.period_start.strftime("%Y")
 elif self.period == _('Forever'):
         text = _('Forever')

 There seems to be a similar erroneous compositing of strings with fixed
 syntax at Lines 227-234 of finance.py

 Proper internationalization practice would not use concatenated strings.
 It is preferred to spell out all of the permutations to allow the
 localizers to correctly represent the output string in their native
 language's syntactic structure, even if this means more strings to work

 New ticket filed on this:


 >Measure 34: is not translated to Spanish

 Measure 34 was generated Sep 29th, there was massive commit of PO files on
 Oct 4th and release of Measure 35 followed immediately.  I suggest using
 version 35.


 >Terminal 35: Several strings are not translated to Spanish, "Become
 Root", and everything in the View and Tabs subtoolbars.

 This is very odd, the string is present in the .xo package for version 35,
 are you sure you didn't look at version 34?

 Committed to git Sep 20th by gonzalo


 >Major translation updates:

 >Image Viewer 18: is not translated to Spanish

 This is very odd, the string is present in the .xo package for version 18,
 are you sure you didn't look at version 17?

 Image Viewer 18

 Committed to git Sep 21th by gonzalo


 >Clock and Help are not in the list, but the activitie's name aren't
  translated to Spanish also.

 Although the string "Clock" is localized in the PO file, the location
 string is "clock.py:208" and does not contain the usual
 "activity/activity.info:2" location that signifies the Activity name.  I'm
 not sure why this is.  Perhaps the POT generation needs to be checked.

 Help is not localized in Pootle, so I cannot comment on it
 authoritatively, but it might have a similar issue.


Ticket URL: <http://dev.laptop.org/ticket/11302#comment:4>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list