Translate UI into English and french; Extend resources and outsource hardcoded String form codebase into resources.
This commit is contained in:
@@ -92,12 +92,12 @@ Partial Public Class frmFieldEditor
|
||||
Manager = GDViewer.GetAnnotationManager()
|
||||
Manager.InitFromGdViewer(GDViewer)
|
||||
Else
|
||||
Logger.Warn("Viewer could not be initialized!")
|
||||
Logger.Warn(Resources.Envelope.Viewer_could_not_be_initialized)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Logger.Warn("Viewer could not be initialized!")
|
||||
Logger.Error(ex)
|
||||
MsgBox("Viewer could not be initialized!" & vbNewLine & ex.Message)
|
||||
MsgBox(Resources.Envelope.Viewer_could_not_be_initialized & vbNewLine & ex.Message)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
@@ -302,7 +302,7 @@ Partial Public Class frmFieldEditor
|
||||
oAnnotation.Tag = GetAnnotationTag(pReceiverId, oPage, pElement.Id)
|
||||
Else
|
||||
Dim oStatus = Manager.GetStat()
|
||||
MsgBox(String.Format("GDViewer returned error [{0}] on action [{1}]", oStatus.ToString, "LoadAnnotation"))
|
||||
MsgBox(String.Format(Resources.Envelope.GdViewer_ActionError, oStatus.ToString(), "LoadAnnotation"))
|
||||
Logger.Error("GDViewer returned error [{0}] on action [{1}]", oStatus.ToString, "LoadAnnotation")
|
||||
End If
|
||||
End Sub
|
||||
@@ -389,7 +389,7 @@ Partial Public Class frmFieldEditor
|
||||
If oStatus = GdPictureStatus.OK Then
|
||||
Return True
|
||||
Else
|
||||
MsgBox(String.Format("GDViewer returned error [{0}] on action [{1}]", oStatus.ToString, pAction))
|
||||
MsgBox(String.Format(Resources.Envelope.GdViewer_ActionError, oStatus.ToString(), pAction))
|
||||
Logger.Error("GDViewer returned error [{0}] on action [{1}]", oStatus.ToString, pAction)
|
||||
Return False
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user