Compact temporary translations migration code in templates

This commit is contained in:
Saivann 2013-06-19 13:40:55 -04:00
parent 176d1c4ed5
commit d45b9bbbfc
3 changed files with 5 additions and 31 deletions

View file

@ -6,15 +6,7 @@ id: community
<ul class="resources">
<li>{% translate foundation %}</li>
{% case page.lang %}
{% when 'ar' %}
{% when 'de' %}
{% when 'es' %}
{% when 'fa' %}
{% when 'fr' %}
{% when 'it' %}
{% when 'nl' %}
{% when 'pl' %}
{% when 'ru' %}
{% when 'ar' or 'de' or 'es' or 'fa' or 'fr' or 'it' or 'nl' or 'pl' or 'ru' %}
{% else %}
<li>{% translate wikiportal %}</li>
{% endcase %}
@ -38,11 +30,7 @@ id: community
</ul>
</li>
{% case page.lang %}
{% when 'ar' %}
{% when 'es' %}
{% when 'it' %}
{% when 'nl' %}
{% when 'ru' %}
{% when 'ar' or 'es' or 'it' or 'nl' or 'ru' %}
{% else %}
<li>{% translate linkgoogle %}</li>
{% endcase %}
@ -50,12 +38,7 @@ id: community
<li>{% translate facebook %}</li>
<li>{% translate reddit %}</li>
{% case page.lang %}
{% when 'ar' %}
{% when 'es' %}
{% when 'fa' %}
{% when 'it' %}
{% when 'nl' %}
{% when 'ru' %}
{% when 'ar' or 'es' or 'fa' or 'it' or 'nl' or 'ru' %}
{% else %}
<li>{% translate linkmeetup %}</li>
{% endcase %}

View file

@ -40,12 +40,7 @@ id: development
{% endcase %}
{% case page.lang %}
{% when 'ar' %}
{% when 'es' %}
{% when 'fa' %}
{% when 'it' %}
{% when 'nl' %}
{% when 'ru' %}
{% when 'ar' or 'es' or 'fa' or 'it' or 'nl' or 'ru' %}
{% else %}
<h2>{% translate more %}</h2>
<ul class="devprojectlist">

View file

@ -26,11 +26,7 @@ id: support-bitcoin
<h2><img src="/img/ico_translate.svg" alt="Icon" />{% translate translate %}</h2>
<p>{% translate translatetxt %}</p>
{% case page.lang %}
{% when 'ar' %}
{% when 'es' %}
{% when 'it' %}
{% when 'nl' %}
{% when 'ru' %}
{% when 'ar' or 'es' or 'it' or 'nl' or 'ru' %}
{% else %}
<p><a href="https://www.transifex.com/projects/p/bitcoin/">Bitcoin-Qt</a> - <a href="https://www.transifex.com/projects/p/bitcoinorg/">Bitcoin.org</a> - <a href="https://en.bitcoin.it/wiki/Bitcoin.it_Wiki">Bitcoin Wiki</a> - <a href="https://code.google.com/p/bitcoin-wallet/wiki/Translating">Bitcoin Wallet (Android)</a> - <a href="http://translate.multibit.org/">Multibit</a></p>
{% endcase %}