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

Unified Diff: templates/default.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 | « includes/subscriptionList.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -13,17 +13,17 @@
#
# You should have received a copy of the GNU General Public License
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
#}
<!DOCTYPE html>
<html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "ltr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage">
<head>
- <title>{{title|translate}}</title>
+ <title>{{title|translate("title")}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/main.css" class="cssfx">
<link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 40.5em)" class="cssfx">
<link rel="stylesheet" href="/css/main-mobile.css" media="screen and (max-width: 40.5em)">
<noscript>
<link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width: 40.5em)"/>
<link rel="stylesheet" href="/css/noscript-mobile.css" media="screen and (max-width: 40.5em)"/>
@@ -48,42 +48,42 @@
{% block head %}
{{head|safe}}
{% endblock %}
</head>
<body>
{% macro pageitem(name) %}
{% if name == page %}
- <li class="selected">{{name|translate("menu")}}</li>
+ <li class="selected">{{get_string(name, "menu")}}</li>
{% else %}
- <li>{{name|linkify}}{{name|translate("menu")}}</a></li>
+ <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li>
{% endif %}
{% endmacro %}
<header>
<a id="logo" class="sprite" itemprop="image" href="/"></a>
<nav>
<ul>
{% if localefile == "index" %}
- <li class="selected first">{{"installation"|translate("menu")}}</li>
+ <li class="selected first">{{get_string("installation", "menu")}}</li>
{% else %}
- <li class="install-link first">{{"index"|linkify}}{{"installation"|translate("menu")}} <span class="sprite install-link-icon"></span></a></li>
+ <li class="install-link first">{{"index"|linkify}}{{get_string("installation", "menu")}} <span class="sprite install-link-icon"></span></a></li>
{% endif %}
{% for name in ["about", "features", "bugs", "contribute"] %}
{{pageitem(name)}}
{% endfor %}
<li id="search">
<form action="https://www.google.com/cse" id="search-box">
<input name="cx" value="001104437084080304350:n8odfuv0gvi" type="hidden">
<input name="ie" value="UTF-8" type="hidden">
- <label id="search-field-label-plain" for="search-field">{{"search"|translate("menu")}}</label>
+ <label id="search-field-label-plain" for="search-field">{{get_string("search", "menu")}}</label>
<input id="search-field" name="q" type="search">
<label id="search-field-label-button" for="search-field">
- <button id="search-button" type="submit">{{"search"|translate("menu")}}</button>
+ <button id="search-button" type="submit">{{get_string("search", "menu")}}</button>
</label>
</form>
</li>
<li id="language">
<div id="current-language">
<div id="flag-{{locale}}" class="flag sprite"></div>
<span id="language-arrow" class="sprite"></span>
</div>
@@ -98,17 +98,17 @@
</ul>
</li>
</ul>
</nav>
</header>
<div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}>
{% if not noheading %}
- <h1>{{title|translate}}</h1>
+ <h1>{{title|translate("title")}}</h1>
{% endif %}
{% if not notoc %}
{% macro toc(toclist) %}
<ul>
{% for item in toclist %}
<li>
<a href="#{{item.anchor}}">{{item.title}}</a>
@@ -130,46 +130,46 @@
{{body|safe}}
{% endblock %}
</div>
<footer>
<div id="footer-content">
<nav>
<section class="first">
- <h1>{{"resources"|translate("menu")}}</h1>
+ <h1>{{get_string("resources", "menu")}}</h1>
<ul>
{% for name in ["acceptable-ads", "documentation", "deployments", "privacy", "impressum"] %}
{{pageitem(name)}}
{% endfor %}
</ul>
</section>
<section>
- <h1>{{"community"|translate("menu")}}</h1>
+ <h1>{{get_string("community", "menu")}}</h1>
<ul>
- <li><a href="/releases/" hreflang="en">{{"releases"|translate("menu")}}</a></li>
- <li><a href="/blog/" hreflang="en">{{"blog"|translate("menu")}}</a></li>
- <li><a href="/forum/" hreflang="en">{{"forum"|translate("menu")}}</a></li>
+ <li><a href="/releases/" hreflang="en">{{get_string("releases", "menu")}}</a></li>
+ <li><a href="/blog/" hreflang="en">{{get_string("blog", "menu")}}</a></li>
+ <li><a href="/forum/" hreflang="en">{{get_string("forum", "menu")}}</a></li>
{{pageitem("development-builds")}}
</ul>
</section>
<section>
- <h1>{{"development"|translate("menu")}}</h1>
+ <h1>{{get_string("development", "menu")}}</h1>
<ul>
{{pageitem("source")}}
- <li><a href="/category/roadmap/" hreflang="en">{{"roadmap"|translate("menu")}}</a></li>
+ <li><a href="/category/roadmap/" hreflang="en">{{get_string("roadmap", "menu")}}</a></li>
{{pageitem("tools")}}
</ul>
</section>
</nav>
<section id="social">
- <h1>{{"follow-us"|translate("menu")}}</h1>
+ <h1>{{get_string("follow-us", "menu")}}</h1>
<ul id="social-list">
<li class="social-entry">
<a rel="nofollow" id="social-facebook" class="sprite" href="https://www.facebook.com/adblockplus"></a>
</li>
<li class="social-entry">
<a rel="nofollow" id="social-twitter" class="sprite" href="https://twitter.com/adblockplus"></a>
</li>
<li class="social-entry">
« no previous file with comments | « includes/subscriptionList.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld