<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Width="525" Height="350"> <Grid> <Menu Height="22" VerticalAlignment="Top"> <MenuItem Header="File"> <MenuItem Header="New" /> <MenuItem Header="Open" /> <Separator /> <MenuItem Header="Exit" /> </MenuItem> <MenuItem Header="Help"> <MenuItem Header="About" /> </MenuItem> </Menu> <TabControl Margin="10,40,10,10"> <TabItem Header="File"> <Grid> <Button Width="97" Height="21" Margin="11,26,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Add" /> <Button Width="97" Height="21" Margin="11,53,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Remove" /> <ListBox Margin="122,28,13,38" /> <TextBlock Height="26" Margin="6,0,6,6" VerticalAlignment="Bottom"> <TextBlock> Selected Item:<Run Text="{Binding SelectedItem}" /> </TextBlock> </TextBlock> </Grid> </TabItem> <TabItem Header="Directory"> <Grid> <TextBox Height="21" Margin="14,16,24,0" VerticalAlignment="Top" /> </Grid> </TabItem> </TabControl> </Grid> </Window>
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Width="525" Height="350"> <Grid> <Menu x:Uid="Menu" Height="22" VerticalAlignment="Top"> <MenuItem x:Uid="Menu.File" Header="File"> <MenuItem x:Uid="Menu.File.New" Header="New" /> <MenuItem x:Uid="Menu.File.Open" Header="Open" /> <Separator x:Uid="Menu.File.Separator" /> <MenuItem x:Uid="Menu.File.Exit" Header="Exit" /> </MenuItem> <MenuItem x:Uid="Menu.Help" Header="Help"> <MenuItem x:Uid="Menu.Help.About" Header="About" /> </MenuItem> </Menu> <TabControl x:Uid="TabControl" Margin="10,40,10,10"> <TabItem x:Uid="TabControl.File" Header="File"> <Grid x:Uid="TabControl.File.Grid"> <Button x:Uid="TabControl.File.Add" Width="97" Height="21" Margin="11,26,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Add" /> <Button x:Uid="TabControl.File.Remove" Width="97" Height="21" Margin="11,53,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Remove" /> <ListBox Margin="122,28,13,38" /> <TextBlock x:Uid="TabControl.File.Bottom" Height="26" Margin="6,0,6,6" VerticalAlignment="Bottom"> <TextBlock x:Uid="TabControl.File.Bottom.SelectedItem"> Selected Item:<Run x:Uid="TabControl.File.Bottom.SelectedItem.Run" Text="{Binding SelectedItem}" /> </TextBlock> </TextBlock> </Grid> </TabItem> <TabItem x:Uid="TabControl.Directory" Header="Directory"> <Grid x:Uid="TabControl.Directory.Grid"> <TextBox x:Uid="TabControl.Directory.TextBox" Height="21" Margin="14,16,24,0" VerticalAlignment="Top" /> </Grid> </TabItem> </TabControl> </Grid> </Window>
<xliff version="1.2" xmlns:elas="urn:devutils:names:tc:xliff:document:1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <file original="MainWindow.xaml" source-language="en-US" target-language="ru-RU" datatype="xml"> <header> <tool tool-version="0.0.8.0" tool-name="ELAS" tool-company="DevUtils.Net" tool-id="DevUtils.Elas.Tasks.Core, Version=0.0.8.0, Culture=neutral, PublicKeyToken=3cae0f4d0d366709" /> </header> <body> <group id="Menu"> <trans-unit id="Menu.$Content" translate="no"> <source xml:space="preserve">#Menu.File;#Menu.Help;</source> <target xml:space="preserve" state="final"></target> </trans-unit> <group id="File"> <trans-unit id="Menu.File.$Content" translate="no"> <source xml:space="preserve">#Menu.File.New;#Menu.File.Open;#Menu.File.Separator;#Menu.File.Exit;</source> <target xml:space="preserve" state="final"> </target> </trans-unit> <trans-unit id="Menu.File.Header" translate="yes"> <source xml:space="preserve">File</source> <target xml:space="preserve" state="translated"></target> </trans-unit> <group id="New"> <trans-unit id="Menu.File.New.Header" translate="yes"> <source xml:space="preserve">New</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> <group id="Open"> <trans-unit id="Menu.File.Open.Header" translate="yes"> <source xml:space="preserve">Open</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> <group id="Exit"> <trans-unit id="Menu.File.Exit.Header" translate="yes"> <source xml:space="preserve">Exit</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> </group> <group id="Help"> <trans-unit id="Menu.Help.$Content" translate="no"> <source xml:space="preserve">#Menu.Help.About;</source> <target xml:space="preserve" state="final"></target> </trans-unit> <trans-unit id="Menu.Help.Header" translate="yes"> <source xml:space="preserve">Help</source> <target xml:space="preserve" state="translated"></target> </trans-unit> <group id="About"> <trans-unit id="Menu.Help.About.Header" translate="yes"> <source xml:space="preserve">About</source> <target xml:space="preserve" state="translated"> </target> </trans-unit> </group> </group> </group> <group id="TabControl"> <group id="File"> <trans-unit id="TabControl.File.$Content" translate="no"> <source xml:space="preserve">#TabControl.File.Grid;</source> <target xml:space="preserve" state="final"></target> </trans-unit> <trans-unit id="TabControl.File.Header" translate="yes"> <source xml:space="preserve">File</source> <target xml:space="preserve" state="translated"></target> </trans-unit> <group id="Add"> <trans-unit id="TabControl.File.Add.Content" translate="yes"> <source xml:space="preserve">Add</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> <group id="Remove"> <trans-unit id="TabControl.File.Remove.Content" translate="yes"> <source xml:space="preserve">Remove</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> <group id="Bottom"> <trans-unit id="TabControl.File.Bottom.$Content" translate="no"> <source xml:space="preserve">#TabControl.File.Bottom.SelectedItem;</source> <target xml:space="preserve" state="final"></target> </trans-unit> <group id="SelectedItem"> <trans-unit id="TabControl.File.Bottom.SelectedItem.$Content" translate="yes"> <source xml:space="preserve">Selected Item:#TabControl.File.Bottom.SelectedItem.Run;</source> <target xml:space="preserve" state="translated"> :#TabControl.File.Bottom.SelectedItem.Run;</target> </trans-unit> </group> </group> </group> <group id="Directory"> <trans-unit id="TabControl.Directory.$Content" translate="no"> <source xml:space="preserve">#TabControl.Directory.Grid;</source> <target xml:space="preserve" state="final"></target> </trans-unit> <trans-unit id="TabControl.Directory.Header" translate="yes"> <source xml:space="preserve">Directory</source> <target xml:space="preserve" state="translated"></target> </trans-unit> </group> </group> </body> </file> </xliff>
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("ru-RU");
).Source: https://habr.com/ru/post/255809/
All Articles