This commit is contained in:
Peter Wilson 2015-11-19 13:13:01 -06:00
commit e6ae567695
4 changed files with 13 additions and 5 deletions

View File

@ -51,8 +51,8 @@ namespace EduNetworkBuilder
{
TheNetImage = new Bitmap(myWidth, myHeight);
PuzzleName = Name;
NetMessage = new LanguageStrings("message");
NetTitle = new LanguageStrings("title");
NetMessage = new LanguageStrings("message"); //Do not translate this string "message" It is an important word
NetTitle = new LanguageStrings("title"); //Do not translate this string "title". It is an important word
}
private bool isDirty()

View File

@ -44,7 +44,7 @@ namespace EduNetworkBuilder
{
if (!typeof(T).IsSerializable)
{
throw new ArgumentException("The type must be serializable.", "source");
throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("NC_source"));
}
// Don't serialize a null object, simply return the default for that object
@ -73,7 +73,7 @@ namespace EduNetworkBuilder
public void AddMessage(DebugLevel tLevel, NetworkComponent tHost, string tMessage)
{
string host = "unknown";
string host = NB.Translate("PM_UnknownHost");
if (tHost != null)
host = tHost.hostname;
if(! Finished)

View File

@ -150,7 +150,7 @@ namespace EduNetworkBuilder
if(indexToText == -1)
{
//We did not go anywhere
MessageBox.Show("Not found.");
MessageBox.Show(NB.Translate("RTFW_NotFound"));
}
}

View File

@ -1593,4 +1593,12 @@
<value>Tag</value>
<comment>OW_Tag = Tag</comment>
</data>
<data name="PM_UnknownHost" xml:space="preserve">
<value>unknown</value>
<comment>PacketMessage PM_UnknownHost = unknown</comment>
</data>
<data name="RTFW_NotFound" xml:space="preserve">
<value>Not found.</value>
<comment>RTFW_NotFound = Not found.</comment>
</data>
</root>