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

Unified Diff: templates/default.tmpl

Issue 29564702: Issue 5636 - Refactored language selector to use og locale location codes instead of locale codes (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Added copyright notice Created Oct. 5, 2017, 12:17 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 | « filters/to_og_location.py ('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
@@ -93,24 +93,24 @@
{% else %}
<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="language">
<div id="current-language">
- {{ config.get("langnames", locale) }} ({{ locale | upper }})
+ {{ config.get("langnames", locale) }} ({{ locale | to_og_locale | to_og_location }})
<span id="language-arrow" class="sprite"></span>
</div>
<ul id="language-selector">
{% for available_locale in available_locales %}
<li class="language-entry">
{{ page | linkify(available_locale) }}
- {{ config.get("langnames", available_locale) }} ({{ available_locale | upper }})
+ {{ config.get("langnames", available_locale) }} ({{ available_locale | to_og_locale | to_og_location }})
</a>
</li>
{% endfor %}
</ul>
</li>
</ul>
<a href="#" id="hamburger"></a>
</nav>
« no previous file with comments | « filters/to_og_location.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld