{"id":255278,"date":"2015-04-15T14:25:02","date_gmt":"2015-04-15T10:25:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255278"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255278","title":{"rendered":"\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f WPF \u0441\u0442\u0440\u0430\u043d\u0438\u0446"},"content":{"rendered":"<p>     \t\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 WPF \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0435.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b. \u041c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u044d\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u0432 xaml \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0442.\u0435. \u043a\u043e\u0433\u0434\u0430 \u044f \u0432\u0438\u0436\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 resx \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e xaml \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447.<br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 <a href=\"https:\/\/www.nuget.org\/packages\/DevUtils.Elas.Core\/\">Elas<\/a> \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <a href=\"https:\/\/www.nuget.org\/packages\/DevUtils.Elas.Core\/\">Elas<\/a> \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u0442 \u0438\u0437 xaml \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u0433\u043e x:Uid \u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u0438\u0445 \u0432 xlf \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>  Windows 8, Visual Studio 2013<\/p>\n<p>  \u0418 \u0442\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 WPF \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/f6b\/b03\/9e2\/f6bb039e26be458ebd18d1295e97ff49\"\/><\/p>\n<p>  \u0418 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043e\u043a\u043d\u0435.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/aca\/77f\/9e1\/aca77f9e1b1449f4b49c3faaf8c98768\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">MainWindow.xaml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;Window x:Class=&quot;WpfApplication1.MainWindow&quot;         xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;         xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;         Title=&quot;MainWindow&quot;         Width=&quot;525&quot;         Height=&quot;350&quot;&gt; \t&lt;Grid&gt;  \t\t&lt;Menu Height=&quot;22&quot; VerticalAlignment=&quot;Top&quot;&gt; \t\t\t&lt;MenuItem Header=&quot;File&quot;&gt; \t\t\t\t&lt;MenuItem Header=&quot;New&quot; \/&gt; \t\t\t\t&lt;MenuItem Header=&quot;Open&quot; \/&gt; \t\t\t\t&lt;Separator \/&gt; \t\t\t\t&lt;MenuItem Header=&quot;Exit&quot; \/&gt; \t\t\t&lt;\/MenuItem&gt; \t\t\t&lt;MenuItem Header=&quot;Help&quot;&gt; \t\t\t\t&lt;MenuItem Header=&quot;About&quot; \/&gt; \t\t\t&lt;\/MenuItem&gt; \t\t&lt;\/Menu&gt; \t\t&lt;TabControl Margin=&quot;10,40,10,10&quot;&gt; \t\t\t&lt;TabItem Header=&quot;File&quot;&gt; \t\t\t\t&lt;Grid&gt; \t\t\t\t\t&lt;Button Width=&quot;97&quot; \t\t\t\t\t        Height=&quot;21&quot; \t\t\t\t\t        Margin=&quot;11,26,0,0&quot; \t\t\t\t\t        HorizontalAlignment=&quot;Left&quot; \t\t\t\t\t        VerticalAlignment=&quot;Top&quot; \t\t\t\t\t        Content=&quot;Add&quot; \/&gt; \t\t\t\t\t&lt;Button Width=&quot;97&quot; \t\t\t\t\t        Height=&quot;21&quot; \t\t\t\t\t        Margin=&quot;11,53,0,0&quot; \t\t\t\t\t        HorizontalAlignment=&quot;Left&quot; \t\t\t\t\t        VerticalAlignment=&quot;Top&quot; \t\t\t\t\t        Content=&quot;Remove&quot; \/&gt; \t\t\t\t\t&lt;ListBox Margin=&quot;122,28,13,38&quot; \/&gt; \t\t\t\t\t&lt;TextBlock Height=&quot;26&quot; \t\t\t\t\t           Margin=&quot;6,0,6,6&quot; \t\t\t\t\t           VerticalAlignment=&quot;Bottom&quot;&gt; \t\t\t\t\t\t&lt;TextBlock&gt; \t\t\t\t\t\t\tSelected Item:&lt;Run Text=&quot;{Binding SelectedItem}&quot; \/&gt; \t\t\t\t\t\t&lt;\/TextBlock&gt; \t\t\t\t\t&lt;\/TextBlock&gt; \t\t\t\t&lt;\/Grid&gt; \t\t\t&lt;\/TabItem&gt; \t\t\t&lt;TabItem Header=&quot;Directory&quot;&gt; \t\t\t\t&lt;Grid&gt; \t\t\t\t\t&lt;TextBox Height=&quot;21&quot; \t\t\t\t\t         Margin=&quot;14,16,24,0&quot; \t\t\t\t\t         VerticalAlignment=&quot;Top&quot; \/&gt; \t\t\t\t&lt;\/Grid&gt; \t\t\t&lt;\/TabItem&gt; \t\t&lt;\/TabControl&gt; \t&lt;\/Grid&gt; &lt;\/Window&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c Elas Core Nuget \u043f\u0430\u043a\u0435\u0442.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/8b3\/55e\/957\/8b355e9579e34b42939abefba1ad844e\"\/><\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u0441\u043e\u043b\u044e\u0448\u0435\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b &quot;.elas\\ElasConfiguration.props&quot;<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/53c\/0b1\/49e\/53c0b149e57a4030ad418abda90c139b\"\/><\/p>\n<p>  \u042d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Elas \u0433\u0434\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u044f\u0437\u044b\u043a\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0436\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u0438\u043b\u0434.<\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435 \u0431\u0438\u043b\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c xliff \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u00abMainWindow.xaml\u00bb<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/eb2\/5d2\/d87\/eb25d2d8786e4503b5aeeddca3c476a7\"\/><\/p>\n<p>  \u041d\u043e \u043e\u043d \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e <a href=\"http:\/\/docs.oasis-open.org\/xliff\/v1.2\/os\/xliff-core.html#trans-unit\">trans-unit<\/a> \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043d\u0435 \u0437\u0430\u0434\u0430\u043b\u0438 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e x:Uid \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c x:Uid \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">MainWindow.xaml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\"> &lt;Window x:Class=&quot;WpfApplication1.MainWindow&quot;         xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;         xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;         Title=&quot;MainWindow&quot;         Width=&quot;525&quot;         Height=&quot;350&quot;&gt; \t&lt;Grid&gt;  \t\t&lt;Menu x:Uid=&quot;Menu&quot; \t\t      Height=&quot;22&quot; \t\t      VerticalAlignment=&quot;Top&quot;&gt; \t\t\t&lt;MenuItem x:Uid=&quot;Menu.File&quot; Header=&quot;File&quot;&gt; \t\t\t\t&lt;MenuItem x:Uid=&quot;Menu.File.New&quot; Header=&quot;New&quot; \/&gt; \t\t\t\t&lt;MenuItem x:Uid=&quot;Menu.File.Open&quot; Header=&quot;Open&quot; \/&gt; \t\t\t\t&lt;Separator x:Uid=&quot;Menu.File.Separator&quot; \/&gt; \t\t\t\t&lt;MenuItem x:Uid=&quot;Menu.File.Exit&quot; Header=&quot;Exit&quot; \/&gt; \t\t\t&lt;\/MenuItem&gt; \t\t\t&lt;MenuItem x:Uid=&quot;Menu.Help&quot; Header=&quot;Help&quot;&gt; \t\t\t\t&lt;MenuItem x:Uid=&quot;Menu.Help.About&quot; Header=&quot;About&quot; \/&gt; \t\t\t&lt;\/MenuItem&gt; \t\t&lt;\/Menu&gt; \t\t&lt;TabControl x:Uid=&quot;TabControl&quot; Margin=&quot;10,40,10,10&quot;&gt; \t\t\t&lt;TabItem x:Uid=&quot;TabControl.File&quot; Header=&quot;File&quot;&gt; \t\t\t\t&lt;Grid x:Uid=&quot;TabControl.File.Grid&quot;&gt; \t\t\t\t\t&lt;Button x:Uid=&quot;TabControl.File.Add&quot; \t\t\t\t\t        Width=&quot;97&quot; \t\t\t\t\t        Height=&quot;21&quot; \t\t\t\t\t        Margin=&quot;11,26,0,0&quot; \t\t\t\t\t        HorizontalAlignment=&quot;Left&quot; \t\t\t\t\t        VerticalAlignment=&quot;Top&quot; \t\t\t\t\t        Content=&quot;Add&quot; \/&gt; \t\t\t\t\t&lt;Button x:Uid=&quot;TabControl.File.Remove&quot; \t\t\t\t\t        Width=&quot;97&quot; \t\t\t\t\t        Height=&quot;21&quot; \t\t\t\t\t        Margin=&quot;11,53,0,0&quot; \t\t\t\t\t        HorizontalAlignment=&quot;Left&quot; \t\t\t\t\t        VerticalAlignment=&quot;Top&quot; \t\t\t\t\t        Content=&quot;Remove&quot; \/&gt; \t\t\t\t\t&lt;ListBox Margin=&quot;122,28,13,38&quot; \/&gt; \t\t\t\t\t&lt;TextBlock x:Uid=&quot;TabControl.File.Bottom&quot; \t\t\t\t\t           Height=&quot;26&quot; \t\t\t\t\t           Margin=&quot;6,0,6,6&quot; \t\t\t\t\t           VerticalAlignment=&quot;Bottom&quot;&gt; \t\t\t\t\t\t&lt;TextBlock x:Uid=&quot;TabControl.File.Bottom.SelectedItem&quot;&gt; \t\t\t\t\t\t\tSelected Item:&lt;Run x:Uid=&quot;TabControl.File.Bottom.SelectedItem.Run&quot; Text=&quot;{Binding SelectedItem}&quot; \/&gt; \t\t\t\t\t\t&lt;\/TextBlock&gt; \t\t\t\t\t&lt;\/TextBlock&gt; \t\t\t\t&lt;\/Grid&gt; \t\t\t&lt;\/TabItem&gt; \t\t\t&lt;TabItem x:Uid=&quot;TabControl.Directory&quot; Header=&quot;Directory&quot;&gt; \t\t\t\t&lt;Grid x:Uid=&quot;TabControl.Directory.Grid&quot;&gt; \t\t\t\t\t&lt;TextBox x:Uid=&quot;TabControl.Directory.TextBox&quot; \t\t\t\t\t         Height=&quot;21&quot; \t\t\t\t\t         Margin=&quot;14,16,24,0&quot; \t\t\t\t\t         VerticalAlignment=&quot;Top&quot; \/&gt; \t\t\t\t&lt;\/Grid&gt; \t\t\t&lt;\/TabItem&gt; \t\t&lt;\/TabControl&gt; \t&lt;\/Grid&gt; &lt;\/Window&gt;   <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0431\u0438\u043b\u0434. \u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0435\u0440\u0435\u0434 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u00abMainWindow.xaml.xlf\u00bb \u0444\u0430\u0439\u043b\u043e\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0432 Visual Studio, \u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c xml \u0441\u0445\u0435\u043c\u0443 \u00abxliff-core-1.2-transitional.xsd\u00bb \u0432 Visual Studio. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 &quot;%SolutionDir%\\packages\\DevUtils.Elas.Core.X.X.X\\schemas\\xliff-core-1.2-transitional.xsd&quot; \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 Visual Studio.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/e38\/bdc\/0f4\/e38bdc0f4a86463eae1ddc5c42e678a1\"\/>  <\/div>\n<\/div>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u0430\u0439\u043b \u00abMainWindow.xaml.xlf\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/28d\/dd6\/f20\/28ddd6f208164d07b0755b8cabe5b392\"\/><\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043b\u044e\u0447\u0438 (1) (x:Uid) \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (2) \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438. \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <a href=\"http:\/\/docs.oasis-open.org\/xliff\/v1.2\/os\/xliff-core.html#target\">target<\/a> \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <a href=\"http:\/\/docs.oasis-open.org\/xliff\/v1.2\/os\/xliff-core.html#state\">state<\/a> \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u00abtranslated\u00bb. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u043d\u0435 \u0436\u0435\u043b\u0430\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 <a href=\"http:\/\/docs.oasis-open.org\/xliff\/v1.2\/os\/xliff-core.html#translate\">translate<\/a> \u0432 \u00abno\u00bb \u0438 <a href=\"http:\/\/docs.oasis-open.org\/xliff\/v1.2\/os\/xliff-core.html#state\">state<\/a> \u0432 \u00abfinal\u00bb<\/p>\n<p>  \u0412\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443 \u043c\u0435\u043d\u044f.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">MainWindow.xaml.xlf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\"> &lt;xliff version=&quot;1.2&quot; xmlns:elas=&quot;urn:devutils:names:tc:xliff:document:1.2&quot; xmlns=&quot;urn:oasis:names:tc:xliff:document:1.2&quot;&gt; \t&lt;file original=&quot;MainWindow.xaml&quot; source-language=&quot;en-US&quot; target-language=&quot;ru-RU&quot; datatype=&quot;xml&quot;&gt; \t\t&lt;header&gt; \t\t\t&lt;tool tool-version=&quot;0.0.8.0&quot; tool-name=&quot;ELAS&quot; tool-company=&quot;DevUtils.Net&quot; tool-id=&quot;DevUtils.Elas.Tasks.Core, Version=0.0.8.0, Culture=neutral, PublicKeyToken=3cae0f4d0d366709&quot; \/&gt; \t\t&lt;\/header&gt; \t\t&lt;body&gt; \t\t\t&lt;group id=&quot;Menu&quot;&gt; \t\t\t\t&lt;trans-unit id=&quot;Menu.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#Menu.File;#Menu.Help;&lt;\/source&gt; \t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt;&lt;\/target&gt; \t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t&lt;group id=&quot;File&quot;&gt; \t\t\t\t\t&lt;trans-unit id=&quot;Menu.File.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#Menu.File.New;#Menu.File.Open;#Menu.File.Separator;#Menu.File.Exit;&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt; &lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;trans-unit id=&quot;Menu.File.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;File&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0424\u0430\u0439\u043b&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;group id=&quot;New&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;Menu.File.New.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;New&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u041d\u043e\u0432\u044b\u0439&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t\t&lt;group id=&quot;Open&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;Menu.File.Open.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Open&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u041e\u0442\u043a\u0440\u044b\u0442\u044c&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t\t&lt;group id=&quot;Exit&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;Menu.File.Exit.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Exit&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0412\u044b\u0445\u043e\u0434&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t&lt;\/group&gt; \t\t\t\t&lt;group id=&quot;Help&quot;&gt; \t\t\t\t\t&lt;trans-unit id=&quot;Menu.Help.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#Menu.Help.About;&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt;&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;trans-unit id=&quot;Menu.Help.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Help&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u041f\u043e\u043c\u043e\u0449\u044c&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;group id=&quot;About&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;Menu.Help.About.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;About&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t&lt;\/group&gt; \t\t\t&lt;\/group&gt; \t\t\t&lt;group id=&quot;TabControl&quot;&gt; \t\t\t\t&lt;group id=&quot;File&quot;&gt; \t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#TabControl.File.Grid;&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt;&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;File&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0424\u0430\u0439\u043b&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;group id=&quot;Add&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.Add.Content&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Add&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t\t&lt;group id=&quot;Remove&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.Remove.Content&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Remove&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0423\u0434\u0430\u043b\u0438\u0442\u044c&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t\t&lt;group id=&quot;Bottom&quot;&gt; \t\t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.Bottom.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#TabControl.File.Bottom.SelectedItem;&lt;\/source&gt; \t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt;&lt;\/target&gt; \t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t\t&lt;group id=&quot;SelectedItem&quot;&gt; \t\t\t\t\t\t\t&lt;trans-unit id=&quot;TabControl.File.Bottom.SelectedItem.$Content&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Selected Item:#TabControl.File.Bottom.SelectedItem.Run;&lt;\/source&gt; \t\t\t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:#TabControl.File.Bottom.SelectedItem.Run;&lt;\/target&gt; \t\t\t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t\t&lt;\/group&gt; \t\t\t\t\t&lt;\/group&gt; \t\t\t\t&lt;\/group&gt; \t\t\t\t&lt;group id=&quot;Directory&quot;&gt; \t\t\t\t\t&lt;trans-unit id=&quot;TabControl.Directory.$Content&quot; translate=&quot;no&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;#TabControl.Directory.Grid;&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;final&quot;&gt;&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t\t&lt;trans-unit id=&quot;TabControl.Directory.Header&quot; translate=&quot;yes&quot;&gt; \t\t\t\t\t\t&lt;source xml:space=&quot;preserve&quot;&gt;Directory&lt;\/source&gt; \t\t\t\t\t\t&lt;target xml:space=&quot;preserve&quot; state=&quot;translated&quot;&gt;\u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f&lt;\/target&gt; \t\t\t\t\t&lt;\/trans-unit&gt; \t\t\t\t&lt;\/group&gt; \t\t\t&lt;\/group&gt; \t\t&lt;\/body&gt; \t&lt;\/file&gt; &lt;\/xliff&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0431\u0438\u043b\u0434. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0435\u0442 \u043b\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0432 Windows \u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 (\u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 \u00abApp\u00bb<\/p>\n<pre><code>CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo(&quot;ru-RU&quot;); <\/code><\/pre>\n<p> ).<\/p>\n<p>  \u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439.<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/77b\/91a\/734\/77b91a7342bf459298b4bb3ae4e2d1a9\"\/><\/p>\n<p>  P.S.<br \/>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Elas \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c C++ (Windows resources) \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/255809\/\"> http:\/\/habrahabr.ru\/post\/255809\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 WPF \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0435.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b. \u041c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u044d\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u0432 xaml \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0442.\u0435. \u043a\u043e\u0433\u0434\u0430 \u044f \u0432\u0438\u0436\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 resx \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e xaml \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447.<br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 <a href=\"https:\/\/www.nuget.org\/packages\/DevUtils.Elas.Core\/\">Elas<\/a> \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <a href=\"https:\/\/www.nuget.org\/packages\/DevUtils.Elas.Core\/\">Elas<\/a> \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u0442 \u0438\u0437 xaml \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u0433\u043e x:Uid \u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u0438\u0445 \u0432 xlf \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-255278","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255278"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255278\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}