Move two resource strings from Resources.resx to Language.resx.

This commit is contained in:
rmcardle
2012-01-22 20:58:47 -06:00
parent c155ac234e
commit 4d4fd79ce1
5 changed files with 27 additions and 27 deletions

View File

@@ -1031,7 +1031,7 @@ Namespace App
LoadConnections()
Exit Sub
Else
MsgBox(String.Format(My.Resources.strErrorStartupConnectionFileLoad, vbNewLine, Application.ProductName, GetStartupConnectionFileName(), ex.Message), MsgBoxStyle.OkOnly + MsgBoxStyle.Critical)
MsgBox(String.Format(My.Language.strErrorStartupConnectionFileLoad, vbNewLine, Application.ProductName, GetStartupConnectionFileName(), ex.Message), MsgBoxStyle.OkOnly + MsgBoxStyle.Critical)
Application.Exit()
End If
End If

View File

@@ -1555,6 +1555,15 @@ Namespace My
End Get
End Property
'''<summary>
''' Looks up a localized string similar to The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit..
'''</summary>
Friend Shared ReadOnly Property strErrorStartupConnectionFileLoad() As String
Get
Return ResourceManager.GetString("strErrorStartupConnectionFileLoad", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to VerifyDatabaseVersion (Config.Connections.Save) failed. {0}.
'''</summary>
@@ -5483,6 +5492,15 @@ Namespace My
End Get
End Property
'''<summary>
''' Looks up a localized string similar to mRemoteNG Portable Edition does not currently support automatic updates..
'''</summary>
Friend Shared ReadOnly Property strUpdateCheckPortableEdition() As String
Get
Return ResourceManager.GetString("strUpdateCheckPortableEdition", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Error deleting update file!.
'''</summary>

View File

@@ -2043,4 +2043,10 @@ mRemoteNG will now quit and begin with the installation.</value>
<data name="strLabelHostname">
<value xml:space="preserve">Hostname:</value>
</data>
<data name="strErrorStartupConnectionFileLoad" xml:space="preserve">
<value>The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit.</value>
</data>
<data name="strUpdateCheckPortableEdition" xml:space="preserve">
<value>mRemoteNG Portable Edition does not currently support automatic updates.</value>
</data>
</root>

View File

@@ -753,28 +753,10 @@ Namespace My.Resources
End Get
End Property
'''<summary>
''' Looks up a localized string similar to The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit..
'''</summary>
Friend ReadOnly Property strErrorStartupConnectionFileLoad() As String
Get
Return ResourceManager.GetString("strErrorStartupConnectionFileLoad", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to mRemoteNG Portable Edition does not currently support automatic updates..
'''</summary>
Friend ReadOnly Property strUpdateCheckPortableEdition() As String
Get
Return ResourceManager.GetString("strUpdateCheckPortableEdition", resourceCulture)
End Get
End Property
Friend ReadOnly Property Tab_Icon() As System.Drawing.Icon
Get
Dim obj As Object = ResourceManager.GetObject("Tab_Icon", resourceCulture)
Return CType(obj, System.Drawing.Icon)
Return CType(obj,System.Drawing.Icon)
End Get
End Property

View File

@@ -117,7 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="_Error" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Images\Error.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
@@ -444,11 +444,5 @@
</data>
<data name="News" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Images_FamFamFam\News.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="strUpdateCheckPortableEdition">
<value xml:space="preserve">mRemoteNG Portable Edition does not currently support automatic updates.</value>
</data>
<data name="strErrorStartupConnectionFileLoad">
<value xml:space="preserve">The startup connection file could not be loaded.{0}{0}{2}{0}{3}{0}{0}In order to prevent data loss, {1} will now exit.</value>
</data>
</root>