#5023 NORM Never A: tokenized Calculate.pot

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 19 22:43:15 EST 2007


#5023: tokenized Calculate.pot
----------------------------------+-----------------------------------------
  Reporter:  xavi                 |       Owner:  rwh           
      Type:  defect               |      Status:  new           
  Priority:  normal               |   Milestone:  Never Assigned
 Component:  calculator-activity  |     Version:                
Resolution:                       |    Keywords:  i18n Pootle   
  Verified:  0                    |  
----------------------------------+-----------------------------------------

Comment(by xavi):

 If tokens are preferred, a possibility is to make the text to be
 translated be the '''comment''' (NOTE: this is something that defeats the
 fallback mechanism built into gettext that defaults to the original string
 if no translation is found). An example can be found in
 [http://dev.laptop.org/git?p=journal-
 activity;a=blob;f=journaltoolbox.py;h=e77cbf6a6dc6022f292921e7ea4b5a17f94aa482;hb=HEAD#l130
 journaltoolbox.py:130], that generates the following in the POT:

 {{{
 #. TRANS: Filter entries modified during the last 30 days.
 #: journaltoolbox.py:130
 msgid "Past month"
 msgstr ""
 }}}

 See: [http://dev.laptop.org/git?p=journal-
 activity;a=history;f=journaltoolbox.py;h=e77cbf6a6dc6022f292921e7ea4b5a17f94aa482;hb=HEAD
 journaltoolbox.py] or [http://dev.laptop.org/git?p=journal-
 activity;a=history;f=po/Journal.pot;h=2ca2cda8ddbcc3a2b06b13cbbd9c264478aeab57;hb=HEAD
 Journal.pot]

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



More information about the Bugs mailing list