Skip to content

Commit

Permalink
[#2375] Add a few obviously missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 6, 2012
1 parent f2b2443 commit 3ef5739
Show file tree
Hide file tree
Showing 8 changed files with 6,240 additions and 2,206 deletions.
4,142 changes: 3,073 additions & 1,069 deletions ckan/i18n/ckan.pot

Large diffs are not rendered by default.

Binary file modified ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo
Binary file not shown.
4,262 changes: 3,146 additions & 1,116 deletions ckan/i18n/zh_TW/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions ckan/templates/footer.html
Expand Up @@ -5,21 +5,21 @@
{% block footer_nav %}
<ul class="unstyled row-fluid">
{% block footer_links %}
<li><a href="#">Terms and Conditions</a></li>
<li><a href="#">Accessibility</a></li>
<li><a href="#">Code of conduct</a></li>
<li><a href="#">Moderation policy</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Contact us</a></li>
<li><a href="#">Consultation</a></li>
<li><a href="#">_('Terms and Conditions')</a></li>
<li><a href="#">_('Accessibility')</a></li>
<li><a href="#">_('Code of conduct')</a></li>
<li><a href="#">_('Moderation policy')</a></li>
<li><a href="#">_('FAQ')</a></li>
<li><a href="#">_('Privacy')</a></li>
<li><a href="#">_('Contact us')</a></li>
<li><a href="#">_('Consultation')</a></li>
{% endblock %}
</ul>
{% endblock %}
</nav>
<div class="attribution">
{% block footer_attribution %}
<p><strong>Powered by</strong> <a class="hide-text ckan-footer-logo" href="http://ckan.org">CKAN</a></p>
<p>{% trans %}<strong>Powered by</strong> <a class="hide-text ckan-footer-logo" href="http://ckan.org">CKAN</a>{% endtrans %}</p>
{% endblock %}
{% block footer_lang %}
{% snippet "snippets/language_selector.html" %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Expand Up @@ -22,7 +22,7 @@ <h1>
</a>
<span class="links">
<a href="{{ h.url_for(controller='user',action='me') }}">{{ c.user }}</a>
<a class="sub" href="{{ h.url_for('/user/_logout') }}">Log out</a>
<a class="sub" href="{{ h.url_for('/user/_logout') }}">{{ _('Log out') }}</a>
</span>
</div>
{% else %}
Expand Down
12 changes: 6 additions & 6 deletions ckan/templates/snippets/facet_list.html
Expand Up @@ -28,7 +28,7 @@
#}
{% with items = items or h.get_facet_items_dict(name) %}
<section class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="icon-medium icon-filter"></i> {{ h.get_facet_title(name) }} <a href="{{ h.remove_url_param(name, extras=extras) }}" class="action">Clear All</a></h2>
<h2 class="module-heading"><i class="icon-medium icon-filter"></i> {{ h.get_facet_title(name) }} <a href="{{ h.remove_url_param(name, extras=extras) }}" class="action">{{ _('Clear All') }}</a></h2>
{% if items %}
<nav>
<ul class="unstyled nav nav-simple nav-facet">
Expand All @@ -45,11 +45,11 @@ <h2 class="module-heading"><i class="icon-medium icon-filter"></i> {{ h.get_face
</ul>
</nav>
<p class="module-footer">
{% if h.get_param_int('_%s_limit' % name) %}
<a href="{{ h.remove_url_param('_%s_limit' % name, replace=0, extras=extras) }}" class="read-more">Show More {{ h.get_facet_title(name) }}</a>
{% else %}
<a href="{{ h.remove_url_param('_%s_limit' % name, extras=extras) }}" class="read-more">Show Only Popular {{ h.get_facet_title(name) }}</a>
{% endif %}
{% if h.get_param_int('_%s_limit' % name) %}
<a href="{{ h.remove_url_param('_%s_limit' % name, replace=0, extras=extras) }}" class="read-more">{{ _('Show More {facet}').format(facet=h.get_facet_title(name)) }}</a>
{% else %}
<a href="{{ h.remove_url_param('_%s_limit' % name, extras=extras) }}" class="read-more">{{ _('Show Only Popular {facet}').format(h.get_facet_title(name)) }}</a>
{% endif %}
</p>
{% else %}
<p class="module-content empty">{{ _('There are no filters for this search') }}</p>
Expand Down
4 changes: 2 additions & 2 deletions ckan/templates/snippets/sort_by.html
@@ -1,11 +1,11 @@
<span class="form-select control-group control-order-by">
<label for="field-order-by">Order by</label>
<label for="field-order-by">{{ _('Order by') }}</label>
<select id="field-order-by" name="sort">
<option value="relevance asc"{% if sort =='relevance asc' %} selected="selected"{% endif %}>{{ _('Relevance') }}</option>
<option value="title_string asc"{% if sort=='title_string asc' %} selected="selected"{% endif %}>{{ _('Name Ascending') }}</option>
<option value="title_string desc"{% if sort=='title_string desc' %} selected="selected"{% endif %}>{{ _('Name Descending') }}</option>
<option value="metadata_modified desc"{% if sort=='metadata_modified desc' %} selected="selected"{% endif %}>{{ _('Last Modified') }}</option>
<option value="views_recent desc"{% if sort=='views_recent desc' %} selected="selected"{% endif %}>{{ _('Popular') }}</option>
</select>
<button class="btn js-hide" type="submit">Go</button>
<button class="btn js-hide" type="submit">{{ _('Go') }}</button>
</span>
6 changes: 3 additions & 3 deletions ckan/templates/user/snippets/login_form.html
Expand Up @@ -17,11 +17,11 @@
<form action="{{ action }}" method="post" class="form-horizontal">
{{ form.errors(errors=error_summary) }}

{{ form.input('login', label="Username", id='field-login', value="", error=username_error, classes=["control-medium"]) }}
{{ form.input('login', label=_("Username"), id='field-login', value="", error=username_error, classes=["control-medium"]) }}

{{ form.input('password', label="Password", id='field-password', type="password", value="", error=password_error, classes=["control-medium"]) }}
{{ form.input('password', label=_("Password"), id='field-password', type="password", value="", error=password_error, classes=["control-medium"]) }}

{{ form.checkbox('remember', label="Remember me", id='field-remember', checked=true, value="63072000") }}
{{ form.checkbox('remember', label=_("Remember me"), id='field-remember', checked=true, value="63072000") }}

<div class="form-actions">
<button class="btn btn-primary" type="submit">{{ _('Log in') }}</button>
Expand Down

0 comments on commit 3ef5739

Please sign in to comment.