SVGHMI: Fix typo in error message formating in i18n. svghmi
authorEdouard Tisserant
Tue, 23 Mar 2021 14:09:55 +0100
branchsvghmi
changeset 3198 d9c8f8789fc8
parent 3196 f1049e4df866
child 3199 1582753e409b
SVGHMI: Fix typo in error message formating in i18n.
svghmi/i18n.py
--- a/svghmi/i18n.py	Tue Mar 23 05:15:19 2021 +0100
+++ b/svghmi/i18n.py	Tue Mar 23 14:09:55 2021 +0100
@@ -96,7 +96,7 @@
             msg = translation.pop(msgid, None)
             if msg is None:
                 broken_lang.add(langcode)
-                errcallback(_('{}: Missing translation for "{}" (label:{}, id:{})\n').format(lang,msgid,label,svgid))
+                errcallback(_('{}: Missing translation for "{}" (label:{}, id:{})\n').format(langcode,msgid,label,svgid))
                 translated_message.append(msgid)
             else:
                 translated_message.append(msg)
@@ -121,7 +121,7 @@
             broken = True
             errcallback(_('{}: Unused translation "{}":"{}"\n').format(langcode,msgid,msg))
         if broken or langcode in broken_lang:
-            errcallback(_('Translation for {} is outdated, please edit {}.po, click "Catalog -> Update from POT File..." and select messages.pot.\n').format(lang,lang))
+            errcallback(_('Translation for {} is outdated, please edit {}.po, click "Catalog -> Update from POT File..." and select messages.pot.\n').format(langcode,langcode))
 
 
     return langs,translated_messages