Permalink
Browse files

Don't translate validation entry labels #213

Validation labels are now skipped in translation process - had to adda
a boolean to the label object so we can identify it.
  • Loading branch information...
jarvisteach committed Aug 16, 2017
1 parent 8b8f3ae commit 68c749f87941a22e1a48c4a8b1b41f3a29638fb2
Showing with 10 additions and 0 deletions.
  1. +10 −0 appJar/appjar.py
@@ -1429,6 +1429,15 @@ def changeLanguage(self, language):
for k in widgets.keys():
widg = widgets[k]
# skip validation labels - we don't need to translate them
try:
if kind == self.Label and widg.isValidation:
self.debug("\t\t" + k + "----> skipping, validation label")
continue
except:
pass
if self.config.has_option(section, k):
data = str(self.config.get(section, k))
else:
@@ -6760,6 +6769,7 @@ def __buildValidationEntry(self, title, frame, secret):
lab.pack(side=RIGHT, fill=Y)
lab.config(font=self.labelFont, background=self.__getContainerBg())
lab.inContainer = True
lab.isValidation = True
ent.lab = lab
self.n_labels[title] = lab

0 comments on commit 68c749f

Please sign in to comment.