Skip to content

Commit 9512783

Browse files
mmckydoudenpre-commit-ci[bot]
authored
MAINT: Minor changes to some translations and pre-commit fix (Updates to PR #146) (#154)
* Update MANIFEST.in to include more sphinx_proof files Added *.json, *.mo, and *.py files from the sphinx_proof directory to the package manifest for more comprehensive distribution. Removed global recursive inclusion of *.pot, *.po, and *.mo files. * Expand translation coverage for proof terms Added and updated translations for mathematical proof terms in multiple languages across all JSON files. Also updated and added compiled .mo files for new and existing locales to support broader internationalization. * Add support for notation directive and translations Introduces a new 'notation' directive and node to the Sphinx Proof extension, including registration in NODE_TYPES and PROOF_TYPES. Adds a Notation.json file with translations for 'Notation' in multiple languages and updates .mo files for localization support. * Fix incorrect translations for Remark and Proposition - Fixed Remark translations that incorrectly used 'Observation': - Spanish (es): Observación → Nota - Portuguese (pt): Observação → Nota - Italian (it): Osservazione → Nota - Greek (el): Παρατήρηση → Σημείωση - Romanian (ro): Observație → Remarcă - Fixed Proposition translation in Polish: - Polish (pl): Twierdzenie → Propozycja (Twierdzenie means 'Theorem', not 'Proposition') - Regenerated all affected locale .mo files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix duplicate NotationDirective class definition Removed duplicate NotationDirective class that was causing issues. Only one NotationDirective definition is needed. * Fix duplicate notation_node class definition Removed duplicate notation_node class in nodes.py. Only one notation_node definition is needed. --------- Co-authored-by: Dennis den Ouden-van der Horst <d.denouden-vanderhorst@tudelft.nl> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9ad5f96 commit 9512783

10 files changed

Lines changed: 9 additions & 6 deletions

File tree

sphinx_proof/nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class unenumerable_node(nodes.Admonition, nodes.Element):
187187
class assumption_node(nodes.Admonition, nodes.Element):
188188
pass
189189

190+
190191
class notation_node(nodes.Admonition, nodes.Element):
191192
pass
192193

sphinx_proof/proof_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ class AssumptionDirective(ElementDirective):
9494

9595
name = "assumption"
9696

97+
9798
class NotationDirective(ElementDirective):
9899
"""A custom notation directive."""
99100

100101
name = "notation"
101102

103+
102104
PROOF_TYPES = {
103105
"axiom": AxiomDirective,
104106
"theorem": TheoremDirective,

sphinx_proof/translations/jsons/Proposition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{"language":"Italian","symbol":"it","text":"Proposizione"},
1414
{"language":"Turkish","symbol":"tr","text":"Önerme"},
1515
{"language":"Vietnamese","symbol":"vi","text":"Mệnh đề"},
16-
{"language":"Polish","symbol":"pl","text":"Twierdzenie"},
16+
{"language":"Polish","symbol":"pl","text":"Propozycja"},
1717
{"language":"Dutch","symbol":"nl","text":"Propositie"},
1818
{"language":"Indonesian","symbol":"id","text":"Proposisi"},
1919
{"language":"Thai","symbol":"th","text":"ประพจน์"},

sphinx_proof/translations/jsons/Remark.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[
22
{"language":"English","symbol":"en","text":"Remark"},
33
{"language":"Chinese","symbol":"zh_CN","text":"注记"},
4-
{"language":"Spanish","symbol":"es","text":"Observación"},
4+
{"language":"Spanish","symbol":"es","text":"Nota"},
55
{"language":"Arabic","symbol":"ar","text":"ملاحظة"},
66
{"language":"Hindi","symbol":"hi","text":"टिप्पणी"},
7-
{"language":"Portuguese","symbol":"pt","text":"Observação"},
7+
{"language":"Portuguese","symbol":"pt","text":"Nota"},
88
{"language":"Russian","symbol":"ru","text":"Замечание"},
99
{"language":"Japanese","symbol":"ja","text":"注意"},
1010
{"language":"French","symbol":"fr","text":"Remarque"},
1111
{"language":"German","symbol":"de","text":"Bemerkung"},
1212
{"language":"Korean","symbol":"ko","text":"주의"},
13-
{"language":"Italian","symbol":"it","text":"Osservazione"},
13+
{"language":"Italian","symbol":"it","text":"Nota"},
1414
{"language":"Turkish","symbol":"tr","text":"Not"},
1515
{"language":"Vietnamese","symbol":"vi","text":"Chú ý"},
1616
{"language":"Polish","symbol":"pl","text":"Uwaga"},
@@ -19,11 +19,11 @@
1919
{"language":"Thai","symbol":"th","text":"หมายเหตุ"},
2020
{"language":"Persian","symbol":"fa","text":"توجه"},
2121
{"language":"Ukrainian","symbol":"uk","text":"Зауваження"},
22-
{"language":"Greek","symbol":"el","text":"Παρατήρηση"},
22+
{"language":"Greek","symbol":"el","text":"Σημείωση"},
2323
{"language":"Czech","symbol":"cs","text":"Poznámka"},
2424
{"language":"Swedish","symbol":"sv","text":"Anmärkning"},
2525
{"language":"Hebrew","symbol":"he","text":"הערה"},
26-
{"language":"Romanian","symbol":"ro","text":"Observație"},
26+
{"language":"Romanian","symbol":"ro","text":"Remarcă"},
2727
{"language":"Hungarian","symbol":"hu","text":"Megjegyzés"},
2828
{"language":"Danish","symbol":"da","text":"Bemærkning"},
2929
{"language":"Finnish","symbol":"fi","text":"Huomautus"},
-4 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)