diff options
author | ceros7 <ceros7@svn> | 2010-05-16 01:48:01 +0000 |
---|---|---|
committer | ceros7 <ceros7@svn> | 2010-05-16 01:48:01 +0000 |
commit | 498a6b1961f14b75b4132d5e3b38ae816c1fbe18 (patch) | |
tree | 679d08152e4a221a2b63508fb0ef9175eb413b5c /tools | |
parent | 02f683b6abad9e35c83d32584734d7218e85bbf4 (diff) |
More fixes of broken UTF-8 characters.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30206 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Translator/Translator/EditStringForm.cs | 10 | ||||
-rw-r--r-- | tools/Translator/Translator/StringItem.cs | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/Translator/Translator/EditStringForm.cs b/tools/Translator/Translator/EditStringForm.cs index 1134746949..1b4bc12878 100644 --- a/tools/Translator/Translator/EditStringForm.cs +++ b/tools/Translator/Translator/EditStringForm.cs @@ -89,7 +89,7 @@ namespace TeamXBMC.Translator this.buttonNewline.Name = "buttonNewline"; this.buttonNewline.Size = new System.Drawing.Size(24, 23); this.buttonNewline.TabIndex = 4; - this.buttonNewline.Text = "¶"; + this.buttonNewline.Text = "¶"; this.buttonNewline.Click += new System.EventHandler(this.buttonNewline_Click); // // textBoxTranslated @@ -196,14 +196,14 @@ namespace TeamXBMC.Translator if (length==0) { // caret at a position but no text marked, - // just insert the ¶ - textBoxTranslated.Text=textBoxTranslated.Text.Insert(start, "¶"); + // just insert the ¶ + textBoxTranslated.Text=textBoxTranslated.Text.Insert(start, "¶"); } else { // caret at a position with text marked, - // replace the marked text with ¶ + // replace the marked text with ¶ textBoxTranslated.Text=textBoxTranslated.Text.Remove(start, length); - textBoxTranslated.Text=textBoxTranslated.Text.Insert(start, "¶"); + textBoxTranslated.Text=textBoxTranslated.Text.Insert(start, "¶"); } // Update caret position to where we inserted the newline diff --git a/tools/Translator/Translator/StringItem.cs b/tools/Translator/Translator/StringItem.cs index cf09030a36..8ea754e9bc 100644 --- a/tools/Translator/Translator/StringItem.cs +++ b/tools/Translator/Translator/StringItem.cs @@ -88,13 +88,13 @@ namespace TeamXBMC.TranslatorCore text=element.SelectSingleNode("value").InnerText; } - // Replace \n and \r with the visible newline char ¶ to make it editable + // Replace \n and \r with the visible newline char ¶ to make it editable if (Text.IndexOf("\r\n")>-1) - text=text.Replace("\r\n", "¶"); + text=text.Replace("\r\n", "¶"); else if (Text.IndexOf("\n")>-1) - text=text.Replace("\n", "¶"); + text=text.Replace("\n", "¶"); else if (Text.IndexOf("\r")>-1) - text=text.Replace("\r", "¶"); + text=text.Replace("\r", "¶"); } /// <summary> @@ -105,9 +105,9 @@ namespace TeamXBMC.TranslatorCore element.SetAttribute("id", Id.ToString()); element.InnerText=Text; - // Replace the visible newline char ¶ with \n for saving - if (element.InnerText.IndexOf("¶")>-1) - element.InnerText=element.InnerText.Replace("¶", "\n"); + // Replace the visible newline char ¶ with \n for saving + if (element.InnerText.IndexOf("¶")>-1) + element.InnerText=element.InnerText.Replace("¶", "\n"); } #endregion |