Changeset e44fb48f


Ignore:
Timestamp:
Oct 25, 2017 9:49:48 AM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
bf42cc1
Parents:
1c6ca501
Message:

Tag strings for translation

Location:
apps/routerconsole/java/src/net/i2p/router/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java

    r1c6ca501 re44fb48f  
    964964                    if (entry.updated > 0) {
    965965                        Date date = new Date(entry.updated);
    966                         // tooltip to tag for translation post 0.9.31 release
    967                         buf.append(" title=\"Published: ").append(fmt.format(date)).append("\"");
     966                        buf.append(" title=\"")
     967                           .append(_t("Published")).append(": ").append(fmt.format(date)).append("\"");
    968968                    }
    969969                    buf.append(">");
  • apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java

    r1c6ca501 re44fb48f  
    8989            }
    9090            // everything that isn't 'recent' is already in the tunnel.participatingMessageCount stat
    91             // TODO translation tag "Tunnel identity" tooltips
    9291            processed += cfg.getRecentMessagesCount();
    9392            if (++displayed > DISPLAY_LIMIT)
     
    9594            out.write("<tr>");
    9695            if (cfg.getReceiveTunnel() != null)
    97                 out.write("<td class=\"cells\" align=\"center\" title=\"Tunnel identity\"><span class=\"tunnel_id\">" + cfg.getReceiveTunnel().getTunnelId() +"</span></td>");
     96                out.write("<td class=\"cells\" align=\"center\" title=\"" + _t("Tunnel identity") + "\"><span class=\"tunnel_id\">" +
     97                          cfg.getReceiveTunnel().getTunnelId() + "</span></td>");
    9898            else
    9999                out.write("<td class=\"cells\" align=\"center\">n/a</td>");
     
    103103                out.write("<td class=\"cells\">&nbsp;</td>");
    104104            if (cfg.getSendTunnel() != null)
    105                 out.write("<td class=\"cells\" align=\"center\" title=\"Tunnel identity\"><span class=\"tunnel_id\">" + cfg.getSendTunnel().getTunnelId() +"</span></td>");
     105                out.write("<td class=\"cells\" align=\"center\" title=\"" + _t("Tunnel identity") + "\"><span class=\"tunnel_id\">" + cfg.getSendTunnel().getTunnelId() +"</span></td>");
    106106            else
    107107                out.write("<td class=\"cells\">&nbsp;</td>");
     
    146146        //renderPeers(out);
    147147
    148         //out.write("<h3 class=\"tabletitle\">" + "Bandwidth Tiers" + "</h3>\n"); TODO: replace "definitions" with tagged "bandwidth tiers" post 0.9.31 release
    149         out.write("<h3 class=\"tabletitle\">" + _t("Definitions") + "</h3>\n");
     148        out.write("<h3 class=\"tabletitle\">" + _t("Bandwidth Tiers") + "</h3>\n");
    150149        out.write("<table id=\"tunnel_defs\"><tbody>");
    151150        out.write("<tr><td>&nbsp;</td>"
     
    210209            live++;
    211210            if (info.isInbound())
    212                 out.write("<tr><td class=\"cells\" align=\"center\"><img src=\"/themes/console/images/inbound.png\" alt=\"Inbound\" title=\"Inbound\"></td>");
    213             else
    214                 out.write("<tr><td class=\"cells\" align=\"center\"><img src=\"/themes/console/images/outbound.png\" alt=\"Outbound\" title=\"Outbound\"></td>");
     211                out.write("<tr><td class=\"cells\" align=\"center\"><img src=\"/themes/console/images/inbound.png\" alt=\"Inbound\" title=\"" +
     212                          _t("Inbound") + "\"></td>");
     213            else
     214                out.write("<tr><td class=\"cells\" align=\"center\"><img src=\"/themes/console/images/outbound.png\" alt=\"Outbound\" title=\"" +
     215                          _t("Outbound") + "\"></td>");
    215216            out.write("<td class=\"cells\" align=\"center\">" + DataHelper.formatDuration2(timeLeft) + "</td>\n");
    216217            int count = info.getProcessedMessagesCount();
     
    220221                TunnelId id = (info.isInbound() ? info.getReceiveTunnelId(j) : info.getSendTunnelId(j));
    221222                if (_context.routerHash().equals(peer)) {
    222                     // Add empty content placeholders to force alignment. TODO tag tooltips for bandwidth tier / tunnel id for translation
    223                     out.write(" <td class=\"cells\" align=\"center\"><span class=\"tunnel_peer tunnel_local\" title=\"Locally hosted tunnel\">" + _t("Local") + "</span>&nbsp;"
    224                               + "<span class=\"tunnel_id\" title=\"Tunnel identity\">" +
    225                              (id == null ? "" : "" + id) + "</span><b class=\"tunnel_cap\" title=\"Bandwidth tier\"></b></td>");
     223                    // Add empty content placeholders to force alignment.
     224                    out.write(" <td class=\"cells\" align=\"center\"><span class=\"tunnel_peer tunnel_local\" title=\"" +
     225                              _t("Locally hosted tunnel") + "\">" + _t("Local") + "</span>&nbsp;<span class=\"tunnel_id\" title=\"" +
     226                              _t("Tunnel identity") + "\">" + (id == null ? "" : "" + id) +
     227                              "</span><b class=\"tunnel_cap\" title=\"" + _t("Bandwidth tier") + "\"></b></td>");
    226228                } else {
    227229                    String cap = getCapacity(peer);
    228                     // TODO Tag for translation tooltips for network cap / tunnel id / bandwidth tier
    229230                    out.write(" <td class=\"cells\" align=\"center\"><span class=\"tunnel_peer\">" + netDbLink(peer) +
    230                               "</span>&nbsp;<span class=\"nowrap\"><span class=\"tunnel_id\" title=\"Tunnel identity\">" + (id == null ? "" : " " + id) +
    231                               "</span><b class=\"tunnel_cap\" title=\"Bandwidth tier\">" + cap + "</b></span></td>");
     231                              "</span>&nbsp;<span class=\"nowrap\"><span class=\"tunnel_id\" title=\"" + _t("Tunnel identity") + "\">" +
     232                              (id == null ? "" : " " + id) + "</span><b class=\"tunnel_cap\" title=\"" + _t("Bandwidth tier") + "\">" +
     233                              cap + "</b></span></td>");
    232234                }
    233235                if (info.getLength() < maxLength && (info.getLength() == 1 || j == info.getLength() - 2)) {
Note: See TracChangeset for help on using the changeset viewer.