Skip to content

Commit ee21331

Browse files
committed
more i18n
1 parent f6b56aa commit ee21331

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

python/code/wypp/i18n.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ def tr(key: str, **kws) -> str:
154154
'1 successful test': '1 erfolgreicher Test',
155155
'all succesful': 'alle erfolgreich',
156156
'and stop of execution': 'und Abbruch der Ausführung',
157-
'all successful': 'alle erfolgreich'
157+
'all successful': 'alle erfolgreich',
158+
159+
'NOTE: running the code failed, some definitions might not be available in the interactive window!':
160+
'ACHTUNG: der Code enthält Fehler, einige Definition sind möglicherweise in interaktiven Fenster nicht verfügbar!'
158161

159162
}
160163

python/code/wypp/interactive.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from constants import *
99
from myLogging import *
1010
from exceptionHandler import handleCurrentException
11+
import i18n
1112

1213
def prepareInteractive(reset=True):
1314
print()
@@ -41,7 +42,7 @@ def enterInteractive(userDefs: dict, checkTypes: bool, loadingFailed: bool):
4142
globals()[k] = v
4243
print()
4344
if loadingFailed:
44-
print('NOTE: running the code failed, some definitions might not be available!')
45+
print(i18n.tr('NOTE: running the code failed, some definitions might not be available in the interactive window!'))
4546
print()
4647
if checkTypes:
4748
consoleClass = TypecheckedInteractiveConsole

0 commit comments

Comments
 (0)