Edgewall Software

Ticket #1942: fx-msgids.patch

File fx-msgids.patch, 1.7 KB (added by shoffmann, 6 months ago)

proposal to improve rather bad msgids (similar to #9159)

  • trac/ticket/templates/ticket.html

    # HG changeset patch
    # Parent 9182daf0d7da44977b96cbb5039016790c902d38
    Fix various msgids.
    
    diff --git a/trac/ticket/templates/ticket.html b/trac/ticket/templates/ticket.html
    a b  
    165165            <a id="edit" onfocus="$('#comment').get(0).focus()">Add a comment</a> 
    166166          </h2> 
    167167          <div id="trac-edit-warning" class="warning system-message" 
    168                style="${'display: none' if start_time == ticket['changetime'] else None}"> 
     168               style="${'display: none' if start_time == ticket['changetime'] else None}" 
     169               i18n:msg=""> 
    169170            This ticket has been modified since you started editing. You should review the 
    170171            <em class="trac-new">other modifications</em> which have been appended above, 
    171172            and any <em class="trac-conflict">conflicts</em> shown in the preview below. 
  • trac/versioncontrol/templates/changeset.html

    diff --git a/trac/versioncontrol/templates/changeset.html b/trac/versioncontrol/templates/changeset.html
    a b  
    137137          <dd class="time" py:choose="datetime.now(utc) - changeset.date &lt; timedelta(0, 3600)"> 
    138138             ${format_datetime(changeset.date)} 
    139139             <py:when test="True">(less than one hour ago)</py:when> 
    140              <py:otherwise>(${dateinfo(changeset.date)} ago)</py:otherwise> 
     140             <py:otherwise><span i18n:msg="elapsedtime">(${dateinfo(changeset.date)} ago)</span></py:otherwise> 
    141141          </dd> 
    142142          <dt class="property author">Author:</dt> 
    143143          <dd class="author">${authorinfo(changeset.author)}</dd>