Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/interface.tmpl

Issue 5958799332474880: Issue 2101 - Avoid duplicate interface page strings. (Closed)
Patch Set: Moved the other interface strings into locale file. Created March 8, 2015, 11:25 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | locales/en/IAdblockPlus.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/interface.tmpl
diff --git a/includes/interface.tmpl b/includes/interface.tmpl
index 2c6d31097bfa67e9965eaf9d2fff1ba944e0ef9c..8a960e2b1436b5d6ca66ff9131ebbbeb4a0985cd 100644
--- a/includes/interface.tmpl
+++ b/includes/interface.tmpl
@@ -28,7 +28,7 @@
{% macro display_interface(interface, links) %}
{% set interface=interface|parse_interface %}
- <h2>{{ "toc_header"|translate }}</h2>
+ <h2>{{ "toc_header"|translate("interface") }}</h2>
<ul>
{% for property in interface %}
{% if property.type == "method" %}
@@ -67,11 +67,11 @@
{{ property.description() }}
<dl>
{% if property.version %}
- <dt>Version:</dt>
- <dd>{{ property.version }} and higher</dd>
+ <dt>{{ "minversion_label"|translate("interface") }}</dt>
+ <dd>{{ property.version }} {{ "minversion_addendum"|translate("interface") }}</dd>
{% endif %}
{% if property.arguments|length %}
- <dt>Arguments:</dt>
+ <dt>{{ "arguments_label"|translate("interface") }}</dt>
{% for argument in property.arguments %}
<dd>
<span class="argumentname">{{ argument.name }}</span>:
@@ -80,7 +80,7 @@
{% endfor %}
{% endif %}
{% if "description-return" in property %}
- <dt>Returns:</dt>
+ <dt>{{ "returnvalue_label"|translate("interface") }}</dt>
<dd>{{ property["description-return"]() }}</dd>
{% endif %}
</dl>
« no previous file with comments | « no previous file | locales/en/IAdblockPlus.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld