From: <chr...@us...> - 2007-05-20 20:00:24
|
Revision: 411 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=411&view=rev Author: chreekar Date: 2007-05-20 13:00:20 -0700 (Sun, 20 May 2007) Log Message: ----------- All strings in main GUI is now translateable Modified Paths: -------------- trunk/plugins/MyEmulators/Readme.txt trunk/plugins/MyEmulators/myEmulators/Class1.cs trunk/plugins/MyEmulators/myEmulators/myEmulators.csproj trunk/plugins/MyEmulators/output.rar Modified: trunk/plugins/MyEmulators/Readme.txt =================================================================== --- trunk/plugins/MyEmulators/Readme.txt 2007-05-19 16:16:01 UTC (rev 410) +++ trunk/plugins/MyEmulators/Readme.txt 2007-05-20 20:00:20 UTC (rev 411) @@ -7,6 +7,8 @@ CHANGELOG ------------------------------------------- v1.6 +-Solved problem when returning from + a launched emulator -Added support for translations, see below v1.5.1 @@ -117,6 +119,9 @@ Line 4 - Most played Line 5 - Recently played Line 6 - Top graded +Line 7 - Select grade for this game +Line 8 - Set grade to +Line 9 - No grade Note that the setup is not translated, only the buttons in the main program. Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs =================================================================== --- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-19 16:16:01 UTC (rev 410) +++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-20 20:00:20 UTC (rev 411) @@ -19,7 +19,7 @@ //To compare with the current marked private int previouslySelectedIndex; //Translation strings - private String[] translation = { "View: List", "View: Large Icons", "View: Icons", "Most played", "Recently played", "Top graded" }; + private String[] translation = { "View: List", "View: Large Icons", "View: Icons", "Most played", "Recently played", "Top graded", "Select grade for this game", "Set grade to", "No grade" }; //The emulator/rom list control [SkinControlAttribute(50)] protected GUIFacadeControl lstEmulators = null; //The buttons in the menu to the left @@ -118,6 +118,7 @@ //At start of MP public override bool Init() { + Log.Info("My Emulators - Init{0}",""); DB.launch(); emulators = new List<Emulator>(); stars = new GUIImage[10]; @@ -133,15 +134,18 @@ //Loads the translation strings try { + Log.Info("My Emulators - Language is set to {0}", Options.getStringOption("language")); if (Options.getStringOption("language") != "English") { StreamReader translationFile = new StreamReader("language\\" + Options.getStringOption("language") + "\\myEmulators.txt"); - for (int i = 0; i < translation.Length; i++) + int i = 0; + for (; i < translation.Length; i++) { String line = translationFile.ReadLine(); if (line == null) { break; } translation[i] = line; } + Log.Info("My Emulators - Found {0} translated strings", i); translationFile.Close(); } } @@ -232,18 +236,12 @@ if (dlg != null) { dlg.Reset(); - dlg.SetHeading("Select grade for this game"); - dlg.Add(new GUIListItem("Set grade to 1")); - dlg.Add(new GUIListItem("Set grade to 2")); - dlg.Add(new GUIListItem("Set grade to 3")); - dlg.Add(new GUIListItem("Set grade to 4")); - dlg.Add(new GUIListItem("Set grade to 5")); - dlg.Add(new GUIListItem("Set grade to 6")); - dlg.Add(new GUIListItem("Set grade to 7")); - dlg.Add(new GUIListItem("Set grade to 8")); - dlg.Add(new GUIListItem("Set grade to 9")); - dlg.Add(new GUIListItem("Set grade to 10")); - dlg.Add(new GUIListItem("No grade")); + dlg.SetHeading(translation[6]); + for (int i = 1; i < 11; i++) + { + dlg.Add(new GUIListItem(translation[7] + " " + i)); + } + dlg.Add(new GUIListItem(translation[8])); dlg.DoModal(GetID); if (dlg.SelectedId > 0 && dlg.SelectedId <= 10) { Modified: trunk/plugins/MyEmulators/myEmulators/myEmulators.csproj =================================================================== --- trunk/plugins/MyEmulators/myEmulators/myEmulators.csproj 2007-05-19 16:16:01 UTC (rev 410) +++ trunk/plugins/MyEmulators/myEmulators/myEmulators.csproj 2007-05-20 20:00:20 UTC (rev 411) @@ -84,4 +84,8 @@ <Target Name="AfterBuild"> </Target> --> + <PropertyGroup> + <PostBuildEvent> + </PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file Modified: trunk/plugins/MyEmulators/output.rar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |