Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF translation support, and write XML using buffer #1849

Merged
merged 7 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
239 changes: 159 additions & 80 deletions indigo/locale/af/LC_MESSAGES/django.po

Large diffs are not rendered by default.

172 changes: 104 additions & 68 deletions indigo/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: 2023-04-25 17:06+0200\n"
"POT-Creation-Date: 2023-10-12 09:54+0200\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"
Expand Down Expand Up @@ -72,52 +72,61 @@ msgstr ""
msgid "%(type)s %(number)s of %(year)s"
msgstr ""

#: bulk_creator.py:281
#: bulk_creator.py:294
#, python-format
msgid "Error talking to Google Sheets: %s"
msgstr ""

#: bulk_creator.py:288
msgid "Your sheet did not import successfully; please check that you have link sharing ON (Anyone with the link)."
#: bulk_creator.py:301
msgid ""
"Your sheet did not import successfully; please check that you have link "
"sharing ON (Anyone with the link)."
msgstr ""

#: bulk_creator.py:321
#: bulk_creator.py:334
#, python-format
msgid "Unable to access spreadsheet. Is the URL correct and have you shared it with %s?"
msgid ""
"Unable to access spreadsheet. Is the URL correct and have you shared it with "
"%s?"
msgstr ""

#: bulk_creator.py:327
#: bulk_creator.py:340
#, python-format
msgid "There doesn't appear to be data in sheet %(name)s of %(id)s"
msgstr ""

#: bulk_creator.py:914
#: bulk_creator.py:956
msgid "Link gazette"
msgstr ""

#: bulk_creator.py:915
#: bulk_creator.py:957
msgid ""
"This work's gazette (original publication document) couldn't be linked automatically.\n"
"This work's gazette (original publication document) couldn't be linked "
"automatically.\n"
"\n"
"Find it and upload it manually."
msgstr ""

#: bulk_creator.py:920
#: bulk_creator.py:962
msgid "Import content"
msgstr ""

#: bulk_creator.py:921
msgid "Import the content for this work – either the initial publication (usually a PDF of the Gazette) or a later consolidation (usually a .docx file)."
#: bulk_creator.py:963
msgid ""
"Import the content for this work – either the initial publication (usually a "
"PDF of the Gazette) or a later consolidation (usually a .docx file)."
msgstr ""

#: bulk_creator.py:924
#: bulk_creator.py:966
msgid "Link commencement (passive)"
msgstr ""

#: bulk_creator.py:925
#: bulk_creator.py:967
#, python-format
msgid ""
"It looks like this work was commenced by \"%(commenced_by)s\" on %(date)s (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically. This work has thus been recorded as 'Not commenced'.\n"
"It looks like this work was commenced by \"%(commenced_by)s\" on %(date)s "
"(see row %(row_num)s of the spreadsheet), but it couldn't be linked "
"automatically. This work has thus been recorded as 'Not commenced'.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -126,30 +135,34 @@ msgid ""
"Please link the commencement date and commencing work manually."
msgstr ""

#: bulk_creator.py:933
#: bulk_creator.py:975
msgid "(unknown)"
msgstr ""

#: bulk_creator.py:938
#: bulk_creator.py:980
msgid "'Commences on' date missing"
msgstr ""

#: bulk_creator.py:939
#: bulk_creator.py:981
#, python-format
msgid ""
"It looks like this work commences \"%(commences)s\" (see row %(row_num)s of the spreadsheet), but 'commences_on_date' wasn't given so no action has been taken.\n"
"It looks like this work commences \"%(commences)s\" (see row %(row_num)s of "
"the spreadsheet), but 'commences_on_date' wasn't given so no action has been "
"taken.\n"
"\n"
"If it should be linked, please do so manually."
msgstr ""

#: bulk_creator.py:947
#: bulk_creator.py:989
msgid "Link commencement (active)"
msgstr ""

#: bulk_creator.py:948
#: bulk_creator.py:990
#, python-format
msgid ""
"It looks like this work commences \"%(commences)s\" on %(date)s (see row %(row_num)s of the spreadsheet), but \"%(commences)s\" wasn't found, so no action has been taken.\n"
"It looks like this work commences \"%(commences)s\" on %(date)s (see row "
"%(row_num)s of the spreadsheet), but \"%(commences)s\" wasn't found, so no "
"action has been taken.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -158,14 +171,15 @@ msgid ""
"If the commencement should be linked, please do so manually."
msgstr ""

#: bulk_creator.py:961
#: bulk_creator.py:1003
msgid "Link amendment (active)"
msgstr ""

#: bulk_creator.py:965
#: bulk_creator.py:1007
#, python-format
msgid ""
"It looks like this work amends \"%(amended_work)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work amends \"%(amended_work)s\" (see row %(row_num)s of "
"the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -175,14 +189,15 @@ msgid ""
"Please link the amendment manually."
msgstr ""

#: bulk_creator.py:978
#: bulk_creator.py:1020
msgid "Link amendment (passive)"
msgstr ""

#: bulk_creator.py:982
#: bulk_creator.py:1024
#, python-format
msgid ""
"It looks like this work is amended by \"%(amending_work)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work is amended by \"%(amending_work)s\" (see row "
"%(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -192,38 +207,44 @@ msgid ""
"Please link the amendment manually."
msgstr ""

#: bulk_creator.py:995
#: bulk_creator.py:1037
msgid "Link amendment (pending commencement)"
msgstr ""

#: bulk_creator.py:996
#: bulk_creator.py:1038
#, python-format
msgid ""
"It looks like this work amends %(amended_title)s (%(numbered_title)s), but it couldn't be linked automatically because this work hasn't commenced yet (so there's no date for the amendment).\n"
"It looks like this work amends %(amended_title)s (%(numbered_title)s), but "
"it couldn't be linked automatically because this work hasn't commenced yet "
"(so there's no date for the amendment).\n"
"\n"
"Please link the amendment manually (and apply it) when this work comes into force."
"Please link the amendment manually (and apply it) when this work comes into "
"force."
msgstr ""

#: bulk_creator.py:1004
#: bulk_creator.py:1046
msgid "Apply amendment"
msgstr ""

#: bulk_creator.py:1005
#: bulk_creator.py:1047
#, python-format
msgid ""
"Apply the amendments made by %(amending_title)s (%(numbered_title)s) on %(date)s.\n"
"Apply the amendments made by %(amending_title)s (%(numbered_title)s) on "
"%(date)s.\n"
"\n"
"The amendment has already been linked, so start at Step 3 of https://docs.laws.africa/managing-works/amending-works."
"The amendment has already been linked, so start at Step 3 of https://docs."
"laws.africa/managing-works/amending-works."
msgstr ""

#: bulk_creator.py:1014
#: bulk_creator.py:1056
msgid "Link repealed by"
msgstr ""

#: bulk_creator.py:1015
#: bulk_creator.py:1057
#, python-format
msgid ""
"It looks like this work was repealed by \"%(repealed_by)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work was repealed by \"%(repealed_by)s\" (see row "
"%(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -232,14 +253,15 @@ msgid ""
"Please link the repeal manually."
msgstr ""

#: bulk_creator.py:1027 bulk_creator.py:1064
#: bulk_creator.py:1069 bulk_creator.py:1106
msgid "Link repeal"
msgstr ""

#: bulk_creator.py:1028
#: bulk_creator.py:1070
#, python-format
msgid ""
"It looks like this work repeals \"%(repeals)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work repeals \"%(repeals)s\" (see row %(row_num)s of the "
"spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -248,48 +270,56 @@ msgid ""
"Please link the repeal manually."
msgstr ""

#: bulk_creator.py:1040
#: bulk_creator.py:1082
msgid "Check / update repeal"
msgstr ""

#: bulk_creator.py:1041
#: bulk_creator.py:1083
#, python-format
msgid ""
"On the spreadsheet (see row %(row_num)s), it says that this work was repealed by %(repealing_title)s (%(repealing_numbered_title)s).\n"
"On the spreadsheet (see row %(row_num)s), it says that this work was "
"repealed by %(repealing_title)s (%(repealing_numbered_title)s).\n"
"\n"
"But this work is already listed as having been repealed by %(repealed_by)s (%(repealed_by_numbered_title)s), so the repeal information wasn't updated automatically.\n"
"But this work is already listed as having been repealed by %(repealed_by)s "
"(%(repealed_by_numbered_title)s), so the repeal information wasn't updated "
"automatically.\n"
"\n"
"If the old / existing repeal information was wrong, update it manually. Otherwise (if the spreadsheet was wrong), cancel this task with a comment.\n"
"If the old / existing repeal information was wrong, update it manually. "
"Otherwise (if the spreadsheet was wrong), cancel this task with a comment.\n"
msgstr ""

#: bulk_creator.py:1055
#: bulk_creator.py:1097
msgid "Link repeal (pending commencement)"
msgstr ""

#: bulk_creator.py:1056
#: bulk_creator.py:1098
#, python-format
msgid ""
"It looks like this work repeals %(title)s (%(numbered_title)s), but it couldn't be linked automatically because this work hasn't commenced yet (so there's no date for the repeal).\n"
"It looks like this work repeals %(title)s (%(numbered_title)s), but it "
"couldn't be linked automatically because this work hasn't commenced yet (so "
"there's no date for the repeal).\n"
"\n"
"Please link the repeal manually when this work comes into force."
msgstr ""

#: bulk_creator.py:1065
#: bulk_creator.py:1107
#, python-format
msgid ""
"It looks like this work was repealed by %(title)s (%(numbered_title)s), but it couldn't be linked automatically.\n"
"It looks like this work was repealed by %(title)s (%(numbered_title)s), but "
"it couldn't be linked automatically.\n"
"\n"
"Please link it manually."
msgstr ""

#: bulk_creator.py:1073
#: bulk_creator.py:1115
msgid "Link primary work"
msgstr ""

#: bulk_creator.py:1074
#: bulk_creator.py:1116
#, python-format
msgid ""
"It looks like this work's primary work is \"%(work)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work's primary work is \"%(work)s\" (see row %(row_num)s "
"of the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -298,14 +328,15 @@ msgid ""
"Please link the primary work manually."
msgstr ""

#: bulk_creator.py:1086
#: bulk_creator.py:1128
msgid "Link subleg"
msgstr ""

#: bulk_creator.py:1087
#: bulk_creator.py:1129
#, python-format
msgid ""
"It looks like this work has subleg \"%(subleg)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work has subleg \"%(subleg)s\" (see row %(row_num)s of "
"the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
Expand All @@ -314,39 +345,44 @@ msgid ""
"Please link the subleg work manually."
msgstr ""

#: bulk_creator.py:1099
#: bulk_creator.py:1141
msgid "Check / update primary work"
msgstr ""

#: bulk_creator.py:1100
#: bulk_creator.py:1142
#, python-format
msgid ""
"On the spreadsheet (see row %(row_num)s), it says that this work is subleg under %(title)s (%(numbered_title)s).\n"
"On the spreadsheet (see row %(row_num)s), it says that this work is subleg "
"under %(title)s (%(numbered_title)s).\n"
"\n"
"But this work is already subleg under %(parent)s, so nothing was done.\n"
"\n"
"Double-check which work this work is subleg of and update it manually if needed. If the spreadsheet was wrong, cancel this task with a comment."
"Double-check which work this work is subleg of and update it manually if "
"needed. If the spreadsheet was wrong, cancel this task with a comment."
msgstr ""

#: bulk_creator.py:1112
#: bulk_creator.py:1154
msgid "Link taxonomy"
msgstr ""

#: bulk_creator.py:1113
#: bulk_creator.py:1155
#, python-format
msgid ""
"It looks like this work has the following taxonomy: \"%(topics)s\" (see row %(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"It looks like this work has the following taxonomy: \"%(topics)s\" (see row "
"%(row_num)s of the spreadsheet), but it couldn't be linked automatically.\n"
"\n"
"Possible reasons:\n"
"– a typo in the spreadsheet\n"
"– the taxonomy doesn't exist on the system."
msgstr ""

#: bulk_creator.py:1165
#: bulk_creator.py:1235
#, python-format
msgid "%s (about to be imported)"
msgstr ""

#: pipelines/text.py:30
msgid "There is not enough text in the document to import. You may need to OCR the file first."
msgid ""
"There is not enough text in the document to import. You may need to OCR the "
"file first."
msgstr ""
Loading
Loading