Skip to content

Commit

Permalink
language fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrara1n committed Oct 4, 2017
1 parent 538f2ae commit 2b2e485
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions MiTranslate/frmStart.vb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ Public Class frmStart

Private Sub frmStart_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'Sprachflagge richtig setzen
If My.Settings.language = "de" Then
btnLanguage.Image = Global.MiToolkit.My.Resources.Resources.DE
ElseIf My.Settings.language = "en" Then
btnLanguage.Image = Global.MiToolkit.My.Resources.Resources.DE
If My.Settings.language = "en" Then
btnLanguage.Image = Global.MiToolkit.My.Resources.Resources.US
End If

Expand Down
10 changes: 4 additions & 6 deletions MiTranslate/frmToken.vb
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
oProcess2.WaitForExit()
If doBackup() < 20000000 Then
Dim strBackupError As String
If My.Settings.language = "de" Then
strBackupError = "Es scheint ein Fehler aufgetreten zu sein, das Backup ist viel zu klein."
ElseIf My.Settings.language = "en" Then
strBackupError = "Es scheint ein Fehler aufgetreten zu sein, das Backup ist viel zu klein."
If My.Settings.language = "en" Then
strBackupError = "There seems to be an error with the backup, it is way too small."
End If
MsgBox(strBackupError)
Else
Dim strBackupExtract As String
If My.Settings.language = "de" Then
strBackupExtract = "Backup erfolgreich, wird jetzt entpackt."
ElseIf My.Settings.language = "en" Then
strBackupExtract = "Backup erfolgreich, wird jetzt entpackt."
If My.Settings.language = "en" Then
strBackupExtract = "Backup successful, starting extraction."
End If
MsgBox(strBackupExtract)
Expand Down
10 changes: 4 additions & 6 deletions MiTranslate/modFunctions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,14 @@ Module modFunctions
Dim strBackupEncrypted As String
Dim strBackupNormal As String
If frmTranslation.pbSchloss.Visible = True Then
If My.Settings.language = "de" Then
strBackupEncrypted = "Als Passwort 123 eingeben!"
ElseIf My.Settings.language = "en" Then
strBackupEncrypted = "Als Passwort 123 eingeben!"
If My.Settings.language = "en" Then
strBackupEncrypted = "Use 123 as password!"
End If
MsgBox(strBackupEncrypted, MsgBoxStyle.Information)
Else
If My.Settings.language = "de" Then
strBackupNormal = "Bei der Sicherung KEIN Passwort vergeben!"
ElseIf My.Settings.language = "en" Then
strBackupNormal = "Bei der Sicherung KEIN Passwort vergeben!"
If My.Settings.language = "en" Then
strBackupNormal = "Don't set a password for the backup!"
End If
MsgBox(strBackupNormal)
Expand Down

0 comments on commit 2b2e485

Please sign in to comment.