Skip to content

Commit

Permalink
Translate new version #17
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMadejski committed Mar 17, 2017
1 parent 787ba6f commit 18ad883
Show file tree
Hide file tree
Showing 10 changed files with 628 additions and 227 deletions.
13 changes: 13 additions & 0 deletions README.rst
Expand Up @@ -166,6 +166,19 @@ If you get error "MagicException: None" then it may be due to libmagic needing a
sudo apt-get install libmagic1


Translations
------

To translate plugin to a new language copy `ckanext/qa/i18n/ckanext-qa.pot`,
into language-specific directory and translate it.

To update template file with new translation added in the code or templates
run `python setup.py extract_messages` in the root plugin directory.

To update translation files with new template run
`msgmerge ckanext/qa/i18n/$LANG/LC_MESSAGES/ckanext-qa.po ckanext/qa/i18n/ckanext-qa.pot -U`


Questions
---------

Expand Down
1 change: 0 additions & 1 deletion babel.cfg
Expand Up @@ -2,7 +2,6 @@
[python: **.py]
# Extraction from Genshi HTML and text templates
[jinja2: **/templates/**.html]
[jinja2: **/templates_extend/**.html]
encoding = utf-8
extensions =
jinja2.ext.do,
Expand Down
247 changes: 247 additions & 0 deletions ckanext/qa/i18n/ckanext-qa.pot
@@ -0,0 +1,247 @@
# Translations template for ckanext-qa.
# Copyright (C) 2017 ORGANIZATION
# This file is distributed under the same license as the ckanext-qa project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ckanext-qa 2.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2017-03-17 13:06+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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.6\n"

#: ckanext/qa/reports.py:164
msgid "Openness (Five Stars)"
msgstr ""

#: ckanext/qa/reports.py:165
msgid ""
"Datasets graded on Tim Berners Lees' Five Stars of Openness - openly "
"licensed, openly accessible, structured, open format, URIs for entities, "
"linked."
msgstr ""

#: ckanext/qa/tasks.py:221
msgid "Could not understand the file format, therefore score is 1."
msgstr ""

#: ckanext/qa/tasks.py:230
#, python-format
msgid "Unknown error: %s"
msgstr ""

#: ckanext/qa/tasks.py:244
msgid "License not open"
msgstr ""

#: ckanext/qa/tasks.py:269
msgid "File could not be downloaded."
msgstr ""

#: ckanext/qa/tasks.py:270 ckanext/qa/tasks.py:343 ckanext/qa/tasks.py:348
#: ckanext/qa/templates/qa/openness_stars.html:24
#: ckanext/qa/templates/qa/openness_stars_brief.html:23
msgid "Reason"
msgstr ""

#: ckanext/qa/tasks.py:271
#, python-format
msgid "Error details: %s."
msgstr ""

#: ckanext/qa/tasks.py:272
#, python-format
msgid "Attempted on %s."
msgstr ""

#: ckanext/qa/tasks.py:276 ckanext/qa/tasks.py:284
#, python-format
msgid "This URL last worked on: %s."
msgstr ""

#: ckanext/qa/tasks.py:278
msgid "This was the first attempt."
msgstr ""

#: ckanext/qa/tasks.py:280
#, python-format
msgid "Tried %s times since %s."
msgstr ""

#: ckanext/qa/tasks.py:286
msgid "This URL has not worked in the history of this tool."
msgstr ""

#: ckanext/qa/tasks.py:321 ckanext/qa/tasks.py:351
msgid "This file had not been downloaded at the time of scoring it."
msgstr ""

#: ckanext/qa/tasks.py:326
#, python-format
msgid "Cache filepath does not exist: \"%s\"."
msgstr ""

#: ckanext/qa/tasks.py:334
#, python-format
msgid ""
"Content of file appeared to be format \"%s\" which receives openness score: "
"%s."
msgstr ""

#: ckanext/qa/tasks.py:337
msgid "The format of the file was not recognized from its contents."
msgstr ""

#: ckanext/qa/tasks.py:342
msgid "File was not downloaded deliberately"
msgstr ""

#: ckanext/qa/tasks.py:343 ckanext/qa/tasks.py:348
msgid "Using other methods to determine file openness."
msgstr ""

#: ckanext/qa/tasks.py:347
msgid "A system error occurred during downloading this file"
msgstr ""

#: ckanext/qa/tasks.py:368
msgid "Could not determine a file extension in the URL."
msgstr ""

#: ckanext/qa/tasks.py:375
#, python-format
msgid "URL extension \"%s\" relates to format \"%s\" and receives score: %s."
msgstr ""

#: ckanext/qa/tasks.py:379
#, python-format
msgid ""
"URL extension \"%s\" relates to format \"%s\" but a score for that format is "
"not configured, so giving it default score %s."
msgstr ""

#: ckanext/qa/tasks.py:381
#, python-format
msgid "URL extension \"%s\" is an unknown format."
msgstr ""

#: ckanext/qa/tasks.py:417
msgid "Format field is blank."
msgstr ""

#: ckanext/qa/tasks.py:422
#, python-format
msgid "Format field \"%s\" does not correspond to a known format."
msgstr ""

#: ckanext/qa/tasks.py:425
#, python-format
msgid "Format field \"%s\" receives score: %s."
msgstr ""

#: ckanext/qa/templates/qa/openness_stars.html:23
#: ckanext/qa/templates/snippets/organization.html:9
msgid "Openness"
msgstr ""

#: ckanext/qa/templates/qa/openness_stars.html:25
#: ckanext/qa/templates/qa/openness_stars_brief.html:23
msgid "Checked"
msgstr ""

#: ckanext/qa/templates/qa/openness_stars.html:27
#: ckanext/qa/templates/qa/openness_stars_brief.html:26
msgid "No openness information yet."
msgstr ""

#: ckanext/qa/templates/qa/stars.html:24
msgid "{0} out of {1}"
msgstr ""

#: ckanext/qa/templates/qa/stars_explained.html:7
msgid "Linked data - data URIs and linked to other data (e.g. RDF)"
msgstr ""

#: ckanext/qa/templates/qa/stars_explained.html:9
msgid "Linkable data - served at URIs (e.g. RDF)"
msgstr ""

#: ckanext/qa/templates/qa/stars_explained.html:11
msgid "Structured data in open format (e.g. CSV)"
msgstr ""

#: ckanext/qa/templates/qa/stars_explained.html:13
msgid "Structured data but proprietry format (e.g. Excel)"
msgstr ""

#: ckanext/qa/templates/qa/stars_explained.html:15
msgid "Unstructured data (e.g. PDF)"
msgstr ""

#: ckanext/qa/templates/report/openness.html:3
#: ckanext/qa/templates/report/openness.html:57
msgid "Datasets given a score"
msgstr ""

#: ckanext/qa/templates/report/openness.html:4
msgid "Totals"
msgstr ""

#: ckanext/qa/templates/report/openness.html:8
#: ckanext/qa/templates/report/openness.html:29
#: ckanext/qa/templates/report/openness.html:62
msgid "Score TBC"
msgstr ""

#: ckanext/qa/templates/report/openness.html:10
#: ckanext/qa/templates/report/openness.html:31
#: ckanext/qa/templates/report/openness.html:87
msgid "Score"
msgstr ""

#: ckanext/qa/templates/report/openness.html:28
#: ckanext/qa/templates/report/openness.html:85
msgid "Publisher"
msgstr ""

#: ckanext/qa/templates/report/openness.html:33
#: ckanext/qa/templates/report/openness.html:56
msgid "Total stars"
msgstr ""

#: ckanext/qa/templates/report/openness.html:34
msgid "Average stars"
msgstr ""

#: ckanext/qa/templates/report/openness.html:55
msgid "Average score"
msgstr ""

#: ckanext/qa/templates/report/openness.html:58
msgid "Score frequencies"
msgstr ""

#: ckanext/qa/templates/report/openness.html:64
#, python-format
msgid "Score %(n)s"
msgstr ""

#: ckanext/qa/templates/report/openness.html:82
msgid "Dataset"
msgstr ""

#: ckanext/qa/templates/report/openness.html:83
msgid "Notes"
msgstr ""

#: ckanext/qa/templates/report/openness.html:88
msgid "Score reason"
msgstr ""

0 comments on commit 18ad883

Please sign in to comment.