Skip to content

Commit 6916a43

Browse files
committed
add appropriate code to allow string stranslation
1 parent 8475637 commit 6916a43

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
import winUser # clipboard manipulation
2727
import gettext
2828
_ = gettext.gettext
29+
30+
import addonHandler
31+
addonHandler.initTranslation()
32+
2933
from ctypes import windll # register clipboard formats
3034
from typing import Any, Optional
3135

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
import gettext
1212
_ = gettext.gettext
1313

14+
import addonHandler
15+
addonHandler.initTranslation()
16+
1417
from logHandler import log # logging
1518
from typing import Any, Dict, Union
1619

addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
import gettext
1414
_ = gettext.gettext
1515

16+
import addonHandler
17+
addonHandler.initTranslation()
18+
1619
###########################################################################
1720
## Class MathCATPreferencesDialog
1821
###########################################################################

addon/globalPlugins/MathCAT/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
# python3.dll has "Copyright © 2001-2022 Python Software Foundation; All Rights Reserved"
1111

1212

13-
import globalPlugins # we are a global plugin
1413
import globalPluginHandler # we are a global plugin
1514
import globalVars
1615
from logHandler import log # logging
1716
import mathPres # math plugin stuff
1817
from gui import mainFrame
1918
import wx
2019

20+
import addonHandler
21+
addonHandler.initTranslation()
22+
2123
from .MathCAT import MathCAT
2224
from .MathCATPreferences import UserInterface
2325

0 commit comments

Comments
 (0)