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

Unified Diff: includes/interface.tmpl

Issue 6250108710551552: Issue 2136 - Update web.adblockplus.org content for specifying default translations inline (Closed)
Patch Set: Created March 12, 2015, 9:29 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 | includes/preftable.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/interface.tmpl
===================================================================
--- a/includes/interface.tmpl
+++ b/includes/interface.tmpl
@@ -23,17 +23,17 @@
{% else %}
{{ return_type }}
{% endif %}
{% endmacro %}
{% macro display_interface(interface, links) %}
{% set interface=interface|parse_interface %}
- <h2>{{ "toc_header"|translate("interface") }}</h2>
+ <h2>{{ get_string("toc_header", "interface") }}</h2>
<ul>
{% for property in interface %}
{% if property.type == "method" %}
<li>
{{ return_type(property.return_type) }}
<a href="#method_{{ property.name }}" class="methodname">{{ property.name }}</a>
(
{% for argument in property.arguments %}
@@ -62,30 +62,30 @@
{{ argument.modifier }} {{ argument.type }} {{ argument.name }}
{%- if not loop.last %},{% endif %}
{% endfor %}
)
</p>
{{ property.description() }}
<dl>
{% if property.version %}
- <dt>{{ "minversion_label"|translate("interface") }}</dt>
- <dd>{{ property.version }} {{ "minversion_addendum"|translate("interface") }}</dd>
+ <dt>{{ get_string("minversion_label", "interface") }}</dt>
+ <dd>{{ property.version }} {{ get_string("minversion_addendum", "interface") }}</dd>
{% endif %}
{% if property.arguments|length %}
- <dt>{{ "arguments_label"|translate("interface") }}</dt>
+ <dt>{{ get_string("arguments_label", "interface") }}</dt>
{% for argument in property.arguments %}
<dd>
<span class="argumentname">{{ argument.name }}</span>:
{{ property["description-" + argument.name]() }}
</dd>
{% endfor %}
{% endif %}
{% if "description-return" in property %}
- <dt>{{ "returnvalue_label"|translate("interface") }}</dt>
+ <dt>{{ get_string("returnvalue_label", "interface") }}</dt>
<dd>{{ property["description-return"]() }}</dd>
{% endif %}
</dl>
{% else %}
<p id="prop_{{ property.name }}">
{{ property.modifier }} {{ property.type }}
<span class="propname">{{ property.name }}</span>
</p>
« no previous file with comments | « no previous file | includes/preftable.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld