Skip to content

Commit 68923f7

Browse files
committed
fix: Improved translations
1 parent 1678eba commit 68923f7

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/children.html.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Context:
8888
) %}
8989
{% if classes %}
9090
{% if config.show_category_heading %}
91-
{% filter heading(heading_level, id=html_id ~ "-classes", skip_inventory=config.skip_local_inventory) %}Classes{% endfilter %}
91+
{% filter heading(heading_level, id=html_id ~ "-classes", skip_inventory=config.skip_local_inventory) %}{{ lang.t("Classes") }}{% endfilter %}
9292
{% endif %}
9393
{% with heading_level = heading_level + extra_level %}
9494
{% for class in classes|order_members(config.members_order, members_list) %}
@@ -108,7 +108,7 @@ Context:
108108
) %}
109109
{% if functions %}
110110
{% if config.show_category_heading %}
111-
{% filter heading(heading_level, id=html_id ~ "-functions", skip_inventory=config.skip_local_inventory) %}Functions{% endfilter %}
111+
{% filter heading(heading_level, id=html_id ~ "-functions", skip_inventory=config.skip_local_inventory) %}{{ lang.t("Functions") }}{% endfilter %}
112112
{% endif %}
113113
{% with heading_level = heading_level + extra_level %}
114114
{% for function in functions|order_members(config.members_order, members_list) %}
@@ -131,7 +131,7 @@ Context:
131131
) %}
132132
{% if modules %}
133133
{% if config.show_category_heading %}
134-
{% filter heading(heading_level, id=html_id ~ "-modules", skip_inventory=config.skip_local_inventory) %}Modules{% endfilter %}
134+
{% filter heading(heading_level, id=html_id ~ "-modules", skip_inventory=config.skip_local_inventory) %}{{ lang.t("Modules") }}{% endfilter %}
135135
{% endif %}
136136
{% with heading_level = heading_level + extra_level %}
137137
{% for module in modules|order_members("alphabetical", members_list) %}

src/mkdocstrings_handlers/python/templates/material/_base/languages/en.html.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010
{% macro t(key) %}{{ {
1111
"ATTRIBUTE": "ATTRIBUTE",
12+
"Attributes": "Attributes",
1213
"Attributes:": "Attributes:",
1314
"BOUND:": "BOUND:",
1415
"Bound or Constraints": "Bound or Constraints",
16+
"Classes": "Classes",
1517
"Classes:": "Classes:",
1618
"Class Type Parameters:": "Class Type Parameters:",
1719
"CLASS TYPE PARAMETER": "CLASS TYPE PARAMETER",
@@ -23,12 +25,14 @@
2325
"DESCRIPTION": "DESCRIPTION",
2426
"Description": "Description",
2527
"Examples:": "Examples:",
28+
"Functions": "Functions",
2629
"Functions:": "Functions:",
2730
"FUNCTION": "FUNCTION",
2831
"Init Type Parameters:": "Init Type Parameters:",
2932
"INIT TYPE PARAMETER": "INIT TYPE PARAMETER",
3033
"Methods:": "Methods:",
3134
"METHOD": "METHOD",
35+
"Modules": "Modules",
3236
"Modules:": "Modules:",
3337
"MODULE": "MODULE",
3438
"Name": "Name",
@@ -45,6 +49,7 @@
4549
"Source code in": "Source code in",
4650
"TYPE:": "TYPE:",
4751
"Type": "Type",
52+
"Type Aliases": "Type Aliases",
4853
"Type Aliases:": "Type Aliases:",
4954
"TYPE ALIAS": "TYPE ALIAS",
5055
"Type Parameters:": "Type Parameters:",

src/mkdocstrings_handlers/python/templates/material/_base/languages/ja.html.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010
{% macro t(key) %}{{ {
1111
"ATTRIBUTE": "属性",
12+
"Attributes": "属性",
1213
"Attributes:": "属性:",
1314
"BOUND:": "境界:",
1415
"Bound or Constraints": "境界や制約",
16+
"Classes": "クラス",
1517
"Classes:": "クラス:",
1618
"Class Type Parameters:": "Class Type Parameters:",
1719
"CLASS TYPE PARAMETER": "CLASS TYPE PARAMETER",
@@ -23,12 +25,14 @@
2325
"DESCRIPTION": "デスクリプション",
2426
"Description": "デスクリプション",
2527
"Examples:": "例:",
28+
"Functions": "関数",
2629
"Functions:": "関数:",
2730
"FUNCTION": "関数",
2831
"Init Type Parameters:": "Init Type Parameters:",
2932
"INIT TYPE PARAMETER": "INIT TYPE PARAMETER",
3033
"Methods:": "メソッド:",
3134
"METHOD": "メソッド",
35+
"Modules": "モジュール",
3236
"Modules:": "モジュール:",
3337
"MODULE": "モジュール",
3438
"Name": "名前",
@@ -45,6 +49,7 @@
4549
"Source code in": "ソースコード位置:",
4650
"TYPE:": "タイプ:",
4751
"Type": "タイプ",
52+
"Type Aliases": "型エイリアス",
4853
"Type Aliases:": "型エイリアス:",
4954
"TYPE ALIAS": "型エイリアス",
5055
"Type Parameters:": "型パラメータ:",

src/mkdocstrings_handlers/python/templates/material/_base/languages/zh.html.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010
{% macro t(key) %}{{ {
1111
"ATTRIBUTE": "属性",
12+
"Attributes": "属性",
1213
"Attributes:": "属性:",
1314
"BOUND:": "边界:",
1415
"Bound or Constraints": "边界或约束",
16+
"Classes": "类",
1517
"Classes:": "类:",
1618
"Class Type Parameters:": "Class Type Parameters:",
1719
"CLASS TYPE PARAMETER": "CLASS TYPE PARAMETER",
@@ -23,12 +25,14 @@
2325
"DESCRIPTION": "描述",
2426
"Description": "描述",
2527
"Examples:": "示例:",
28+
"Functions": "函数",
2629
"Functions:": "函数:",
2730
"FUNCTION": "函数",
2831
"Init Type Parameters:": "Init Type Parameters:",
2932
"INIT TYPE PARAMETER": "INIT TYPE PARAMETER",
3033
"Methods:": "方法:",
3134
"METHOD": "方法",
35+
"Modules": "模块",
3236
"Modules:": "模块:",
3337
"MODULE": "模块",
3438
"Name": "名称",
@@ -45,6 +49,7 @@
4549
"Source code in": "源代码位于:",
4650
"TYPE:": "类型:",
4751
"Type": "类型",
52+
"Type Aliases": "类型别名",
4853
"Type Aliases:": "类型别名:",
4954
"TYPE ALIAS": "类型别名",
5055
"Type Parameters:": "类型形参:",

0 commit comments

Comments
 (0)