add some translation strings

This commit is contained in:
joetsoi 2015-06-10 12:14:20 +01:00
parent 5fbfa2a4c1
commit 92b93c53fc
8 changed files with 66 additions and 32 deletions

View File

@ -18,15 +18,15 @@
{% block primary %}
<article class="module">
<div class="module-content">
<h1>Harvesting Sources</h1>
<h1>{% trans %}Harvesting Sources{% endtrans %}</h1>
{% if c.status %}
<div class="status">
<h3>Status:</h3>
<h3>{{ _('Status') }}:</h3>
{{ h.literal(c.status) }}
</div>
{% endif %}
<div id="new-harvest-source"><a href="harvest/new">Add a harvesting source</a></div>
<div id="new-harvest-source"><a href="harvest/new">{% trans %}Add a harvesting source{% endtrans %}</a></div>
{% if c.sources %}
<div id="show-inactive-sources-content">
@ -36,15 +36,19 @@
<table id="harvest-sources" class="table table-bordered table-condensed ${'publishers' if c.publisher_auth else ''}" >
<tr>
<th class="action">View</th>
<th class="action">Edit</th>
<th class="action">Refresh</th>
<th class="action">{{ _('View') }}</th>
<th class="action">{{ _('Edit') }}</th>
<th class="action">{{ _('Refresh'}}</th>
<th class="url">URL</th>
<th>Type</th>
<th>Active</th>
<th>Statistics</th>
<th>Next Harvest</th>
<th>Created</th>
{# TRANSLATORS: Appears in harvest source table for the type of harvester #}
<th>{{ _('Type')}}</th>
{# TRANSLATORS: Appears in harvest source table 'is Active' #}
<th>{{ _('Active')}}</th>
<th>{{ _('Statistics') }}</th>
{# TRANSLATORS: Appears in harvest source table 'date of next harvest #}
<th>{{ _('Next Harvest') }}</th>
{# TRANSLATORS: Appears in harvest source table date created #}
<th>{{ _('Created') }}</th>
</tr>
{% set old_publisher = None %}
{% for source in c.sources %}
@ -78,7 +82,7 @@
{% endfor %}
</table>
{% else %}
<div id="no-harvest-sources">No harvest sources defined yet.</div>
<div id="no-harvest-sources">{% trans %}No harvest sources defined yet.{% endtrans %}</div>
{% endif %}
</div>
</article>

View File

@ -1 +1 @@
<p class="empty">There are no datasets associated to this harvest source.</p>
<p class="empty">{% trans %}There are no datasets associated to this harvest source.{% endtrans %}</p>

View File

@ -2,7 +2,7 @@
{% block primary_content_inner %}
<section class="module-content">
<h1>Last Harvest Job</h1>
<h1>{{ _('Last Harvest Job') }}</h1>
{% if source.status and source.status.last_job %}
{% snippet "snippets/job_details.html", job=source.status.last_job %}
<div class="form-actions">

View File

@ -2,5 +2,5 @@
<form id="source-new" class="form-horizontal" method="post">
{{ autoform.generate(form_items, data, errors, error_summary) }}
<input id="save" name="save" value="Save" type="submit" class="btn"/> or <a href="/harvest">Return to the harvest sources list</a>
<input id="save" name="save" value="Save" type="submit" class="btn"/> or <a href="/harvest">{% trans %}Return to the harvest sources list{% endtrans %}</a>
</form>

View File

@ -2,7 +2,7 @@
{% block primary_content_inner %}
<section class="module-content">
<h1 class="hide-heading">Datasets</h1>
<h1 class="hide-heading">{{ _('Datasets') }}</h1>
{{ h.package_list_for_source(source.id) }}
</section>
{% endblock %}

View File

@ -45,8 +45,8 @@
{% endfor %}
</div>
{% if request.params and c.page.item_count == 0 %}
<p class="extra">Try another search term,
browse the sources below or <a href="{{ h.url_for('{0}_new'.format(c.dataset_type)) }}">{{ _('add a new one') }}</a>.
<p class="extra">{% trans %}Try another search term,
browse the sources below or {% endtrans %}<a href="{{ h.url_for('{0}_new'.format(c.dataset_type)) }}">{{ _('add a new one') }}</a>.
</p>
{% endif %}
</div>

View File

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ckanext-harvest 0.2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-06-10 09:47+0100\n"
"POT-Creation-Date: 2015-06-10 12:12+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -152,10 +152,6 @@ msgstr ""
msgid "Only sysadmins can reindex all harvest sources"
msgstr ""
#: ckanext/harvest/templates_new/index.html:3
msgid "Harvesting Sources"
msgstr ""
#: ckanext/harvest/templates_new/snippets/add_source_button.html:6
#: ckanext/harvest/templates_new/source/org_source_list.html:11
msgid "Add Harvest Source"
@ -198,6 +194,10 @@ msgstr ""
msgid "Message"
msgstr ""
#: ckanext/harvest/templates_new/snippets/package_list_empty.html:1
msgid "There are no datasets associated to this harvest source."
msgstr ""
#: ckanext/harvest/templates_new/snippets/search_result_text.html:4
msgid "{number} harvest source found for \"{query}\""
msgid_plural "{number} harvest sources found for \"{query}\""
@ -237,6 +237,7 @@ msgid "There is no description for this harvest source"
msgstr ""
#: ckanext/harvest/templates_new/snippets/source_item.html:42
#: ckanext/harvest/templates_new/source/read.html:5
#: ckanext/harvest/templates_new/source/read_base.html:30
#: ckanext/harvest/templates_new/source/read_base.html:53
msgid "Datasets"
@ -247,6 +248,10 @@ msgstr ""
msgid "Organization"
msgstr ""
#: ckanext/harvest/templates_new/source/admin.html:5
msgid "Last Harvest Job"
msgstr ""
#: ckanext/harvest/templates_new/source/admin.html:11
msgid "View full job report"
msgstr ""
@ -414,6 +419,10 @@ msgstr ""
msgid "Delete and clear source"
msgstr ""
#: ckanext/harvest/templates_new/source/old_new_source_form.html:5
msgid "Return to the harvest sources list"
msgstr ""
#: ckanext/harvest/templates_new/source/org_source_list.html:15
#: ckanext/harvest/templates_new/source/search_2.0.html:25
msgid " found for \"{query}\""
@ -472,6 +481,10 @@ msgstr ""
msgid "Remove"
msgstr ""
#: ckanext/harvest/templates_new/source/search_2.0.html:48
msgid "Try another search term, browse the sources below or "
msgstr ""
#: ckanext/harvest/templates_new/source/search_2.0.html:49
msgid "add a new one"
msgstr ""

View File

@ -2,16 +2,17 @@
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the ckanext-harvest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: ckanext-harvest 0.2\n"
"Project-Id-Version: ckanext-harvest\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-06-10 09:47+0100\n"
"PO-Revision-Date: 2015-06-10 09:47+0100\n"
"POT-Creation-Date: 2015-06-10 12:12+0100\n"
"PO-Revision-Date: 2015-06-10 09:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: sv <LL@li.org>\n"
"Language-Team: Swedish (http://www.transifex.com/projects/p/ckanext-"
"harvest/language/sv/)\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
@ -156,10 +157,6 @@ msgstr ""
msgid "Only sysadmins can reindex all harvest sources"
msgstr ""
#: ckanext/harvest/templates_new/index.html:3
msgid "Harvesting Sources"
msgstr ""
#: ckanext/harvest/templates_new/snippets/add_source_button.html:6
#: ckanext/harvest/templates_new/source/org_source_list.html:11
msgid "Add Harvest Source"
@ -202,6 +199,10 @@ msgstr ""
msgid "Message"
msgstr ""
#: ckanext/harvest/templates_new/snippets/package_list_empty.html:1
msgid "There are no datasets associated to this harvest source."
msgstr ""
#: ckanext/harvest/templates_new/snippets/search_result_text.html:4
msgid "{number} harvest source found for \"{query}\""
msgid_plural "{number} harvest sources found for \"{query}\""
@ -241,6 +242,7 @@ msgid "There is no description for this harvest source"
msgstr ""
#: ckanext/harvest/templates_new/snippets/source_item.html:42
#: ckanext/harvest/templates_new/source/read.html:5
#: ckanext/harvest/templates_new/source/read_base.html:30
#: ckanext/harvest/templates_new/source/read_base.html:53
msgid "Datasets"
@ -251,6 +253,10 @@ msgstr ""
msgid "Organization"
msgstr ""
#: ckanext/harvest/templates_new/source/admin.html:5
msgid "Last Harvest Job"
msgstr ""
#: ckanext/harvest/templates_new/source/admin.html:11
msgid "View full job report"
msgstr ""
@ -418,6 +424,10 @@ msgstr ""
msgid "Delete and clear source"
msgstr ""
#: ckanext/harvest/templates_new/source/old_new_source_form.html:5
msgid "Return to the harvest sources list"
msgstr ""
#: ckanext/harvest/templates_new/source/org_source_list.html:15
#: ckanext/harvest/templates_new/source/search_2.0.html:25
msgid " found for \"{query}\""
@ -476,6 +486,10 @@ msgstr ""
msgid "Remove"
msgstr ""
#: ckanext/harvest/templates_new/source/search_2.0.html:48
msgid "Try another search term, browse the sources below or "
msgstr ""
#: ckanext/harvest/templates_new/source/search_2.0.html:49
msgid "add a new one"
msgstr ""
@ -556,3 +570,6 @@ msgstr ""
msgid "Local content"
msgstr ""
#~ msgid "Harvesting Sources"
#~ msgstr ""