Edgewall Software

Changes between Version 90 and Version 91 of TracL10N


Ignore:
Timestamp:
Apr 25, 2010, 4:26:00 PM (14 years ago)
Author:
Christian Boos
Comment:

emphasize caveat about Genshi groups and other clean-ups

Legend:

Unmodified
Added
Removed
Modified
  • TracL10N

    v90 v91  
    136136}}}
    137137
    138 Note that you need to have to keep the parameters names from `msgid`
    139 in `msgstr`, although you can reorder them as needed.
     138Note that **you need to keep the same set of parameters in `msgid`
     139and `msgstr`, both for the name and the keyword** (i.e. don't
     140replace a `%(id)s` with a `%(id)d`), although you can reorder them as needed.
     141
    140142
    141143Another example, here's how a structured message looks like:
     
    154156(this is Genshi specific).
    155157It is important to keep the same semantic structure.
    156 As with message parameters, the groups can be reordered but you should
    157 have the same groups in msgid and msgstr.
     158As with message parameters, the groups can be reordered but **you should
     159have the same groups in `msgid` and `msgstr`** (see for example r9553).
    158160
    159161Of course, you can have messages that combine markup groups and
     
    193195  many `msgstr[]` as needed.
    194196
    195 ''Note: '' there are some problems with Genshi and Babel when all the `msgstr[]` need to have the same content. Also, Babel seems to handle well different parameters for msgid and msgid_plural, whereas `msgfmt` complains about those.
    196 {{{
    197 #!comment
    198 File that bug report ;-)
    199 
    200 progress bar macros
    201 
    202 #: trac/templates/macros.html:214
    203 #, python-format
    204 msgid "%(num)s of %(total)s %(unit)s %(title)s"
    205 msgid_plural "%(num)s of %(total)s %(units)s %(title)s"
    206 msgstr[0] "%(num)s %(unit)s « %(title)s » sur %(total)s"
    207 msgstr[1] "%(num)s %(units)s « %(title)s » sur %(total)s"
    208 
    209 #: trac/templates/macros.html:227
    210 #, python-format
    211 msgid "%(title)s %(unit)s:"
    212 msgid_plural "%(title)s %(units)s:"
    213 msgstr[0] "%(unit)s « %(title)s » :"
    214 msgstr[1] "%(units)s « %(title)s » :"
    215 
    216 #: trac/templates/macros.html:237
    217 #, python-format
    218 msgid "Total %(unit)s:"
    219 msgid_plural "Total %(units)s:"
    220 msgstr[0] "%(unit)s au total :"
    221 msgstr[1] "%(units)s au total :"
    222 
    223 
    224 -- cboos
    225 }}}
    226197
    227198