Changes between Version 90 and Version 91 of TracL10N
- Timestamp:
- Apr 25, 2010, 4:26:00 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracL10N
v90 v91 136 136 }}} 137 137 138 Note that you need to have to keep the parameters names from `msgid` 139 in `msgstr`, although you can reorder them as needed. 138 Note that **you need to keep the same set of parameters in `msgid` 139 and `msgstr`, both for the name and the keyword** (i.e. don't 140 replace a `%(id)s` with a `%(id)d`), although you can reorder them as needed. 141 140 142 141 143 Another example, here's how a structured message looks like: … … 154 156 (this is Genshi specific). 155 157 It is important to keep the same semantic structure. 156 As with message parameters, the groups can be reordered but you should157 have the same groups in msgid and msgstr.158 As with message parameters, the groups can be reordered but **you should 159 have the same groups in `msgid` and `msgstr`** (see for example r9553). 158 160 159 161 Of course, you can have messages that combine markup groups and … … 193 195 many `msgstr[]` as needed. 194 196 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 #!comment198 File that bug report ;-)199 200 progress bar macros201 202 #: trac/templates/macros.html:214203 #, python-format204 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:227210 #, python-format211 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:237217 #, python-format218 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 -- cboos225 }}}226 197 227 198