Skip to content

Commit

Permalink
Validation for sync code is only for the code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Jul 2, 2023
1 parent 69f63ee commit 63d03b6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion calibre-plugin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def save_settings(self):

if not LibbyClient.is_valid_sync_code(setup_code):
# save a http request for get_chip()
raise Exception(_("Invalid setup code: %s") % setup_code)
raise Exception(_("Invalid setup code format: %s") % setup_code)

libby_client = LibbyClient(logger=logger)
chip_res = libby_client.get_chip()
Expand Down
4 changes: 2 additions & 2 deletions calibre-plugin/translations/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-07-02 18:45+0800\n"
"POT-Creation-Date: 2023-07-02 19:30+0800\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 @@ -108,6 +108,6 @@ msgid "Libby is not configured yet."
msgstr ""

#: calibre-plugin/config.py:135
msgid "Invalid setup code: %s"
msgid "Invalid setup code format: %s"
msgstr ""

6 changes: 3 additions & 3 deletions calibre-plugin/translations/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-07-02 18:45+0800\n"
"PO-Revision-Date: 2023-07-02 18:47+0800\n"
"POT-Creation-Date: 2023-07-02 19:30+0800\n"
"PO-Revision-Date: 2023-07-02 19:31+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ja\n"
Expand Down Expand Up @@ -109,5 +109,5 @@ msgid "Libby is not configured yet."
msgstr ""

#: calibre-plugin/config.py:135
msgid "Invalid setup code: %s"
msgid "Invalid setup code format: %s"
msgstr ""
6 changes: 3 additions & 3 deletions calibre-plugin/translations/ko.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-07-02 18:45+0800\n"
"PO-Revision-Date: 2023-07-02 18:47+0800\n"
"POT-Creation-Date: 2023-07-02 19:30+0800\n"
"PO-Revision-Date: 2023-07-02 19:31+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ko\n"
Expand Down Expand Up @@ -109,5 +109,5 @@ msgid "Libby is not configured yet."
msgstr "Libby가 구성되지 않았습니다."

#: calibre-plugin/config.py:135
msgid "Invalid setup code: %s"
msgid "Invalid setup code format: %s"
msgstr ""
6 changes: 3 additions & 3 deletions calibre-plugin/translations/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-07-02 18:45+0800\n"
"PO-Revision-Date: 2023-07-02 18:46+0800\n"
"POT-Creation-Date: 2023-07-02 19:30+0800\n"
"PO-Revision-Date: 2023-07-02 19:31+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -109,5 +109,5 @@ msgid "Libby is not configured yet."
msgstr "Libby未配置。"

#: calibre-plugin/config.py:135
msgid "Invalid setup code: %s"
msgid "Invalid setup code format: %s"
msgstr ""
6 changes: 3 additions & 3 deletions calibre-plugin/translations/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-07-02 18:45+0800\n"
"PO-Revision-Date: 2023-07-02 18:46+0800\n"
"POT-Creation-Date: 2023-07-02 19:30+0800\n"
"PO-Revision-Date: 2023-07-02 19:30+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_TW\n"
Expand Down Expand Up @@ -109,5 +109,5 @@ msgid "Libby is not configured yet."
msgstr "Libby未配置。"

#: calibre-plugin/config.py:135
msgid "Invalid setup code: %s"
msgid "Invalid setup code format: %s"
msgstr ""

0 comments on commit 63d03b6

Please sign in to comment.