diff --git a/data/resources/StringResources.nl.resx b/data/resources/StringResources.nl.resx
index df68fc5b59..a8abe64632 100644
--- a/data/resources/StringResources.nl.resx
+++ b/data/resources/StringResources.nl.resx
@@ -2478,6 +2478,9 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?
&Zet tabs om in spaties
+
+ Met Ctrl+Klik naar de definitie springen
+
A&utomatisch haakjes invoegen
@@ -2523,6 +2526,9 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?
&Automatisch sjabloon invoegen
+
+ Slim inspringen gebruiken
+
Code Completeren
diff --git a/data/resources/StringResources.resx b/data/resources/StringResources.resx
index 931a752853..f6eafa8175 100644
--- a/data/resources/StringResources.resx
+++ b/data/resources/StringResources.resx
@@ -760,6 +760,31 @@ You have to save those files before running the operation.
Update to revision
+
+ Thank you for participating! You can still opt-out later using the SharpDevelop options.
+
+
+ I would like to participate - collect and upload usage data
+
+
+ You can still opt-in later using the SharpDevelop options.
+
+
+ I do not want to participate
+
+
+ We need your help! To improve SharpDevelop in the future, we would like to know which features are used most.
+SharpDevelop can collect this information and upload it automatically.
+
+
+ Privacy Statement
+
+
+ Show collected data
+
+
+ Usage Data Collection
+
Edit grid columns and rows
diff --git a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/OptionPage.xaml b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/OptionPage.xaml
index db3bbb28f1..99809ac09c 100644
--- a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/OptionPage.xaml
+++ b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/OptionPage.xaml
@@ -1,16 +1,20 @@
-
- We need your help! To improve SharpDevelop in the future, we would like to know which features are used most.
- SharpDevelop can collect this information and upload it automatically.
-
- I would like to participate - collect and upload usage data
- I do not want to participate
-
+
+
+
+
- Privacy Statement
+
+
+
\ No newline at end of file
diff --git a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml
index 88ef8e34d7..6cf5a6f01c 100644
--- a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml
+++ b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml
@@ -6,16 +6,16 @@
Name="mainPanel">
- We need your help! To improve SharpDevelop in the future, we would like to know which features are used most.
- SharpDevelop can collect this information and upload it automatically.
-
+ TextWrapping="Wrap"
+ Text="{core:Localize AddIns.UsageDataCollector.Introduction}"/>
I would like to participate - collect and upload usage data
+ Checked="Radio_Checked"
+ Content="{core:Localize AddIns.UsageDataCollector.AcceptRadioButton}"/>
I do not want to participate
+ Checked="Radio_Checked"
+ Content="{core:Localize AddIns.UsageDataCollector.DeclineRadioButton}"/>
+ Click="SaveButton_Click"
+ Content="{core:Localize Dialog.Options.IDEOptions.LoadSaveOptions.SaveLabel}"/>
-
- Thank you for participating! You can still opt-out later using the SharpDevelop options.
-
+
-
- You can still opt-in later using the SharpDevelop options.
-
+ Privacy Statement
+ NavigateUri="{x:Static local:AnalyticsMonitor.PrivacyStatementUrl}">
+
+
\ No newline at end of file
diff --git a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml.cs b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml.cs
index 3c7e8ac606..a0c0d91c0f 100644
--- a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml.cs
+++ b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/StartPageMessage.xaml.cs
@@ -14,6 +14,7 @@ using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
+using ICSharpCode.Core.Presentation;
namespace ICSharpCode.UsageDataCollector
{
@@ -26,7 +27,7 @@ namespace ICSharpCode.UsageDataCollector
{
InitializeComponent();
- this.Header = "Usage Data Collection";
+ this.SetValueToExtension(HeaderProperty, new LocalizeExtension("AddIns.UsageDataCollector.Title"));
}
void Radio_Checked(object sender, RoutedEventArgs e)
diff --git a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/UsageDataCollector.addin b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/UsageDataCollector.addin
index 6a50bdd9a0..607a7bea4b 100644
--- a/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/UsageDataCollector.addin
+++ b/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/UsageDataCollector.addin
@@ -1,6 +1,5 @@
@@ -29,7 +28,7 @@
diff --git a/src/Tools/StringResourceToolAddIn/Src/Command.cs b/src/Tools/StringResourceToolAddIn/Src/Command.cs
index 1c0aea855b..0fd085915e 100644
--- a/src/Tools/StringResourceToolAddIn/Src/Command.cs
+++ b/src/Tools/StringResourceToolAddIn/Src/Command.cs
@@ -80,10 +80,13 @@ namespace StringResourceToolAddIn
// ensure caret is at start of selection / deselect text
textEditor.Select(textEditor.SelectionStart, 0);
// replace the selected text with the new text:
+ string newText;
+ if (Path.GetExtension(textEditor.FileName) == ".xaml")
+ newText = "{core:Localize " + resourceName + "}";
+ else
+ newText = "$" + "{res:" + resourceName + "}";
// Replace() takes the arguments: start offset to replace, length of the text to remove, new text
- textEditor.Document.Replace(textEditor.Caret.Offset,
- oldText.Length,
- "$" + "{res:" + resourceName + "}");
+ textEditor.Document.Replace(textEditor.Caret.Offset, oldText.Length, newText);
}
}
}