Translation stuff
This commit is contained in:
parent
1b8b0d0949
commit
2df0409bb4
@ -51,8 +51,8 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
TheNetImage = new Bitmap(myWidth, myHeight);
|
TheNetImage = new Bitmap(myWidth, myHeight);
|
||||||
PuzzleName = Name;
|
PuzzleName = Name;
|
||||||
NetMessage = new LanguageStrings("message");
|
NetMessage = new LanguageStrings("message"); //Do not translate this string "message" It is an important word
|
||||||
NetTitle = new LanguageStrings("title");
|
NetTitle = new LanguageStrings("title"); //Do not translate this string "title". It is an important word
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool isDirty()
|
private bool isDirty()
|
||||||
|
@ -44,7 +44,7 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
if (!typeof(T).IsSerializable)
|
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
|
// 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)
|
public void AddMessage(DebugLevel tLevel, NetworkComponent tHost, string tMessage)
|
||||||
{
|
{
|
||||||
string host = "unknown";
|
string host = NB.Translate("PM_UnknownHost");
|
||||||
if (tHost != null)
|
if (tHost != null)
|
||||||
host = tHost.hostname;
|
host = tHost.hostname;
|
||||||
if(! Finished)
|
if(! Finished)
|
||||||
|
@ -150,7 +150,7 @@ namespace EduNetworkBuilder
|
|||||||
if(indexToText == -1)
|
if(indexToText == -1)
|
||||||
{
|
{
|
||||||
//We did not go anywhere
|
//We did not go anywhere
|
||||||
MessageBox.Show("Not found.");
|
MessageBox.Show(NB.Translate("RTFW_NotFound"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1521,4 +1521,12 @@
|
|||||||
<value>Ping success: The ping returned from its destination {0} -> {1}</value>
|
<value>Ping success: The ping returned from its destination {0} -> {1}</value>
|
||||||
<comment>ND_ProssArrSuccessStr = Ping success: The ping returned from its destination {0} -> {1}</comment>
|
<comment>ND_ProssArrSuccessStr = Ping success: The ping returned from its destination {0} -> {1}</comment>
|
||||||
</data>
|
</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>
|
</root>
|
Loading…
Reference in New Issue
Block a user