Edgewall Software

Changeset 9456


Ignore:
Timestamp:
Apr 10, 2010, 10:22:40 PM (13 years ago)
Author:
Christian Boos
Message:

Follow-up to r9454, Genshi extraction of gettext expressions won't work when those calls are located within an i18n:msg. The obvious workaround of moving these calls outside within a py:with won't work either (#G380).

Fortunately, when using a <?python ?> PI, it works…

Location:
trunk/trac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/trac/locale/messages.pot

    r9455 r9456  
    99"Project-Id-Version: Trac 0.12\n"
    1010"Report-Msgid-Bugs-To: trac-dev@googlegroups.com\n"
    11 "POT-Creation-Date: 2010-04-10 19:44+0200\n"
     11"POT-Creation-Date: 2010-04-10 22:16+0200\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    51685168
    51695169#: trac/wiki/templates/wiki_rename.html:32
    5170 #: trac/wiki/templates/wiki_view.html:105
     5170#: trac/wiki/templates/wiki_view.html:108
    51715171msgid "Rename page"
    51725172msgstr ""
    51735173
    5174 #: trac/wiki/templates/wiki_view.html:14 trac/wiki/templates/wiki_view.html:81
     5174#: trac/wiki/templates/wiki_view.html:14 trac/wiki/templates/wiki_view.html:84
    51755175msgid "Edit this page"
    51765176msgstr ""
     
    51855185#: trac/wiki/templates/wiki_view.html:47
    51865186#, python-format
    5187 msgid ""
    5188 "[1:\n"
    5189 "              Last modified] %(reldate)s ago"
    5190 msgstr ""
    5191 
    5192 #: trac/wiki/templates/wiki_view.html:58
     5187msgid "Version %(version)s by %(author)s: %(comment)s"
     5188msgstr ""
     5189
     5190#: trac/wiki/templates/wiki_view.html:47
     5191#, python-format
     5192msgid "Version %(version)s by %(author)s"
     5193msgstr ""
     5194
     5195#: trac/wiki/templates/wiki_view.html:54
     5196#, python-format
     5197msgid "[1:Last modified] %(reldate)s ago"
     5198msgstr ""
     5199
     5200#: trac/wiki/templates/wiki_view.html:61
    51935201msgid "The page"
    51945202msgstr ""
    51955203
    5196 #: trac/wiki/templates/wiki_view.html:58
     5204#: trac/wiki/templates/wiki_view.html:61
    51975205msgid "does not exist. You can create it here."
    51985206msgstr ""
    51995207
    5200 #: trac/wiki/templates/wiki_view.html:60
     5208#: trac/wiki/templates/wiki_view.html:63
    52015209msgid "You could also create the same page higher in the hierarchy:"
    52025210msgstr ""
    52035211
    5204 #: trac/wiki/templates/wiki_view.html:84
     5212#: trac/wiki/templates/wiki_view.html:87
    52055213msgid "Create this page"
    52065214msgstr ""
    52075215
    5208 #: trac/wiki/templates/wiki_view.html:86
     5216#: trac/wiki/templates/wiki_view.html:89
    52095217msgid "Using the template:"
    52105218msgstr ""
    52115219
    5212 #: trac/wiki/templates/wiki_view.html:89
     5220#: trac/wiki/templates/wiki_view.html:92
    52135221msgid "(blank page)"
    52145222msgstr ""
    52155223
    5216 #: trac/wiki/templates/wiki_view.html:114
     5224#: trac/wiki/templates/wiki_view.html:117
    52175225msgid "Delete this version"
    52185226msgstr ""
    52195227
    5220 #: trac/wiki/templates/wiki_view.html:116
     5228#: trac/wiki/templates/wiki_view.html:119
    52215229msgid "Delete page"
    52225230msgstr ""
    52235231
    5224 #: trac/wiki/templates/wiki_view.html:125
     5232#: trac/wiki/templates/wiki_view.html:128
    52255233msgid "The following pages have a name similar to this page, and may be related:"
    52265234msgstr ""
  • trunk/trac/wiki/templates/wiki_view.html

    r9454 r9456  
    4545      <div class="wikipage searchable" py:choose="" xml:space="preserve">
    4646        <py:when test="page.exists">
     47          <?python
     48            last_modification = (page.comment and
     49                 _('Version %(version)s by %(author)s: %(comment)s',
     50                   version=page.version, author=format_author(page.author), comment=page.comment) or
     51                 _('Version %(version)s by %(author)s',
     52                   version=page.version, author=format_author(page.author)))
     53          ?>
    4754          <div py:if="not version" class="trac-modifiedby" i18n:msg="reldate">
    4855            <a href="${href.wiki(page.name, action='diff', version=page.version)}"
    49                title="${page.comment and _('Version %(version)s by %(author)s: %(comment)s',
    50                                            version=page.version, author=format_author(page.author), comment=page.comment)
    51                                      or _('Version %(version)s by %(author)s',
    52                                           version=page.version, author=format_author(page.author))}">
    53               Last modified</a> ${dateinfo(page.time)} ago
     56               title="$last_modification">Last modified</a> ${dateinfo(page.time)} ago
    5457          </div>
    5558          <div id="wikipage" py:content="wiki_to_html(context, text)" />
Note: See TracChangeset for help on using the changeset viewer.