Skip to content

Commit 0563e2c

Browse files
committed
Trados Data Protection Suite 4.1.0.2: Fix TellMe actions
1 parent 9d9b0d8 commit 0563e2c

19 files changed

+247
-195
lines changed

Trados Data Protection Suite/SDLDataProtectionSuite/PluginResources.Designer.cs

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Trados Data Protection Suite/SDLDataProtectionSuite/PluginResources.resx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
<data name="Lock" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
183183
<value>
184184
iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
185-
DgAACw4BQL7hQQAACBBJREFUeF7tnd+LJNUVx9eXxEQjIkHXHzEoChJiFI0YUJKAmJj3XU3czc4w091V
185+
DQAACw0B7QfALAAACBBJREFUeF7tnd+LJNUVx9eXxEQjIkHXHzEoChJiFI0YUJKAmJj3XU3czc4w091V
186186
997qrqqJRhL9E/JDTQjBp+D6i/gUVMzPlySCCSiYVyFkEX+AKKKoyegm3jP7rY7sfut2T03P1r295wMf
187187
GGbq3D7nVHdV3eqaqj2KoiiKoiiKoiiKoiiKoiiKoijLgLX2TGvrW3Jb3mNM+aB11d+MLY+4cf2mG29s
188188
HrN+U3639Te/jHHl3XlefvPgwYNnYBglJYbD4fm2qL/nV+gzfsV+4Ffy/zq6aVz1F1tU9fr6+nkYXomU
@@ -265,9 +265,6 @@ were ignored by the parser because they were not in the correct format (.sdlxlif
265265
<data name="TellMe_Documentation" type="System.Resources.ResXFileRef, System.Windows.Forms">
266266
<value>Resources\TellMe_Documentation.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
267267
</data>
268-
<data name="TellMe_Forum" type="System.Resources.ResXFileRef, System.Windows.Forms">
269-
<value>Resources\TellMe_Forum.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
270-
</data>
271268
<data name="TellMe_Settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
272269
<value>Resources\TellMe_Settings.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
273270
</data>
@@ -284,4 +281,12 @@ To apply Trados Data Protection settings against project files, please follow th
284281

285282
To apply Trados Data Protection settings against a Translation Memory, please go to the TradosTMAnonymizer view located at the bottom left of Trados Studio</value>
286283
</data>
284+
<data name="TellMe_ActionWarning" xml:space="preserve">
285+
<value>To engage with Trados Data Protection Suite, follow these steps
286+
287+
1. In the Files View, select your file(s)
288+
2. Under Home Tab find File Actions Group
289+
3. Use the Batch Tasks dropdown menu
290+
4. Select Protect Data</value>
291+
</data>
287292
</root>

Trados Data Protection Suite/SDLDataProtectionSuite/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
// by using the '*' as shown below:
2929
// [assembly: AssemblyVersion("1.0.*")]
3030
[assembly: AssemblyVersion("4.0.0.0")]
31-
[assembly: AssemblyFileVersion("4.1.0.1")]
31+
[assembly: AssemblyFileVersion("4.1.0.2")]
Loading
Binary file not shown.

Trados Data Protection Suite/SDLDataProtectionSuite/Sdl.Community.SdlDataProtectionSuite.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<None Remove="SdlTmAnonymizer\Connected Services\**" />
1818
</ItemGroup>
1919
<ItemGroup>
20+
<None Remove="Resources\Information.png" />
2021
<None Remove="SdlTmAnonymizer\UsefulTips\de\de.zip" />
2122
<None Remove="SdlTmAnonymizer\UsefulTips\en\en.zip" />
2223
<None Remove="SdlTmAnonymizer\UsefulTips\es\es.zip" />
@@ -26,7 +27,6 @@
2627
<None Remove="SdlTmAnonymizer\UsefulTips\ko\ko.zip" />
2728
<None Remove="SdlTmAnonymizer\UsefulTips\ru\ru.zip" />
2829
<None Remove="SdlTmAnonymizer\UsefulTips\zh\zh.zip" />
29-
<None Remove="SdlTmAnonymizer\View\TellMe.xaml" />
3030
</ItemGroup>
3131
<ItemGroup>
3232
<Reference Include="Microsoft.CSharp" />
@@ -130,6 +130,7 @@
130130
</Content>
131131
<Resource Include="Resources\clear.png" />
132132
<Content Include="Resources\icon.ico" />
133+
<Resource Include="Resources\Information.png" />
133134
<Resource Include="Resources\SDPS.ico" />
134135
<Resource Include="Resources\lockImage.png" />
135136
<Content Include="Resources\question.ico" />
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<Window x:Class="Sdl.Community.SdlDataProtectionSuite.SdlTmAnonymizer.View.SettingsWarningView"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:root="clr-namespace:Sdl.Community.SdlDataProtectionSuite"
7+
xmlns:sdlDataProtectionSuite="clr-namespace:Sdl.Community.SdlDataProtectionSuite"
8+
mc:Ignorable="d"
9+
Title="TellMe Warning"
10+
Width="500"
11+
Height="320"
12+
ResizeMode="NoResize"
13+
WindowStyle="None"
14+
WindowStartupLocation="CenterScreen"
15+
KeyDown="Window_KeyDown">
16+
17+
<Window.Resources>
18+
<ResourceDictionary>
19+
<ResourceDictionary.MergedDictionaries>
20+
<ResourceDictionary Source="/Sdl.Desktop.Platform.Styles;component/ButtonResources.xaml" />
21+
<ResourceDictionary Source="/Sdl.Desktop.Platform.Styles;component/TextBlockResources.xaml" />
22+
</ResourceDictionary.MergedDictionaries>
23+
</ResourceDictionary>
24+
</Window.Resources>
25+
26+
<Border BorderThickness="1"
27+
BorderBrush="#d4d4d4">
28+
<Grid>
29+
<Grid.RowDefinitions>
30+
<RowDefinition Height="Auto" />
31+
<RowDefinition Height="Auto" />
32+
<RowDefinition Height="Auto" />
33+
<RowDefinition Height="Auto" />
34+
<RowDefinition Height="Auto" />
35+
</Grid.RowDefinitions>
36+
37+
<Grid.ColumnDefinitions>
38+
<ColumnDefinition Width="Auto" />
39+
<ColumnDefinition Width="*" />
40+
</Grid.ColumnDefinitions>
41+
42+
<Image Grid.Row="0"
43+
Grid.Column="0"
44+
Source="../../Resources/Information.png"
45+
Height="40"
46+
Width="40"
47+
RenderOptions.BitmapScalingMode="HighQuality"
48+
Margin="32 16 16 0" />
49+
50+
<TextBlock Grid.Row="0"
51+
Grid.Column="1"
52+
Text="Access Trados Data Protection Suite"
53+
Style="{StaticResource Sdl.TextBlock.InformationTitleStyle}"
54+
FontSize="16"
55+
HorizontalAlignment="Left"
56+
VerticalAlignment="Center"
57+
Margin="8 16 0 0" />
58+
59+
<TextBlock Grid.Row="1"
60+
Grid.ColumnSpan="2"
61+
Text="{x:Static sdlDataProtectionSuite:PluginResources.TellMe_ActionWarning}"
62+
Focusable="True"
63+
TextWrapping="Wrap"
64+
Margin="24 10" />
65+
66+
<TextBlock Grid.Row="2"
67+
Grid.ColumnSpan="2"
68+
Focusable="True"
69+
TextWrapping="Wrap"
70+
Margin="24 10">
71+
<Run Text="Note:"
72+
FontWeight="DemiBold" />
73+
<Run Text="Batch Tasks can also be found in the Project and Editor Views" />
74+
<LineBreak/>
75+
<Run Text="To unprotect data, select &quot;Unprotect Data&quot; from the Batch Tasks list" />
76+
</TextBlock>
77+
78+
<TextBlock Grid.Row="3"
79+
Grid.ColumnSpan="2"
80+
HorizontalAlignment="Left"
81+
Focusable="True"
82+
Margin="22 10"
83+
KeyDown="OpenUrl_KeyPressed">
84+
<Run Text="" />
85+
<Run Text="For more information," />
86+
<Run Text="click here"
87+
Cursor="Hand"
88+
MouseLeftButtonDown="OpenUrl_ButtonClicked">
89+
<Run.Style>
90+
<Style TargetType="Run">
91+
<Setter Property="Foreground"
92+
Value="#0096D6" />
93+
<Style.Triggers>
94+
<Trigger Property="IsMouseOver"
95+
Value="True">
96+
<Setter Property="Foreground"
97+
Value="#028ac4" />
98+
<Setter Property="TextDecorations"
99+
Value="Underline" />
100+
</Trigger>
101+
</Style.Triggers>
102+
</Style>
103+
</Run.Style>
104+
</Run>
105+
<Run Text="for documentation" />
106+
</TextBlock>
107+
108+
<Button Grid.Row="4"
109+
Grid.ColumnSpan="2"
110+
Content="Close"
111+
Style="{StaticResource Sdl.Button.SecondaryStyle}"
112+
Click="CloseWindow_Click"
113+
HorizontalAlignment="Right"
114+
Width="60"
115+
Margin="0 16 16 16" />
116+
</Grid>
117+
</Border>
118+
</Window>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using System.Diagnostics;
2+
using System.Windows;
3+
using System.Windows.Input;
4+
5+
namespace Sdl.Community.SdlDataProtectionSuite.SdlTmAnonymizer.View
6+
{
7+
/// <summary>
8+
/// Interaction logic for SettingsWarningView.xaml
9+
/// </summary>
10+
public partial class SettingsWarningView : Window
11+
{
12+
readonly string _url;
13+
14+
public SettingsWarningView(string url)
15+
{
16+
InitializeComponent();
17+
_url = url;
18+
}
19+
20+
21+
22+
private void Window_KeyDown(object sender, KeyEventArgs e)
23+
{
24+
if (e.Key == Key.Escape)
25+
{
26+
Close();
27+
}
28+
}
29+
30+
private void OpenUrl_KeyPressed(object sender, KeyEventArgs e)
31+
{
32+
if (e.Key == Key.Enter
33+
|| e.Key == Key.Space)
34+
{
35+
Process.Start(_url);
36+
}
37+
}
38+
39+
private void CloseWindow_Click(object sender, RoutedEventArgs e)
40+
{
41+
Close();
42+
}
43+
44+
private void OpenUrl_ButtonClicked(object sender, MouseButtonEventArgs e)
45+
{
46+
Process.Start(_url);
47+
}
48+
}
49+
}

Trados Data Protection Suite/SDLDataProtectionSuite/SdlTmAnonymizer/View/TellMe.xaml

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)