Fixed computation of missing translations

This commit is contained in:
squidfunk 2023-01-30 21:13:55 +01:00
parent 97b4798dd6
commit 109614b612
4 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
# Map names and available translations # Map names and available translations
names[code] = name names[code] = name
known[code] = dict(re.findall( known[code] = dict(re.findall(
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data, r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
re.MULTILINE re.MULTILINE
)) ))

View File

@ -9,7 +9,7 @@
"announce.dismiss": "非表示にします", "announce.dismiss": "非表示にします",
"blog.archive": "過去の投稿", "blog.archive": "過去の投稿",
"blog.categories": "カテゴリー", "blog.categories": "カテゴリー",
"blog.categories.in": " ", "blog.categories.in": "",
"blog.continue": "続きを読む", "blog.continue": "続きを読む",
"blog.draft": "下書き", "blog.draft": "下書き",
"blog.index": "ブログトップへ戻る", "blog.index": "ブログトップへ戻る",

View File

@ -51,7 +51,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
# Map names and available translations # Map names and available translations
names[code] = name names[code] = name
known[code] = dict(re.findall( known[code] = dict(re.findall(
r"^ \"([^\"]+)\": \"([^\"]+)\"(?:,|$)?", data, r"^ \"([^\"]+)\": \"([^\"]*)\"(?:,|$)?", data,
re.MULTILINE re.MULTILINE
)) ))

View File

@ -29,7 +29,7 @@
"announce.dismiss": "非表示にします", "announce.dismiss": "非表示にします",
"blog.archive": "過去の投稿", "blog.archive": "過去の投稿",
"blog.categories": "カテゴリー", "blog.categories": "カテゴリー",
"blog.categories.in": " ", "blog.categories.in": "",
"blog.continue": "続きを読む", "blog.continue": "続きを読む",
"blog.draft": "下書き", "blog.draft": "下書き",
"blog.index": "ブログトップへ戻る", "blog.index": "ブログトップへ戻る",