|
From: <che...@us...> - 2007-05-24 16:15:58
|
Revision: 423
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=423&view=rev
Author: chef_koch
Date: 2007-05-24 09:15:49 -0700 (Thu, 24 May 2007)
Log Message:
-----------
fixed some strings, now all should be translatable
Modified Paths:
--------------
trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml
trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml
Modified: trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
===================================================================
--- trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-24 16:15:49 UTC (rev 423)
@@ -138,7 +138,7 @@
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
{
- strButtonText = PluginName();
+ strButtonText = MyConnect.GUILocalizeStrings.Get(0);
strButtonImage = String.Empty;
strButtonImageFocus = String.Empty;
strPictureImage = "hover_my connect4.png";
@@ -229,8 +229,12 @@
GUIControl.SetControlLabel(GetID, BtnWhatsThis.GetID, MyConnect.GUILocalizeStrings.Get(31)); // What is Connect4?
GUIPropertyManager.SetProperty("#Status", " ");
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(12)); // Level: Normal
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(21)); // Mode: Play vs Comp
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(12)); // Normal
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(21)); // Comp
// Disable level selection
GUIControl.DisableControl(GetID, 4);
@@ -314,19 +318,25 @@
{
if (Level == "Nor")
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(13)); // Level: Professional
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(13)); // Professional
Level = "Pro";
AI = 8;
}
else if (Level == "Pro")
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(11)); // Level: Amateur
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(11)); // Amateur
Level = "Am";
AI = 3;
}
else
{
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, MyConnect.GUILocalizeStrings.Get(12)); // Level: Normal
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID,
+ MyConnect.GUILocalizeStrings.Get(10) + // Level:
+ MyConnect.GUILocalizeStrings.Get(12)); // Normal
Level = "Nor";
AI = 5;
}
@@ -339,14 +349,18 @@
{
if (Mode == "2p")
{
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(21)); // Mode: Play vs Comp
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(21)); // Comp
Mode = "1p";
// Enable level selection
GUIControl.EnableControl(GetID, 4);
}
else
{
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, MyConnect.GUILocalizeStrings.Get(22)); // Mode: Play vs Player
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID,
+ MyConnect.GUILocalizeStrings.Get(20) + // Mode: Play vs
+ MyConnect.GUILocalizeStrings.Get(22)); // Player
Mode = "2p";
// Disable level selection
GUIControl.DisableControl(GetID, 4);
@@ -398,7 +412,11 @@
if (gameEngine.isWinner(Player - 1) == true)
{
int tmp = Player;
- GUIPropertyManager.SetProperty("#Status", "Player " + tmp + " wins the game !");
+ GUIPropertyManager.SetProperty("#Status",
+ MyConnect.GUILocalizeStrings.Get(2) + // Player
+ " " + tmp + " " +
+ MyConnect.GUILocalizeStrings.Get(3) // wins the game!
+ );
Player = 0;
RelButtons();
gameEngine.getState().flashit(3);
@@ -406,7 +424,7 @@
}
if (gameEngine.isTie() == true)
{
- GUIPropertyManager.SetProperty("#Status", "Nobody wins the game ! Its a draw !");
+ GUIPropertyManager.SetProperty("#Status", MyConnect.GUILocalizeStrings.Get(4)); // Nobody wins the game ! Its a draw !
Player = 0;
RelButtons();
GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
@@ -445,12 +463,14 @@
{
//display status of the game
if (Player == 0)
- GUIPropertyManager.SetProperty("#Player", "GAME OVER");
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(6)); // GAME OVER
if (Player == 1)
- GUIPropertyManager.SetProperty("#Player", "PLAYER 1");
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(2) + " 1"); // PLAYER 1
if (Player == 2)
- GUIPropertyManager.SetProperty("#Player", "PLAYER 2");
- GUIPropertyManager.SetProperty("#Round", "Round: " + round);
+ GUIPropertyManager.SetProperty("#Player", MyConnect.GUILocalizeStrings.Get(2) + " 2"); // PLAYER 2
+ GUIPropertyManager.SetProperty("#Round", MyConnect.GUILocalizeStrings.Get(5) + round); // Round:
+
+
//wait time
if (wait > 0)
{
@@ -470,7 +490,11 @@
if (gameEngine.isWinner(Player - 1) == true)
{
- GUIPropertyManager.SetProperty("#Status", "Player 2 wins the game !");
+ GUIPropertyManager.SetProperty("#Status",
+ MyConnect.GUILocalizeStrings.Get(2) + // Player
+ " 2 " +
+ MyConnect.GUILocalizeStrings.Get(3) // wins the game!
+ );
gameEngine.getState().flashit(3);
Drawfield();
Player = 0;
@@ -478,7 +502,7 @@
}
if (gameEngine.isTie() == true)
{
- GUIPropertyManager.SetProperty("#Status", "Nobody wins the game ! Its a draw !");
+ GUIPropertyManager.SetProperty("#Status", MyConnect.GUILocalizeStrings.Get(4)); // Nobody wins the game ! Its a draw !
Player = 0;
RelButtons();
}
Modified: trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml
===================================================================
--- trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/language/MyConnect4/strings_de.xml 2007-05-24 16:15:49 UTC (rev 423)
@@ -2,12 +2,19 @@
<Language name="German" characters="255">
<Section name="unmapped">
<String id="0" prefix="Mein ">Vier gewinnt</String>
- <String id="1">Start</String>
- <String id="11">Stufe: Anfänger</String>
- <String id="12">Stufe: Normal</String>
- <String id="13">Stufe: Profi</String>
- <String id="21">Modus: Play vs Comp</String>
- <String id="22">Modus: Play vs Player</String>
+ <String id="1">Neues Spiel</String>
+ <String id="2">Spieler</String>
+ <String id="3">gewinnt das Spiel!</String>
+ <String id="4">Unentschieden! Keiner hat gewonnen!</String>
+ <String id="5">Runde: </String>
+ <String id="6">GAME OVER</String>
+ <String id="10">Stufe: </String>
+ <String id="11">leicht</String>
+ <String id="12">mittel</String>
+ <String id="13">schwer</String>
+ <String id="20">Spieler vs. </String>
+ <String id="21">Computer</String>
+ <String id="22">Spieler</String>
<String id="31">Was ist Vier gewinnt?</String>
<String id="32">Connect 4 is a game where your object is to get 4 tokens in a row.
This could be vertically, horizontal or diagonally.
Modified: trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml
===================================================================
--- trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml 2007-05-24 15:35:07 UTC (rev 422)
+++ trunk/plugins/My Connect4/language/MyConnect4/strings_en.xml 2007-05-24 16:15:49 UTC (rev 423)
@@ -3,11 +3,18 @@
<Section name="unmapped">
<String id="0" prefix="My ">Connect 4</String>
<String id="1">Start</String>
- <String id="11">Level: Amateur</String>
- <String id="12">Level: Normal</String>
- <String id="13">Level: Professional</String>
- <String id="21">Mode: Play vs Comp</String>
- <String id="22">Mode: Play vs Player</String>
+ <String id="2">Player</String>
+ <String id="3">wins the game!</String>
+ <String id="4">Nobody wins the game ! Its a draw !</String>
+ <String id="5">Round: </String>
+ <String id="6">GAME OVER</String>
+ <String id="10">Level: </String>
+ <String id="11">easy</String>
+ <String id="12">medium</String>
+ <String id="13">difficult</String>
+ <String id="20">Player vs. </String>
+ <String id="21">Computer</String>
+ <String id="22">Player</String>
<String id="31">What's Connect 4</String>
<String id="32">Connect 4 is a game where your object is to get 4 tokens in a row.
This could be vertically, horizontal or diagonally.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|