mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-10 20:10:00 +00:00
Added langugae support for Cholón (fixes #2183)
This commit is contained in:
parent
974549b1af
commit
01cc97c1b2
@ -17,6 +17,9 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from .iso_language_names import LANGUAGE_NAMES as _LANGUAGE_NAMES
|
||||
from . import logger
|
||||
|
||||
log = logger.create()
|
||||
|
||||
|
||||
try:
|
||||
@ -50,7 +53,10 @@ def get_language_names(locale):
|
||||
|
||||
|
||||
def get_language_name(locale, lang_code):
|
||||
try:
|
||||
return get_language_names(locale)[lang_code]
|
||||
except KeyError:
|
||||
log.error('Missing translation for language name: {}'.format(lang_code))
|
||||
|
||||
|
||||
def get_language_codes(locale, language_names, remainder=None):
|
||||
|
@ -79,6 +79,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "choctawština",
|
||||
"chp": "čipeva",
|
||||
"chr": "čerokézština",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "čuvaština",
|
||||
"chy": "čejenština",
|
||||
@ -499,6 +500,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyan",
|
||||
"chr": "Cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Altkirchenslawisch",
|
||||
"chv": "Tschuwaschisch",
|
||||
"chy": "Cheyenne",
|
||||
@ -916,6 +918,7 @@ LANGUAGE_NAMES = {
|
||||
"chn": "Chinook jargon",
|
||||
"chp": "Chipewyan",
|
||||
"cho": "Choctaw",
|
||||
"cht": "Cholón",
|
||||
"chk": "Chuukese",
|
||||
"chv": "Chuvash",
|
||||
"cop": "Κοπτικά",
|
||||
@ -1294,6 +1297,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyan",
|
||||
"chr": "Cheroqui",
|
||||
"cht": "Cholón",
|
||||
"chu": "Eslavo antiguo",
|
||||
"chv": "Chuvasio",
|
||||
"chy": "Cheyenne",
|
||||
@ -1714,6 +1718,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "choctaw",
|
||||
"chp": "chipewyan",
|
||||
"chr": "cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "tšuvassi",
|
||||
"chy": "cheyenne",
|
||||
@ -2134,6 +2139,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "choctaw",
|
||||
"chp": "chipewyan",
|
||||
"chr": "cherokee",
|
||||
"cht": "cholón",
|
||||
"chu": "slavon; ancien",
|
||||
"chv": "tchouvache",
|
||||
"chy": "cheyenne",
|
||||
@ -2554,6 +2560,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "csoktó",
|
||||
"chp": "csippeva",
|
||||
"chr": "cserokí",
|
||||
"cht": "Cholón",
|
||||
"chu": "szláv; ószláv",
|
||||
"chv": "csuvas",
|
||||
"chy": "csejen",
|
||||
@ -2974,6 +2981,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyan",
|
||||
"chr": "Cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavo antico",
|
||||
"chv": "Chuvash",
|
||||
"chy": "Cheyenne",
|
||||
@ -3394,6 +3402,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "チョクトー語",
|
||||
"chp": "チペワイアン語",
|
||||
"chr": "チェロキー語",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "チュヴァシュ語",
|
||||
"chy": "シャイアン語",
|
||||
@ -3814,6 +3823,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyan",
|
||||
"chr": "Cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "Chuvash",
|
||||
"chy": "Cheyenne",
|
||||
@ -4234,6 +4244,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyaans",
|
||||
"chr": "Cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavisch; oud (kerk)",
|
||||
"chv": "Tsjoevasjisch",
|
||||
"chy": "Cheyenne",
|
||||
@ -4654,6 +4665,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "czoktaw",
|
||||
"chp": "chipewyan",
|
||||
"chr": "czerokeski",
|
||||
"cht": "Cholón",
|
||||
"chu": "starosłowiański",
|
||||
"chv": "czuwaski",
|
||||
"chy": "czejeński",
|
||||
@ -5071,6 +5083,7 @@ LANGUAGE_NAMES = {
|
||||
"chn": "Chinook jargon",
|
||||
"chp": "Chipewyan",
|
||||
"cho": "Choctaw",
|
||||
"cht": "Cholón",
|
||||
"chk": "Chuukese",
|
||||
"chv": "Chuvash",
|
||||
"cop": "Coptic",
|
||||
@ -5447,6 +5460,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Чоктав",
|
||||
"chp": "Чипевианский",
|
||||
"chr": "Чероки",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "Чувашский",
|
||||
"chy": "Чейенн",
|
||||
@ -5867,6 +5881,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chopi",
|
||||
"chr": "Cherokesiska",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; antik",
|
||||
"chv": "Tjuvasjiska",
|
||||
"chy": "Cheyenne",
|
||||
@ -6284,6 +6299,7 @@ LANGUAGE_NAMES = {
|
||||
"chn": "Chinook lehçesi (Kuzey Batı Amerika kıyıları)",
|
||||
"chp": "Chipewyan (Kuzey Amerika yerlileri)",
|
||||
"cho": "Choctaw (Kuzey Amerika yerlileri)",
|
||||
"cht": "Cholón",
|
||||
"chk": "Chuukese",
|
||||
"chv": "Çuvaş (Türkçe)",
|
||||
"cop": "Kıptice (Eski Mısır)",
|
||||
@ -6660,6 +6676,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "чоктау",
|
||||
"chp": "чипев’ян",
|
||||
"chr": "черокі",
|
||||
"cht": "чолон",
|
||||
"chu": "давньослов’янська",
|
||||
"chv": "чуваська",
|
||||
"chy": "шаєнн",
|
||||
@ -7080,6 +7097,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "乔克托语",
|
||||
"chp": "奇佩维安语",
|
||||
"chr": "切罗基语",
|
||||
"cht": "Cholón",
|
||||
"chu": "斯拉夫语(古教会)",
|
||||
"chv": "楚瓦什语",
|
||||
"chy": "夏延语",
|
||||
@ -7497,6 +7515,7 @@ LANGUAGE_NAMES = {
|
||||
"chn": "Chinook jargon",
|
||||
"chp": "Chipewyan",
|
||||
"cho": "Choctaw",
|
||||
"cht": "Cholón",
|
||||
"chk": "Chuukese",
|
||||
"chv": "Chuvash",
|
||||
"cop": "Coptic",
|
||||
@ -7873,6 +7892,7 @@ LANGUAGE_NAMES = {
|
||||
"cho": "Choctaw",
|
||||
"chp": "Chipewyan",
|
||||
"chr": "Cherokee",
|
||||
"cht": "Cholón",
|
||||
"chu": "Slavonic; Old",
|
||||
"chv": "Chuvash",
|
||||
"chy": "Cheyenne",
|
||||
|
Binary file not shown.
@ -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: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-06-09 21:11+0100\n"
|
||||
"Last-Translator: Lukas Heroudek <lukas.heroudek@gmail.com>\n"
|
||||
"Language: cs_CZ\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2021-08-01 17:24+0200\n"
|
||||
"Last-Translator: Ozzie Isaacs\n"
|
||||
"Language: de\n"
|
||||
|
Binary file not shown.
@ -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: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Depountis Georgios\n"
|
||||
"Language: el\n"
|
||||
|
Binary file not shown.
@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-05-25 17:22+0200\n"
|
||||
"Last-Translator: minakmostoles <xxx@xxx.com>\n"
|
||||
"Language: es\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-01-12 13:56+0100\n"
|
||||
"Last-Translator: Samuli Valavuo <svalavuo@gmail.com>\n"
|
||||
"Language: fi\n"
|
||||
|
Binary file not shown.
@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-06-07 06:47+0200\n"
|
||||
"Last-Translator: <thovi98@gmail.com>\n"
|
||||
"Language: fr\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2019-04-06 23:36+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language: hu\n"
|
||||
|
Binary file not shown.
@ -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: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2017-04-04 15:09+0200\n"
|
||||
"Last-Translator: ElQuimm <quimm@webtaste.com>\n"
|
||||
"Language: it\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2018-02-07 02:20-0500\n"
|
||||
"Last-Translator: white <space_white@yahoo.com>\n"
|
||||
"Language: ja\n"
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2018-08-27 17:06+0700\n"
|
||||
"Last-Translator: \n"
|
||||
"Language: km_KH\n"
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web (GPLV3)\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-12-12 08:20+0100\n"
|
||||
"Last-Translator: Marcel Maas <marcel.maas@outlook.com>\n"
|
||||
"Language: nl\n"
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre Web - polski (POT: 2021-06-12 08:52)\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2021-06-12 15:35+0200\n"
|
||||
"Last-Translator: Radosław Kierznowski <radek.kierznowski@outlook.com>\n"
|
||||
"Language: pl\n"
|
||||
|
Binary file not shown.
@ -4,7 +4,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: br\n"
|
||||
|
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-04-29 01:20+0400\n"
|
||||
"Last-Translator: ZIZA\n"
|
||||
"Language: ru\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2021-05-13 11:00+0000\n"
|
||||
"Last-Translator: Jonatan Nyberg <jonatan.nyberg.karl@gmail.com>\n"
|
||||
"Language: sv\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-04-23 22:47+0300\n"
|
||||
"Last-Translator: iz <iz7iz7iz@protonmail.ch>\n"
|
||||
"Language: tr\n"
|
||||
|
Binary file not shown.
@ -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: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2017-04-30 00:47+0300\n"
|
||||
"Last-Translator: ABIS Team <biblio.if.abis@gmail.com>\n"
|
||||
"Language: uk\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-09-27 22:18+0800\n"
|
||||
"Last-Translator: xlivevil <xlivevil@aliyun.com>\n"
|
||||
"Language: zh_CN\n"
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calibre-Web\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\n"
|
||||
"PO-Revision-Date: 2020-09-27 22:18+0800\n"
|
||||
"Last-Translator: xlivevil <xlivevil@aliyun.com>\n"
|
||||
"Language: zh_TW\n"
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2021-10-30 16:37+0200\n"
|
||||
"POT-Creation-Date: 2021-11-20 11:24+0100\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"
|
||||
|
Loading…
Reference in New Issue
Block a user