Skip to content

Commit

Permalink
Merge branch 'janeczku:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
holta authored Aug 17, 2024
2 parents d037ac8 + ca92dbb commit 7813878
Show file tree
Hide file tree
Showing 54 changed files with 561 additions and 318 deletions.
3 changes: 2 additions & 1 deletion cps/tasks/thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def generate_book_thumbnail(self, book, thumbnail):
img.format = thumbnail.format
img.save(filename=filename)
else:
with open(filename, 'rb') as fd:
stream.seek(0)
with open(filename, 'wb') as fd:
copyfileobj(stream, fd)

except Exception as ex:
Expand Down
Binary file modified cps/translations/cs/LC_MESSAGES/messages.mo
Binary file not shown.
30 changes: 19 additions & 11 deletions cps/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Calibre-Web\n"
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
"POT-Creation-Date: 2024-08-14 19:28+0200\n"
"POT-Creation-Date: 2024-08-17 13:50+0200\n"
"PO-Revision-Date: 2020-06-09 21:11+0100\n"
"Last-Translator: Lukas Heroudek <[email protected]>\n"
"Language: cs_CZ\n"
Expand All @@ -15,7 +15,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.1\n"
"Generated-By: Babel 2.15.0\n"

#: cps/about.py:88
msgid "Statistics"
Expand Down Expand Up @@ -297,7 +297,7 @@ msgstr ""
#: cps/admin.py:1953 cps/admin.py:2074 cps/editbooks.py:228
#: cps/editbooks.py:309 cps/editbooks.py:1252 cps/shelf.py:90 cps/shelf.py:150
#: cps/shelf.py:193 cps/shelf.py:243 cps/shelf.py:280 cps/shelf.py:354
#: cps/shelf.py:468 cps/tasks/convert.py:156 cps/web.py:1528
#: cps/shelf.py:471 cps/tasks/convert.py:156 cps/web.py:1528
#, python-format
msgid "Oops! Database Error: %(error)s."
msgstr "Chyba databáze: %(error)s."
Expand Down Expand Up @@ -1253,12 +1253,12 @@ msgstr "Veřejná police s názvem '%(title)s' již existuje."
msgid "A private shelf with the name '%(title)s' already exists."
msgstr "Osobní police s názvem ‘%(title)s’ již existuje."

#: cps/shelf.py:473
#: cps/shelf.py:476
#, python-format
msgid "Shelf: '%(name)s'"
msgstr "Police: '%(name)s'"

#: cps/shelf.py:477
#: cps/shelf.py:480
msgid "Error opening shelf. Shelf does not exist or is not accessible"
msgstr "Chyba otevírání police. Police neexistuje nebo není přístupná"

Expand Down Expand Up @@ -1564,21 +1564,21 @@ msgstr ""
msgid "Backing up Metadata"
msgstr "upravit metadata"

#: cps/tasks/thumbnail.py:95
#: cps/tasks/thumbnail.py:96
#, python-format
msgid "Generated %(count)s cover thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:228 cps/tasks/thumbnail.py:441
#: cps/tasks/thumbnail.py:509
#: cps/tasks/thumbnail.py:230 cps/tasks/thumbnail.py:443
#: cps/tasks/thumbnail.py:511
msgid "Cover Thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:287
#: cps/tasks/thumbnail.py:289
msgid "Generated {0} series thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:452
#: cps/tasks/thumbnail.py:454
msgid "Clearing cover thumbnail cache"
msgstr ""

Expand Down Expand Up @@ -1887,7 +1887,7 @@ msgstr ""

#: cps/templates/author.html:56 cps/templates/author.html:115
#: cps/templates/index.html:30 cps/templates/index.html:113
#: cps/templates/search.html:67 cps/templates/shelf.html:55
#: cps/templates/search.html:67 cps/templates/shelf.html:57
msgid "reduce"
msgstr "redukovat"

Expand Down Expand Up @@ -3430,6 +3430,14 @@ msgstr ""
msgid "Enable Change order"
msgstr ""

#: cps/templates/shelf.html:28
msgid "Sort according to book added to shelf, newest first"
msgstr ""

#: cps/templates/shelf.html:29
msgid "Sort according to book added to shelf, oldest first"
msgstr ""

#: cps/templates/shelf_edit.html:14
msgid "Share with Everyone"
msgstr "Sdílet se všemi"
Expand Down
Binary file modified cps/translations/de/LC_MESSAGES/messages.mo
Binary file not shown.
64 changes: 33 additions & 31 deletions cps/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Calibre-Web\n"
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
"POT-Creation-Date: 2024-08-14 19:28+0200\n"
"PO-Revision-Date: 2024-08-05 18:35+0200\n"
"POT-Creation-Date: 2024-08-17 13:50+0200\n"
"PO-Revision-Date: 2024-08-17 13:49+0200\n"
"Last-Translator: Ozzie Isaacs\n"
"Language: de\n"
"Language-Team: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.1\n"
"Generated-By: Babel 2.15.0\n"

#: cps/about.py:88
msgid "Statistics"
Expand Down Expand Up @@ -289,7 +289,7 @@ msgstr "G-Mail Konto verifiziert."
#: cps/admin.py:1953 cps/admin.py:2074 cps/editbooks.py:228
#: cps/editbooks.py:309 cps/editbooks.py:1252 cps/shelf.py:90 cps/shelf.py:150
#: cps/shelf.py:193 cps/shelf.py:243 cps/shelf.py:280 cps/shelf.py:354
#: cps/shelf.py:468 cps/tasks/convert.py:156 cps/web.py:1528
#: cps/shelf.py:471 cps/tasks/convert.py:156 cps/web.py:1528
#, python-format
msgid "Oops! Database Error: %(error)s."
msgstr "Datenbankfehler: %(error)s."
Expand Down Expand Up @@ -617,9 +617,9 @@ msgid "edit metadata"
msgstr "Metadaten editieren"

#: cps/editbooks.py:1023
#, fuzzy, python-format
#, python-format
msgid "Seriesindex: %(seriesindex)s is not a valid number, skipping"
msgstr "%(seriesindex)s ist keine gültige Zahl, Eintrag wird ignoriert"
msgstr "Serien index %(seriesindex)s ist keine gültige Zahl, Eintrag wird ignoriert"

#: cps/editbooks.py:1207
msgid "User has no rights to upload additional file formats"
Expand Down Expand Up @@ -1217,12 +1217,12 @@ msgstr "Es existiert bereit ein öffentliches Bücherregal mit dem Name '%(title
msgid "A private shelf with the name '%(title)s' already exists."
msgstr "Es existiert bereit ein privates Bücherregal mit dem Name '%(title)s'."

#: cps/shelf.py:473
#: cps/shelf.py:476
#, python-format
msgid "Shelf: '%(name)s'"
msgstr "Bücherregal: '%(name)s'"

#: cps/shelf.py:477
#: cps/shelf.py:480
msgid "Error opening shelf. Shelf does not exist or is not accessible"
msgstr "Fehler beim Öffnen des Bücherregals. Bücherregal exisitert nicht oder ist nicht zugänglich"

Expand Down Expand Up @@ -1517,21 +1517,21 @@ msgstr "E-Mail"
msgid "Backing up Metadata"
msgstr "Metadaten Backup läuft"

#: cps/tasks/thumbnail.py:95
#: cps/tasks/thumbnail.py:96
#, python-format
msgid "Generated %(count)s cover thumbnails"
msgstr "%(count)s Cover Miniaturansichten erzeugt"

#: cps/tasks/thumbnail.py:228 cps/tasks/thumbnail.py:441
#: cps/tasks/thumbnail.py:509
#: cps/tasks/thumbnail.py:230 cps/tasks/thumbnail.py:443
#: cps/tasks/thumbnail.py:511
msgid "Cover Thumbnails"
msgstr "Cover Miniaturansichtern"

#: cps/tasks/thumbnail.py:287
#: cps/tasks/thumbnail.py:289
msgid "Generated {0} series thumbnails"
msgstr "{0} Serien Miniaturansichten erzeugt"

#: cps/tasks/thumbnail.py:452
#: cps/tasks/thumbnail.py:454
msgid "Clearing cover thumbnail cache"
msgstr "Cover Miniaturansichten Cache wird gelöscht"

Expand Down Expand Up @@ -1838,7 +1838,7 @@ msgstr "Sortiere nach Herausgabedatum, Älteste zuerst"

#: cps/templates/author.html:56 cps/templates/author.html:115
#: cps/templates/index.html:30 cps/templates/index.html:113
#: cps/templates/search.html:67 cps/templates/shelf.html:55
#: cps/templates/search.html:67 cps/templates/shelf.html:57
msgid "reduce"
msgstr "Reduzieren"

Expand Down Expand Up @@ -3052,44 +3052,39 @@ msgstr "Schriftgröße"

#: cps/templates/read.html:105
msgid "Font"
msgstr ""
msgstr "Schriftart"

#: cps/templates/read.html:106
#, fuzzy
msgid "Default"
msgstr "Löschen"
msgstr "Standard"

#: cps/templates/read.html:107
msgid "Yahei"
msgstr ""
msgstr "Yahei"

#: cps/templates/read.html:108
msgid "SimSun"
msgstr ""
msgstr "SimSun"

#: cps/templates/read.html:109
#, fuzzy
msgid "KaiTi"
msgstr "Wartend"
msgstr "KaiTi"

#: cps/templates/read.html:110
#, fuzzy
msgid "Arial"
msgstr "Vertikal"
msgstr "Arial"

#: cps/templates/read.html:113
#, fuzzy
msgid "Spread"
msgstr "Gelesen"
msgstr "Aufteilung"

#: cps/templates/read.html:114
msgid "Two columns"
msgstr ""
msgstr "Zwei Spalten"

#: cps/templates/read.html:115
#, fuzzy
msgid "One column"
msgstr "Ungültige Lese Spalte"
msgstr "Eine Spalte"

#: cps/templates/readcbr.html:8
msgid "Comic Reader"
Expand Down Expand Up @@ -3357,6 +3352,14 @@ msgstr "Manuelles Sortieren deaktivieren"
msgid "Enable Change order"
msgstr "Manuelles Sortieren aktivieren"

#: cps/templates/shelf.html:28
msgid "Sort according to book added to shelf, newest first"
msgstr "Sortiere nach Buch zu Bücherregal hinzugefügt, Neuestes zuerst"

#: cps/templates/shelf.html:29
msgid "Sort according to book added to shelf, oldest first"
msgstr "Sortiere nach Buch zu Bücherregal hinzugefügt, Ältestes zuerst"

#: cps/templates/shelf_edit.html:14
msgid "Share with Everyone"
msgstr "Bücherregal mit anderen Benutzern teilen"
Expand Down Expand Up @@ -3426,9 +3429,8 @@ msgid "Run Time"
msgstr "Laufzeit"

#: cps/templates/tasks.html:19
#, fuzzy
msgid "Message"
msgstr "Zusammenführen"
msgstr "Meldung"

#: cps/templates/tasks.html:21
msgid "Actions"
Expand All @@ -3448,7 +3450,7 @@ msgstr "Benutzerpasswort zurücksetzen"

#: cps/templates/user_edit.html:28
msgid "Send to eReader Email Address. Use comma to separate emails for multiple eReaders"
msgstr ""
msgstr "An die E-Mail-Adresse des E-Readers senden. Kommas verwenden, um E-Mails für mehrere E-Reader zu trennen"

#: cps/templates/user_edit.html:43
msgid "Language of Books"
Expand Down
Binary file modified cps/translations/el/LC_MESSAGES/messages.mo
Binary file not shown.
30 changes: 19 additions & 11 deletions cps/translations/el/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Calibre-Web\n"
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
"POT-Creation-Date: 2024-08-14 19:28+0200\n"
"POT-Creation-Date: 2024-08-17 13:50+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Depountis Georgios\n"
"Language: el\n"
Expand All @@ -15,7 +15,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.1\n"
"Generated-By: Babel 2.15.0\n"

#: cps/about.py:88
msgid "Statistics"
Expand Down Expand Up @@ -297,7 +297,7 @@ msgstr ""
#: cps/admin.py:1953 cps/admin.py:2074 cps/editbooks.py:228
#: cps/editbooks.py:309 cps/editbooks.py:1252 cps/shelf.py:90 cps/shelf.py:150
#: cps/shelf.py:193 cps/shelf.py:243 cps/shelf.py:280 cps/shelf.py:354
#: cps/shelf.py:468 cps/tasks/convert.py:156 cps/web.py:1528
#: cps/shelf.py:471 cps/tasks/convert.py:156 cps/web.py:1528
#, python-format
msgid "Oops! Database Error: %(error)s."
msgstr "Σφάλμα βάσης δεδομένων: %(error)s."
Expand Down Expand Up @@ -1253,12 +1253,12 @@ msgstr "Ένα δημόσιο ράφι με το όνομα '%(title)s' υπάρ
msgid "A private shelf with the name '%(title)s' already exists."
msgstr "Ένα ιδιωτικό ράφι με το όνομα '%(title)s' υπάρχει ήδη."

#: cps/shelf.py:473
#: cps/shelf.py:476
#, python-format
msgid "Shelf: '%(name)s'"
msgstr "Ράφι: '%(name)s"

#: cps/shelf.py:477
#: cps/shelf.py:480
msgid "Error opening shelf. Shelf does not exist or is not accessible"
msgstr "Σφάλμα κατά το άνοιγμα του ραφιού. Το ράφι δεν υπάρχει ή δεν είναι προσβάσιμο"

Expand Down Expand Up @@ -1564,21 +1564,21 @@ msgstr ""
msgid "Backing up Metadata"
msgstr "επεξεργασία μεταδεδομένων"

#: cps/tasks/thumbnail.py:95
#: cps/tasks/thumbnail.py:96
#, python-format
msgid "Generated %(count)s cover thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:228 cps/tasks/thumbnail.py:441
#: cps/tasks/thumbnail.py:509
#: cps/tasks/thumbnail.py:230 cps/tasks/thumbnail.py:443
#: cps/tasks/thumbnail.py:511
msgid "Cover Thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:287
#: cps/tasks/thumbnail.py:289
msgid "Generated {0} series thumbnails"
msgstr ""

#: cps/tasks/thumbnail.py:452
#: cps/tasks/thumbnail.py:454
msgid "Clearing cover thumbnail cache"
msgstr ""

Expand Down Expand Up @@ -1887,7 +1887,7 @@ msgstr ""

#: cps/templates/author.html:56 cps/templates/author.html:115
#: cps/templates/index.html:30 cps/templates/index.html:113
#: cps/templates/search.html:67 cps/templates/shelf.html:55
#: cps/templates/search.html:67 cps/templates/shelf.html:57
msgid "reduce"
msgstr "μείωση"

Expand Down Expand Up @@ -3430,6 +3430,14 @@ msgstr ""
msgid "Enable Change order"
msgstr ""

#: cps/templates/shelf.html:28
msgid "Sort according to book added to shelf, newest first"
msgstr ""

#: cps/templates/shelf.html:29
msgid "Sort according to book added to shelf, oldest first"
msgstr ""

#: cps/templates/shelf_edit.html:14
msgid "Share with Everyone"
msgstr "Κοινοποίηση με Όλους"
Expand Down
Binary file modified cps/translations/es/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit 7813878

Please sign in to comment.