1- <UserControl x : Class =" UndertaleModTool.UndertaleObjectReference"
1+ <UserControl x : Class =" UndertaleModTool.UndertaleObjectReference"
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
4+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
66 xmlns : local =" clr-namespace:UndertaleModTool"
77 xmlns : undertale =" clr-namespace:UndertaleModLib.Models;assembly=UndertaleModLib"
8- mc : Ignorable =" d"
8+ xmlns : loc =" clr-namespace:UndertaleModTool.Localization"
9+ mc : Ignorable =" d"
910 d : DesignHeight =" 20" d : DesignWidth =" 300"
1011 Name =" objectReference" >
1112 <UserControl .Resources>
1213 <local : ContextMenuDark x : Key =" contextMenu" Opened =" MenuItem_ContextMenuOpened" >
13- <MenuItem Header =" Open in new tab " Click =" OpenInNewTabItem_Click" />
14- <MenuItem Header =" Find all references " Click =" FindAllReferencesItem_Click" />
14+ <MenuItem Header =" {loc:Loc Common_OpenInNewTab} " Click =" OpenInNewTabItem_Click" />
15+ <MenuItem Header =" {loc:Loc FindRef_FindAllReferences} " Click =" FindAllReferencesItem_Click" />
1516 </local : ContextMenuDark >
1617 <Label x : Key =" emptyReferenceLabel" Foreground =" Gray" FontStyle =" Italic" />
1718 </UserControl .Resources>
2829 <Style TargetType =" {x:Type TextBox}" >
2930 <Style .Triggers>
3031 <DataTrigger Binding =" {Binding CanChange, ElementName=objectReference}" Value =" True" >
31- <Setter Property =" ToolTip" Value =" This is an object reference. Drag and drop an object of matching type from the tree on the left to change it! " />
32+ <Setter Property =" ToolTip" Value =" {loc:Loc Ctrl_ObjRefToolTip} " />
3233 <Setter Property =" ToolTipService.InitialShowDelay" Value =" 250" />
3334 </DataTrigger >
3435 <DataTrigger Binding =" {Binding ObjectReference, ElementName=objectReference}" Value =" {x:Null}" >
4849 <Button .Style>
4950 <Style TargetType =" {x:Type Button}" >
5051 <Setter Property =" Content" Value =" ... " />
51- <Setter Property =" ToolTip" Value =" Open referenced object " />
52+ <Setter Property =" ToolTip" Value =" {loc:Loc Ctrl_OpenReferencedObject} " />
5253 <Style .Triggers>
5354 <DataTrigger Binding =" {Binding ObjectReference, ElementName=objectReference}" Value =" {x:Null}" >
5455 <Setter Property =" IsEnabled" Value =" False" />
6061 <Condition Binding =" {Binding ObjectReference, ElementName=objectReference}" Value =" {x:Null}" />
6162 </MultiDataTrigger .Conditions>
6263 <Setter Property =" Content" Value =" + " />
63- <Setter Property =" ToolTip" Value =" Create new code entry " />
64+ <Setter Property =" ToolTip" Value =" {loc:Loc Ctrl_CreateNewCode} " />
6465 <Setter Property =" IsEnabled" Value =" True" />
6566 </MultiDataTrigger >
6667 </Style .Triggers>
6768 </Style >
6869 </Button .Style>
6970 </local : ButtonDark >
70- <local : ButtonDark Grid.Column=" 2" x : Name =" RemoveButton" Click =" Remove_Click" Content =" X " ToolTip =" Remove reference " >
71+ <local : ButtonDark Grid.Column=" 2" x : Name =" RemoveButton" Click =" Remove_Click" Content =" X " ToolTip =" {loc:Loc Ctrl_RemoveReference} " >
7172 <Button .Style>
7273 <Style TargetType =" {x:Type Button}" >
7374 <Style .Triggers>
8687 </Button .Style>
8788 </local : ButtonDark >
8889 </Grid >
89- </UserControl >
90+ </UserControl >
0 commit comments