Logging for translations

This commit is contained in:
Jonathan Jenne 2022-11-03 09:54:24 +01:00
parent b9f8703e78
commit ba7347faff
3 changed files with 7 additions and 0 deletions

View File

@ -306,6 +306,7 @@ Public Class ClassControlCreator
Try
control.Text = row.Item("CTRL_CAPTION_LANG")
Catch ex As Exception
Logger.Warn("Label [{0}] does not have a translation!", control.Name)
control.Text = row.Item("CTRL_TEXT")
End Try

View File

@ -337,6 +337,10 @@ Public Class ClassInit
User.UserId = USER_ID
User.Language = USER_LANGUAGE
LOGGER.Debug("User Info:")
LOGGER.Debug("Language: [{0}]", USER_LANGUAGE)
LOGGER.Debug("Username: [{0}]", USER_USERNAME)
Try
USER_RIGHT_FILE_DELETE = IIf(IsDBNull(DT_CHECKUSER_MODULE.Rows(0).Item("USER_RIGHT_FILE_DEL")), False, DT_CHECKUSER_MODULE.Rows(0).Item("USER_RIGHT_FILE_DEL"))

View File

@ -148,6 +148,8 @@ Public Class frmValidator
Try
LOGGER.Debug("###frmValidation_Load###")
LOGGER.Debug("Current User Language: [{0}]", USER_LANGUAGE)
' Operation mode is either guessed from service settings
' or explictly set from OperationModeOverride in Params
OperationMode = GetOperationMode()