Skip to content

Commit

Permalink
slight more languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 16, 2024
1 parent fce6759 commit 286322f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 36 deletions.
4 changes: 0 additions & 4 deletions catalog/sites/douban_book.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import logging

from catalog.book.models import *
from catalog.book.utils import *
from catalog.common import *
from common.models.lang import detect_language

from .douban import *

_logger = logging.getLogger(__name__)


@SiteManager.register
class DoubanBook(AbstractSite):
Expand Down
1 change: 1 addition & 0 deletions common/models/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def get_locale_choices():
else:
choices.append((k, v))
choices += ZH_LOCALE_SUBTAGS.items()
choices.append(("zh", ISO_639_1["zh"]))
return choices


Expand Down
32 changes: 16 additions & 16 deletions locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ msgstr ""

#: common/models/lang.py:33
msgid "Tibetan"
msgstr ""
msgstr "藏语"

#: common/models/lang.py:34
msgid "Breton"
Expand Down Expand Up @@ -1530,7 +1530,7 @@ msgstr ""

#: common/models/lang.py:45
msgid "German"
msgstr ""
msgstr "德语"

#: common/models/lang.py:46
msgid "Divehi"
Expand Down Expand Up @@ -1566,7 +1566,7 @@ msgstr ""

#: common/models/lang.py:54
msgid "French"
msgstr ""
msgstr "法语"

#: common/models/lang.py:55
msgid "Frisian"
Expand Down Expand Up @@ -1666,15 +1666,15 @@ msgstr ""

#: common/models/lang.py:79
msgid "Italian"
msgstr ""
msgstr "意大利语"

#: common/models/lang.py:80
msgid "Javanese"
msgstr ""

#: common/models/lang.py:81
msgid "Japanese"
msgstr ""
msgstr "日语"

#: common/models/lang.py:82
msgid "Kalaallisut"
Expand Down Expand Up @@ -1722,7 +1722,7 @@ msgstr ""

#: common/models/lang.py:93
msgid "Korean"
msgstr ""
msgstr "韩语"

#: common/models/lang.py:94
msgid "Kuanyama"
Expand Down Expand Up @@ -1874,7 +1874,7 @@ msgstr ""

#: common/models/lang.py:132
msgid "Polish"
msgstr ""
msgstr "波兰语"

#: common/models/lang.py:133
msgid "Portuguese"
Expand All @@ -1898,7 +1898,7 @@ msgstr ""

#: common/models/lang.py:138
msgid "Russian"
msgstr ""
msgstr "俄语"

#: common/models/lang.py:139
msgid "Sango"
Expand Down Expand Up @@ -1946,7 +1946,7 @@ msgstr ""

#: common/models/lang.py:150
msgid "Spanish"
msgstr ""
msgstr "西班牙语"

#: common/models/lang.py:151
msgid "Albanian"
Expand Down Expand Up @@ -2038,11 +2038,11 @@ msgstr ""

#: common/models/lang.py:173
msgid "Ukrainian"
msgstr ""
msgstr "乌克兰语"

#: common/models/lang.py:174
msgid "Urdu"
msgstr ""
msgstr "乌尔都语"

#: common/models/lang.py:175
msgid "Uzbek"
Expand All @@ -2054,7 +2054,7 @@ msgstr ""

#: common/models/lang.py:177
msgid "Vietnamese"
msgstr ""
msgstr "越南语"

#: common/models/lang.py:178
msgid "Volapük"
Expand Down Expand Up @@ -2090,7 +2090,7 @@ msgstr ""

#: common/models/lang.py:186
msgid "Chinese"
msgstr ""
msgstr "中文"

#: common/models/lang.py:187
msgid "Pushto"
Expand All @@ -2102,7 +2102,7 @@ msgstr ""

#: common/models/lang.py:189
msgid "Arabic"
msgstr ""
msgstr "阿拉伯语"

#: common/models/lang.py:190
msgid "Bulgarian"
Expand All @@ -2118,15 +2118,15 @@ msgstr ""

#: common/models/lang.py:193
msgid "Persian"
msgstr ""
msgstr "波斯语"

#: common/models/lang.py:194
msgid "Hebrew"
msgstr ""

#: common/models/lang.py:195
msgid "Hindi"
msgstr ""
msgstr "印度语"

#: common/models/lang.py:196
msgid "Armenian"
Expand Down
32 changes: 16 additions & 16 deletions locale/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ msgstr ""

#: common/models/lang.py:33
msgid "Tibetan"
msgstr ""
msgstr "藏語"

#: common/models/lang.py:34
msgid "Breton"
Expand Down Expand Up @@ -1530,7 +1530,7 @@ msgstr ""

#: common/models/lang.py:45
msgid "German"
msgstr ""
msgstr "德語"

#: common/models/lang.py:46
msgid "Divehi"
Expand Down Expand Up @@ -1566,7 +1566,7 @@ msgstr ""

#: common/models/lang.py:54
msgid "French"
msgstr ""
msgstr "法語"

#: common/models/lang.py:55
msgid "Frisian"
Expand Down Expand Up @@ -1666,15 +1666,15 @@ msgstr ""

#: common/models/lang.py:79
msgid "Italian"
msgstr ""
msgstr "意大利語"

#: common/models/lang.py:80
msgid "Javanese"
msgstr ""

#: common/models/lang.py:81
msgid "Japanese"
msgstr ""
msgstr "日語"

#: common/models/lang.py:82
msgid "Kalaallisut"
Expand Down Expand Up @@ -1722,7 +1722,7 @@ msgstr ""

#: common/models/lang.py:93
msgid "Korean"
msgstr ""
msgstr "韓語"

#: common/models/lang.py:94
msgid "Kuanyama"
Expand Down Expand Up @@ -1874,7 +1874,7 @@ msgstr ""

#: common/models/lang.py:132
msgid "Polish"
msgstr ""
msgstr "波蘭語"

#: common/models/lang.py:133
msgid "Portuguese"
Expand All @@ -1898,7 +1898,7 @@ msgstr ""

#: common/models/lang.py:138
msgid "Russian"
msgstr ""
msgstr "俄語"

#: common/models/lang.py:139
msgid "Sango"
Expand Down Expand Up @@ -1946,7 +1946,7 @@ msgstr ""

#: common/models/lang.py:150
msgid "Spanish"
msgstr ""
msgstr "西班牙語"

#: common/models/lang.py:151
msgid "Albanian"
Expand Down Expand Up @@ -2038,11 +2038,11 @@ msgstr ""

#: common/models/lang.py:173
msgid "Ukrainian"
msgstr ""
msgstr "烏克蘭語"

#: common/models/lang.py:174
msgid "Urdu"
msgstr ""
msgstr "烏爾都語"

#: common/models/lang.py:175
msgid "Uzbek"
Expand All @@ -2054,7 +2054,7 @@ msgstr ""

#: common/models/lang.py:177
msgid "Vietnamese"
msgstr ""
msgstr "越南語"

#: common/models/lang.py:178
msgid "Volapük"
Expand Down Expand Up @@ -2090,7 +2090,7 @@ msgstr ""

#: common/models/lang.py:186
msgid "Chinese"
msgstr ""
msgstr "中文"

#: common/models/lang.py:187
msgid "Pushto"
Expand All @@ -2102,7 +2102,7 @@ msgstr ""

#: common/models/lang.py:189
msgid "Arabic"
msgstr ""
msgstr "阿拉伯語"

#: common/models/lang.py:190
msgid "Bulgarian"
Expand All @@ -2118,15 +2118,15 @@ msgstr ""

#: common/models/lang.py:193
msgid "Persian"
msgstr ""
msgstr "波斯語"

#: common/models/lang.py:194
msgid "Hebrew"
msgstr ""

#: common/models/lang.py:195
msgid "Hindi"
msgstr ""
msgstr "印度語"

#: common/models/lang.py:196
msgid "Armenian"
Expand Down

0 comments on commit 286322f

Please sign in to comment.