Skip to content

Commit

Permalink
templates: Make sure all text in templates is translated
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 11, 2021
1 parent 42693df commit 74ab43c
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 37 deletions.
206 changes: 205 additions & 1 deletion cove_ocds/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-10 16:08+0000\n"
"POT-Creation-Date: 2021-02-11 13:07+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -63,6 +63,10 @@ msgid ""
"entirety (key and value) from the data"
msgstr ""

#: cove_ocds/templates/cove_ocds/additional_checks_table.html:22
msgid "see all"
msgstr ""

#. Translators: Label of a button that triggers search
#: cove_ocds/templates/cove_ocds/base.html:53
#: cove_ocds/templates/cove_ocds/explore_base.html:52
Expand Down Expand Up @@ -258,10 +262,62 @@ msgstr ""
msgid "Load New File"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:24
msgid "Schema"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:29
#, python-format
msgid ""
"Your data specifies a version <strong>%(unrecognized_version_data)s</strong> "
"which is not recognised. For that reason, it's been checked against the "
"current default version."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:32
#, python-format
msgid ""
"This data has been checked against <a href=\"%(schema_url)s\">OCDS "
"%(release_or_record)s package schema version %(version_used_display)s</a>."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:32
msgid ""
"You can choose a different version of the schema to check and explore your "
"data."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:34
msgid "Check and explore same data against a different version of the schema"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:37
msgid ""
"Switching the schema version will result in changes to CoVE output and "
"conversions. If you revisit or share this URL, the lastest version selected "
"will be used to check your data"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:64
msgid "Convert"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:71
msgid ""
"There were <a href=\"#conversion-warning\">conversion warnings</a> when "
"processing your file. The converted data may not represent your data as you "
"want it to be."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:74
msgid "We have tried to convert your JSON into a spreadsheet format."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:74
#: cove_ocds/templates/cove_ocds/explore_base.html:98
msgid "The results can be seen below."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:81
#: cove_ocds/templates/cove_ocds/explore_base.html:86
#: cove_ocds/templates/cove_ocds/explore_base.html:112
Expand All @@ -272,6 +328,10 @@ msgstr ""
msgid "The JSON could not be converted to Spreadsheet due to the error:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:98
msgid "We have tried to convert your data into JSON format."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:124
msgid "Convert to Spreadsheet"
msgstr ""
Expand All @@ -280,10 +340,59 @@ msgstr ""
msgid "Schema Extensions"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:151
msgid ""
"Your data has been checked against schema version <strong>1.0</strong> and "
"includes extensions but extensions were not introduced in the schema until "
"version <strong>1.1</strong>."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:154
msgid "Your data contains the following schema extensions"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:154
msgid ", but it wasn't possible to fetch them"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:160
msgid "release schema"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:177
msgid "The following extensions failed:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:187
msgid ""
"Only those extensions successfully fetched were applied to extend the schema."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:189
msgid "All the extensions above were applied to extend the schema."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:191
msgid "Get a copy of the schema with extension patches applied"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:193
msgid ""
"None of the extensions above could be applied. Your data has been checked "
"against a schema with no extensions."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:206
msgid "Conversion Errors"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:211
#: cove_ocds/templates/cove_ocds/explore_base.html:233
msgid ""
"In order to check your data we need to convert it. During that conversion we "
"found the following issues:"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:228
msgid "Conversion Errors (titles)"
msgstr ""
Expand Down Expand Up @@ -321,6 +430,12 @@ msgstr ""
msgid "Structure Warnings"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:326
#: cove_ocds/templates/cove_ocds/explore_base.html:348
msgid ""
"Fixing the following issues will improve the interoperability of your data."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:343
#: cove_ocds/templates/cove_ocds/explore_base.html:481
#: cove_ocds/templates/cove_ocds/explore_base.html:484
Expand All @@ -331,6 +446,25 @@ msgstr ""
msgid "Codelist Errors"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:370
msgid ""
"The fields below use closed codelists. When using these fields, you <strong> "
"must </strong> use one of the pre-defined codelist values. If you use a "
"value that is not on the relevant codelist, your data will not pass "
"structural checks. Where you see + or - this indicates that the codelist has "
"been modified with these additions (+) or subtractions (-) by one or more "
"extensions."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:374
msgid ""
"You may need to create a mapping between your local codes and the OCDS "
"closed codelists to address these errors. In most cases, there will be a "
"‘detail’ field where you can also include your local codes. If you have "
"already completed a mapping, please review the spelling and capitalisation "
"used in these closed codelist fields."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:385
msgid "Additional Fields"
msgstr ""
Expand All @@ -348,6 +482,27 @@ msgstr ""
msgid "Additional Codelist Values"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:407
msgid ""
"Your data contains a number of fields that use an open codelist. You should "
"use values from the codelist whenever possible, but if the codelist does not "
"provide the values you need, you are permitted to add additional values. The "
"values below do not appear in the codelist; you should check that you "
"intended these as additional values. Where you see + or - this indicates "
"that the codelist has been modified with these additions (+) or subtractions "
"(-) by one or more extensions."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:413
msgid ""
"Make sure you list the definition of any additional codelist values you "
"include within your <a href=\"http://standard.open-contracting.org/latest/en/"
"implementation/publication_policy/\">publication policy</a>, and if you "
"believe they should be added as recommended values in the open codelist, "
"please suggest this via the <a href=\"https://github.com/open-contracting/"
"standard/issues/new\"> OCDS issue tracker.</a>"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_base.html:423
msgid "Additional Checks"
msgstr ""
Expand Down Expand Up @@ -447,11 +602,20 @@ msgstr ""
msgid "structural checks against "
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:25
msgid "OCDS record package schema version"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:26
#: cove_ocds/templates/cove_ocds/explore_release.html:24
msgid "See <a href=\"#validation-errors\">Structural Errors</a> below."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:30
#: cove_ocds/templates/cove_ocds/explore_release.html:33
msgid "At a glance"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:34
#, python-format
msgid "This file contains <strong>%(count)s record.</strong>"
Expand Down Expand Up @@ -544,6 +708,18 @@ msgstr ""
msgid "Is structurally correct?"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:105
#: cove_ocds/templates/cove_ocds/explore_record.html:167
#: cove_ocds/templates/cove_ocds/explore_record.html:168
msgid "No"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:105
#: cove_ocds/templates/cove_ocds/explore_record.html:167
#: cove_ocds/templates/cove_ocds/explore_record.html:168
msgid "Yes"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:115
msgid "Number of records"
msgstr ""
Expand All @@ -561,6 +737,10 @@ msgstr ""
msgid "Showing the first %(releases_or_records_table_length)s records."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:157
msgid "release count"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_record.html:185
#: cove_ocds/templates/cove_ocds/explore_release.html:428
msgid "Explore your data:"
Expand Down Expand Up @@ -589,6 +769,10 @@ msgid ""
"this feature to check whether any fields have changed unexpectedly."
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:23
msgid "OCDS release package schema version"
msgstr ""

#: cove_ocds/templates/cove_ocds/explore_release.html:28
msgid "<strong>Failed </strong>to apply "
msgstr ""
Expand Down Expand Up @@ -912,6 +1096,10 @@ msgstr ""
msgid "Procuring Entity:"
msgstr ""

#: cove_ocds/templates/cove_ocds/input.html:6
msgid "Loading"
msgstr ""

#: cove_ocds/templates/cove_ocds/input.html:13
msgid "Link"
msgstr ""
Expand Down Expand Up @@ -1139,6 +1327,10 @@ msgstr ""
msgid "Spreadsheet Location of first 3 errors"
msgstr ""

#: cove_ocds/templates/cove_ocds/validation_table.html:25
msgid "(more info)"
msgstr ""

#: cove_ocds/templates/cove_ocds/validation_table.html:28
msgid ""
"(Assuming these are embedded releases, because they have an <code>id</code>)."
Expand All @@ -1157,6 +1349,18 @@ msgstr ""
msgid "Line:"
msgstr ""

#: cove_ocds/templates/cove_ocds/validation_table.html:83
msgid "Sheet"
msgstr ""

#: cove_ocds/templates/cove_ocds/validation_table.html:83
msgid "Row"
msgstr ""

#: cove_ocds/templates/cove_ocds/validation_table.html:83
msgid "Column"
msgstr ""

#: cove_ocds/views.py:66 cove_ocds/views.py:77 cove_ocds/views.py:95
msgid "Sorry, we can't process that data"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion cove_ocds/templates/cove_ocds/additional_checks_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li>{{ value.json_location }}</li>
{% endfor %}
{% if values|length > 3 %}
<li><a data-toggle="modal" data-target=".{{"additional-checks-"|concat:forloop.counter}}"><sup>see all</sup></a></li>
<li><a data-toggle="modal" data-target=".{{"additional-checks-"|concat:forloop.counter}}"><sup>{% trans "see all" %}</sup></a></li>
{% endif %}
</ul>
</td>
Expand Down
Loading

0 comments on commit 74ab43c

Please sign in to comment.