Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorF. Phoenix <fphoenix@email.com>2016-12-10 04:00:39 +0300
committertherzok <marius.ungureanu@xamarin.com>2017-01-12 17:51:18 +0300
commita2cf1e282aa530779749eaafa996057bc38f312d (patch)
tree7c261c27a2b7efdbce5129c4b4a26b96f85d86a0 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels
parent0a38411d8f03b0c34f90dcb7f377595522ce05c0 (diff)
[i18n] Misc translation support
WelcomePageFeedItem.cs: English only has 2 word forms for numbers: singular and plural, so there will be 1 day and 2-7 days. But Russian has 3 forms (different for 1, 2-4 and 5-7) and another languages can have another number of forms. MonoRuntimePanelWidget.cs: For Russian language translation only works fine this way if avoid to use markup tags. Otherways this option panel just wont show.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs
index 71394230da..46a699aeb0 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs
@@ -77,14 +77,14 @@ namespace MonoDevelop.Ide.Gui.OptionPanels
tree.SearchColumn = -1; // disable the interactive search
CellRendererText crt = new CellRendererText ();
- tree.AppendColumn ("Runtime", crt, "markup", 0);
+ tree.AppendColumn (GettextCatalog.GetString ("Runtime"), crt, "markup", 0);
TargetRuntime defRuntime = IdeApp.Preferences.DefaultTargetRuntime;
foreach (TargetRuntime tr in Runtime.SystemAssemblyService.GetTargetRuntimes ()) {
string name = tr.DisplayName;
TreeIter it;
if (tr == defRuntime) {
- name = "<b>" + name + " (Default)</b>";
+ name = string.Format ("<b>{0} {1}</b>", name, GettextCatalog.GetString ("(Default)"));
defaultIter = it = store.AppendValues (name, tr);
} else
it = store.AppendValues (name, tr);
@@ -196,7 +196,7 @@ namespace MonoDevelop.Ide.Gui.OptionPanels
else
text = ((TargetRuntime)ob).DisplayName;
if (store.GetPath (it).Equals (store.GetPath (defaultIter)))
- text = "<b>" + text + " (Default)</b>";
+ text = string.Format ("<b>{0} {1}</b>", text, GettextCatalog.GetString ("(Default)"));
store.SetValue (it, 0, text);
}