From 92b93c53fc8679d4c741868e81fca01fe3948374 Mon Sep 17 00:00:00 2001 From: joetsoi Date: Wed, 10 Jun 2015 12:14:20 +0100 Subject: [PATCH] add some translation strings --- ckanext/harvest/templates_new/index.html | 28 ++++++++------- .../snippets/package_list_empty.html | 2 +- .../harvest/templates_new/source/admin.html | 2 +- .../source/old_new_source_form.html | 2 +- .../harvest/templates_new/source/read.html | 2 +- .../templates_new/source/search_2.0.html | 4 +-- i18n/ckanext-harvest.pot | 23 +++++++++--- i18n/sv/LC_MESSAGES/ckanext-harvest.po | 35 ++++++++++++++----- 8 files changed, 66 insertions(+), 32 deletions(-) diff --git a/ckanext/harvest/templates_new/index.html b/ckanext/harvest/templates_new/index.html index a5498bc..5eea4d7 100644 --- a/ckanext/harvest/templates_new/index.html +++ b/ckanext/harvest/templates_new/index.html @@ -18,15 +18,15 @@ {% block primary %}
-

Harvesting Sources

+

{% trans %}Harvesting Sources{% endtrans %}

{% if c.status %}
-

Status:

+

{{ _('Status') }}:

{{ h.literal(c.status) }}
{% endif %} - + {% if c.sources %}
@@ -36,15 +36,19 @@ - - - + + + - - - - - + {# TRANSLATORS: Appears in harvest source table for the type of harvester #} + + {# TRANSLATORS: Appears in harvest source table 'is Active' #} + + + {# TRANSLATORS: Appears in harvest source table 'date of next harvest #} + + {# TRANSLATORS: Appears in harvest source table date created #} + {% set old_publisher = None %} {% for source in c.sources %} @@ -78,7 +82,7 @@ {% endfor %}
ViewEditRefresh{{ _('View') }}{{ _('Edit') }}{{ _('Refresh'}} URLTypeActiveStatisticsNext HarvestCreated{{ _('Type')}}{{ _('Active')}}{{ _('Statistics') }}{{ _('Next Harvest') }}{{ _('Created') }}
{% else %} -
No harvest sources defined yet.
+
{% trans %}No harvest sources defined yet.{% endtrans %}
{% endif %}
diff --git a/ckanext/harvest/templates_new/snippets/package_list_empty.html b/ckanext/harvest/templates_new/snippets/package_list_empty.html index 3279e47..a6d297a 100644 --- a/ckanext/harvest/templates_new/snippets/package_list_empty.html +++ b/ckanext/harvest/templates_new/snippets/package_list_empty.html @@ -1 +1 @@ -

There are no datasets associated to this harvest source.

+

{% trans %}There are no datasets associated to this harvest source.{% endtrans %}

diff --git a/ckanext/harvest/templates_new/source/admin.html b/ckanext/harvest/templates_new/source/admin.html index a2ee908..4fd7cb4 100644 --- a/ckanext/harvest/templates_new/source/admin.html +++ b/ckanext/harvest/templates_new/source/admin.html @@ -2,7 +2,7 @@ {% block primary_content_inner %}
-

Last Harvest Job

+

{{ _('Last Harvest Job') }}

{% if source.status and source.status.last_job %} {% snippet "snippets/job_details.html", job=source.status.last_job %}
diff --git a/ckanext/harvest/templates_new/source/old_new_source_form.html b/ckanext/harvest/templates_new/source/old_new_source_form.html index ac7a879..fd1d88d 100644 --- a/ckanext/harvest/templates_new/source/old_new_source_form.html +++ b/ckanext/harvest/templates_new/source/old_new_source_form.html @@ -2,5 +2,5 @@
{{ autoform.generate(form_items, data, errors, error_summary) }} - or Return to the harvest sources list + or {% trans %}Return to the harvest sources list{% endtrans %}
diff --git a/ckanext/harvest/templates_new/source/read.html b/ckanext/harvest/templates_new/source/read.html index 1f748d0..8ba1f21 100644 --- a/ckanext/harvest/templates_new/source/read.html +++ b/ckanext/harvest/templates_new/source/read.html @@ -2,7 +2,7 @@ {% block primary_content_inner %}
-

Datasets

+

{{ _('Datasets') }}

{{ h.package_list_for_source(source.id) }}
{% endblock %} diff --git a/ckanext/harvest/templates_new/source/search_2.0.html b/ckanext/harvest/templates_new/source/search_2.0.html index 88f1c94..b48836b 100644 --- a/ckanext/harvest/templates_new/source/search_2.0.html +++ b/ckanext/harvest/templates_new/source/search_2.0.html @@ -45,8 +45,8 @@ {% endfor %}
{% if request.params and c.page.item_count == 0 %} -

Try another search term, - browse the sources below or {{ _('add a new one') }}. +

{% trans %}Try another search term, + browse the sources below or {% endtrans %}{{ _('add a new one') }}.

{% endif %} diff --git a/i18n/ckanext-harvest.pot b/i18n/ckanext-harvest.pot index bfdef1c..2fdd283 100644 --- a/i18n/ckanext-harvest.pot +++ b/i18n/ckanext-harvest.pot @@ -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 \n" "Language-Team: LANGUAGE \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 "" diff --git a/i18n/sv/LC_MESSAGES/ckanext-harvest.po b/i18n/sv/LC_MESSAGES/ckanext-harvest.po index 7317ca2..91f233c 100644 --- a/i18n/sv/LC_MESSAGES/ckanext-harvest.po +++ b/i18n/sv/LC_MESSAGES/ckanext-harvest.po @@ -2,16 +2,17 @@ # Copyright (C) 2015 ORGANIZATION # This file is distributed under the same license as the ckanext-harvest # project. -# FIRST AUTHOR , 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 \n" -"Language-Team: sv \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 "" +