Skip to content

Commit 6846b20

Browse files
authored
feat: add Czech translations, along with some missing ones (#4965)
1 parent 88a7fdf commit 6846b20

29 files changed

+228
-3
lines changed

src/core/dfn-index.js

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,51 @@ const localizationStrings = {
1919
en: {
2020
heading: "Index",
2121
headingExternal: "Terms defined by reference",
22-
headlingLocal: "Terms defined by this specification",
22+
headingLocal: "Terms defined by this specification",
2323
dfnOf: "definition of",
2424
},
25+
cs: {
26+
heading: "Glosář",
27+
headingExternal: "Termíny definované odkazem",
28+
headingLocal: "Termíny definované touto specifikací",
29+
dfnOf: "definice",
30+
},
31+
de: {
32+
heading: "Index",
33+
headingExternal: "Begriffe, die durch Verweis definiert sind",
34+
headingLocal: "Begriffe, die in dieser Spezifikation definiert sind",
35+
dfnOf: "Definition von",
36+
},
37+
es: {
38+
heading: "Índice",
39+
headingExternal: "Términos definidos por referencia",
40+
headingLocal: "Términos definidos por esta especificación",
41+
dfnOf: "definición de",
42+
},
43+
ja: {
44+
heading: "索引",
45+
headingExternal: "参照によって定義された用語",
46+
headingLocal: "この仕様で定義された用語",
47+
dfnOf: "の定義",
48+
},
49+
ko: {
50+
heading: "색인",
51+
headingExternal: "참조로 정의된 용어",
52+
headingLocal: "이 명세서에서 정의된 용어",
53+
dfnOf: "정의",
54+
},
55+
nl: {
56+
heading: "Index",
57+
headingExternal: "Termen gedefinieerd door verwijzing",
58+
headingLocal: "Termen gedefinieerd door deze specificatie",
59+
dfnOf: "definitie van",
60+
},
61+
zh: {
62+
heading: "索引",
63+
headingExternal: "通过引用定义的术语",
64+
headingLocal: "由本规范定义的术语",
65+
dfnOf: "的定义",
66+
},
2567
};
2668
const l10n = getIntlData(localizationStrings);
2769

@@ -64,7 +106,7 @@ export function run() {
64106
}
65107

66108
const localTermIndex = html`<section id="index-defined-here">
67-
<h3>${l10n.headlingLocal}</h3>
109+
<h3>${l10n.headingLocal}</h3>
68110
${createLocalTermIndex()}
69111
</section>`;
70112
index.append(localTermIndex);

src/core/examples.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const localizationStrings = {
3434
zh: {
3535
example: "例",
3636
},
37+
cs: {
38+
example: "Příklad",
39+
},
3740
};
3841

3942
const l10n = getIntlData(localizationStrings);

src/core/informative.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const localizationStrings = {
2525
zh: {
2626
informative: "本章节不包含规范性内容。",
2727
},
28+
cs: {
29+
informative: "Tato sekce není normativní.",
30+
},
2831
};
2932

3033
const l10n = getIntlData(localizationStrings);

src/core/issues-notes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ const localizationStrings = {
7373
note: "注",
7474
warning: "警告",
7575
},
76+
cs: {
77+
editors_note: "Poznámka editora",
78+
feature_at_risk: "(Funkce v ohrožení) Problém",
79+
issue: "Problém",
80+
issue_summary: "Souhrn problémů",
81+
no_issues_in_spec: "V této specifikaci nejsou uvedeny žádné problémy.",
82+
note: "Poznámka",
83+
warning: "Varování",
84+
},
7685
};
7786

7887
const l10n = getIntlData(localizationStrings);

src/core/link-to-dfn.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ const localizationStrings = {
5757
},
5858
duplicateTitle: "在文档中有重复的定义。",
5959
},
60+
cs: {
61+
/**
62+
* @param {string} title
63+
*/
64+
duplicateMsg(title) {
65+
return `Duplicitní definice '${title}'`;
66+
},
67+
duplicateTitle: "Toto je v dokumentu definováno vícekrát.",
68+
},
6069
};
6170
const l10n = getIntlData(localizationStrings);
6271

src/core/linter-rules/check-charset.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ const localizationStrings = {
1616
msg: `文档只能包含一个 charset 属性为 utf-8 的 \`<meta>\` 标签`,
1717
hint: `将此行添加到文档的 \`<head>\` 部分—— \`<meta charset="utf-8">\` 或将 charset 设置为 utf-8(如果尚未设置)。`,
1818
},
19+
cs: {
20+
msg: `Dokument smí obsahovat pouze jeden tag \`<meta>\` s charset nastaveným na 'utf-8'`,
21+
hint: `Přidejte tento řádek do sekce \`<head>\` vašeho dokumentu - \`<meta charset="utf-8">\` nebo nastavte charset na "utf-8", pokud ještě není nastaven.`,
22+
},
1923
};
2024
const l10n = getIntlData(localizationStrings);
2125

src/core/linter-rules/check-internal-slots.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const localizationStrings = {
1212
msg: "Internal slots should be preceded by a '.'",
1313
hint: "Add a '.' between the elements mentioned.",
1414
},
15+
cs: {
16+
msg: "Interní sloty by měly být uvedeny s tečkou '.' před názvem",
17+
hint: "Přidejte tečku '.' mezi uvedené prvky.",
18+
},
1519
};
1620
const l10n = getIntlData(localizationStrings);
1721

src/core/linter-rules/check-punctuation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const localizationStrings = {
1515
msg: "`p` elements should end with a punctuation mark.",
1616
hint: `Please make sure \`p\` elements end with one of: ${humanMarks}.`,
1717
},
18+
cs: {
19+
msg: "Elementy `p` by měly končit interpunkčním znaménkem.",
20+
hint: `Ujistěte se, že elementy \`p\` končí jedním z těchto znaků: ${humanMarks}.`,
21+
},
1822
};
1923
const l10n = getIntlData(localizationStrings);
2024

src/core/linter-rules/informative-dfn.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ const localizationStrings = {
2727
To silence this warning entirely, set \`lint: { "${ruleName}": false }\` in your \`respecConfig\`.`;
2828
},
2929
},
30+
cs: {
31+
msg(term, cite) {
32+
return `Nalezen normativní odkaz na "${term}", ale pojem je definován pouze informativně v "${cite}".`;
33+
},
34+
get hint() {
35+
return docLink`
36+
Můžete udělat jedno z následujícího...
37+
38+
* Požádejte o to, aby zdrojová definice byla normativní
39+
* Přidejte atribut \`class=\"lint-ignore\"\` k odkazu.
40+
* Použijte lokální normativní proxy pro definici, např. \`<dfn data-cite=\"spec\">term</dfn>\`
41+
42+
Pro úplné potlačení tohoto varování nastavte \`lint: { \"${ruleName}\": false }\` ve vaší \`respecConfig\`.`;
43+
},
44+
},
3045
};
3146
const l10n = getIntlData(localizationStrings);
3247

src/core/linter-rules/local-refs-exist.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const localizationStrings = {
1313
msg: "Broken local reference found in document.",
1414
hint: "Please fix the links mentioned.",
1515
},
16+
cs: {
17+
msg: "V dokumentu byla nalezena nefunkční lokální reference.",
18+
hint: "Opravte prosím uvedené odkazy.",
19+
},
1620
};
1721
const l10n = getIntlData(localizationStrings);
1822

0 commit comments

Comments
 (0)