<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>RC-WinTrans - RC-WinTrans Support - WPF Translation - Messages</title>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<description>RC-WinTrans - RC-WinTrans Support - WPF Translation - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Tue, 29 Mar 2011 22:09:24 GMT</pubDate>
<lastBuildDate>Tue, 29 Mar 2011 22:09:24 GMT</lastBuildDate>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from Support</title>
<description><![CDATA[Thank you rboutilier for reporting this. <br/>We've fixed it so that the project name will be quoted -- it works now.<br/>The fix will be included in the build version following "9.1.0.993 March 2011".]]></description>
<pubDate>Tue, 29 Mar 2011 22:09:24 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from rboutilier</title>
<description><![CDATA[One issue that I've noticed with the Tools | WPF | .NET Project update "x:Uid" attributes... command is that it does not quote the project name in the msbuild command line.  Consequently, if the path to the project contains a space the command fails with the message<br/><br/>MSBUILD : error MSB1008: Only one project can be specified.<br/>Switch: Release<br/><br/>The current workaround appears to be changing the project path so that it does not contain spaces, or running the msbuild command manually from the command line and include the quotation marks around the project path.]]></description>
<pubDate>Tue, 29 Mar 2011 13:40:10 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from MichaelTR</title>
<description><![CDATA[It seems that RC-WinTrans is not able to start msbuild.exe. =&gt; no output and no uids<br/><br/>But putting the following lines into the prebuild event for the project did the trick:<br/><div class=quote>$(MSBuildBinPath)\msbuild /t:updateuid $(ProjectPath)<br/>$(MSBuildBinPath)\msbuild /t:checkuid $(ProjectPath)</div>]]></description>
<pubDate>Fri, 04 Mar 2011 11:41:44 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from Support</title>
<description><![CDATA[RC-WinTrans writes the output from the <i>msbuild.exe</i> tool to the RC-WinTrans <i>Output</i> window.<br/><br/>Example:<br/>-------------------------------------------------------------------<br/><i>Running MSBuild.exe ...<br/>MSBuild.exe /t:updateuid U:\Test\WPFAppl.csproj<br/>Output:<br/>Microsoft (R) Build Engine Version 4.0.30319.1<br/>[Microsoft .NET Framework, Version 4.0.30319.1]<br/>Copyright (C) Microsoft Corporation 2007. All rights reserved.<br/>.<br/></i><i>Build started 3/4/2011 9:46:44 AM.<br/>Project "U:\Test\WPFAppl.csproj" on node 1 (updateuid target(s)).<br/>UpdateUid:<br/>  Checking Uids in file 'Window1.xaml' ...<br/>  Checking Uids in file 'App.xaml' ...<br/>  Uids updated in 2 files.<br/>Done Building Project "U:\Test\WPFAppl.csproj" (updateuid target(s)).<br/>.<br/></i><i>Build succeeded.<br/>    0 Warning(s)<br/>    0 Error(s)<br/></i>-------------------------------------------------------------------<br/><br/>Open a command box and run the MSBuild tool directly for your project (.csproj):<br/><i> </i><b><i>MSBuild.exe /t:updateuid U:\Test\WPFAppl.csproj<br/><br/></i></b>See also (at Microsoft): "<b>Best Practices for WPF Localization</b>" <br/><a href="http://msdn.microsoft.com/en-us/library/ms788718.aspx" target="_blank" rel="nofollow"><b><span style="color:rgb(51, 51, 153)">http://msdn.microsoft.com/en-us/library/ms788718.asp</span></b></a><br/><br/>Regards,<br/>Support, Schaudin.com<br/><span style="color:rgb(255, 255, 255)">.</span><br/><em>edited by Support on 04.03.2011</em>]]></description>
<pubDate>Fri, 04 Mar 2011 10:00:58 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from MichaelTR</title>
<description><![CDATA[<strong>Support</strong> wrote:<br/><div class=quote><br/>Nothing happens in RC-WinTrans but for your Visual Studio project. RC-WinTrans call the <b><i>msbuild.exe</i></b> (Microsoft command line tool) to add the "x:Uid" attributes to your VS project's source XAML files. Check the XAML files -- the elements should have "x:Uid" attribute now. <br/></div> <br/><br/>No, it doesn't add any x:Uid to the elements in xaml.<br/><br/>Shouldn't there be any output message in the RCWinTrans output?]]></description>
<pubDate>Thu, 03 Mar 2011 09:33:11 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from Support</title>
<description><![CDATA[Hello MichaelTR,<br/><br/><span style="color:rgb(0, 128, 0)"><b><span style="color:rgb(0, 0, 0)">1.</span></b> <br/>&gt; &lt;UICulture&gt;CultureYouAreCodingWith&lt;/UICulture&gt; in your .csproj file<br/></span>&gt; I now found a problem, which maybe a bug in RCWinTrans.<br/>&gt; If I do this, RCWinTrans cannot find any WPF resources in the exe anymore<br/><br/>No, not a bug. This is correct.<br/><br/>When using the &lt;UICulture&gt; in the project file (.csproj) Visual Studio builds a satellite DLL and puts the resources into it. The application assembly no longer contains the resources.<br/>When using a satellite DLL for the default resources you must translate this satellite DLL with RC-WinTrans- not the EXE.<br/>My suggestion: leave the default resource in the EXE. Do not use the &lt;UICulture&gt;.<br/><br/>See also (at Microsoft): "<b>Localize a WPF Application</b>"<br/><a href="http://msdn.microsoft.com/en-us/library/ms788718.aspx#workflow_to_localize" target="_blank" rel="nofollow"><b>http://msdn.microsoft.com/en-us/library/ms788718.aspx#workflow_to_localize</b></a><b><br/></b><span style="color:rgb(255, 255, 255)">. </span><br/><br/><b>2.</b> <br/>&gt; "Tools" | "WPF" | ".NET Project update "x:Uid" attributes..."<br/>&gt; Doesn't do anything.<br/><br/>Nothing happens in RC-WinTrans but for your Visual Studio project. RC-WinTrans call the <b><i>msbuild.exe</i></b> (Microsoft command line tool) to add the "x:Uid" attributes to your VS project's source XAML files. Check the XAML files -- the elements should have "x:Uid" attribute now.<br/><br/>See at Microsoft: "<b>Best Practice for WPF Localization</b>"<br/><a href="http://msdn.microsoft.com/en-us/library/ms788718.aspx" target="_blank" rel="nofollow"><b>http://msdn.microsoft.com/en-us/library/ms788718.aspx</b></a><b><br/></b><span style="color:rgb(255, 255, 255)"><br/>. </span><br/>Regards, <br/>Support, Schaudin.com<br/><span style="color:rgb(255, 255, 255)">.</span><br/><em>edited by Support on 04.03.2011</em>]]></description>
<pubDate>Wed, 02 Mar 2011 19:55:10 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from MichaelTR</title>
<description><![CDATA[<strong>Support</strong> wrote:<br/><div class=quote>You can use RC-WinTrans to prepare a Visual Studio WPF project (the XAML files) with the required "x:Uid" attributes. <br/>Use: "Tools" | "WPF" | ".NET Project update "x:Uid" attributes..." <br/>Select your Visual Studio project file (e.g. for C#: .csproj) . Then rebuild your WPF project to create the assembly (EXE or DLL) newly. <br/></div> <br/><br/>Doesn't do anything.<br/><br/><div class=quote>Running MSBuild.exe ...<br/>C:\Programme\RC-WinTrans\RC-WinTrans 9 Global\WPFProjects\BAMLBuild2010\MSBuild.exe /t:updateuid C:\mist\WpfSprachumschaltung\WpfSprachumschaltung\WpfSprachumschaltung.csproj<br/>Output:<br/></div>]]></description>
<pubDate>Wed, 02 Mar 2011 15:47:04 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from MichaelTR</title>
<description><![CDATA[I now found a problem, which maybe a bug in RCWinTrans.<br/><br/>In AssemblyInfo.cs Microsoft says:<br/><div class=quote><span style="color:#008000"><span style="color:#008000"><span style="color:#008000">  //In order to begin building localizable applications, set <br/>  //&lt;UICulture&gt;CultureYouAreCodingWith&lt;/UICulture&gt; in your .csproj file<br/>  //inside a &lt;PropertyGroup&gt;.<br/></span></span></span></div><br/><br/>If I do this, RCWinTrans cannot find any WPF resources in the exe anymore.<br/><br/>If I omit this line the exe crashes immediately.]]></description>
<pubDate>Wed, 02 Mar 2011 15:30:11 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from Support</title>
<description><![CDATA[Hello MichaelTR,<br/><br/>there is something else...<br/>The XAML elements in your  WPF software project  (Visual Studio) must have "x:Uid" attributes to be localizable.  RC-WinTrans can read (and translate) the WPF resources without having the "x:Uid" attributes but the WPF resources in the target satellite DLL (created by RC-WinTrans) will keep the source text if no "x:Uid" attributes exists.  <br/><br/>You can use RC-WinTrans to prepare a Visual Studio WPF project (the XAML files) with the required "x:Uid" attributes.  <br/>Use:  "Tools" | "WPF" | ".NET Project update "x:Uid" attributes..."<br/>Select your Visual Studio project file (e.g. for C#: .csproj). Then rebuild your WPF project to create the assembly (EXE or DLL) newly.<br/><br/>Regards,<br/>Support,  Schaudin.com<br/><span style="color:rgb(255, 255, 255)">.</span><br/><em>edited by Support on 04.03.2011</em>]]></description>
<pubDate>Wed, 02 Mar 2011 14:08:32 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from Support</title>
<description><![CDATA[Hello MichaelTR, <br/><br/><b>1. How can I choose this language at program startup? <br/></b><br/>Use: <br/><i>System.Globalization.CultureInfo aCultureInfo = <span style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">new</span></span></i><i> System.Globalization.CultureInfo("en"); <br/>System.Threading.Thread.CurrentThread.CurrentUICulture = aCultureInfo; <br/><br/></i>This is the same as your code I think. <br/><br/>You can test switching the language of your application by using the small <i><b>LocTester</b></i>  application. <br/>When using <i>LocTester</i> you do not need to implement setting the language with "CurrentUICulture". <br/><br/>LocTester: <br/><a href="http://blogs.microsoft.co.il/blogs/tamir/archive/2007/08/26/How-to-test-localized-application_3F00_.aspx" target="_blank" rel="nofollow">http://blogs.microsoft.co.il/blogs/tamir/archive/2007/08/26/How-to-test-localized-application_3F00_.aspx</a> <br/><br/>Download: <br/><a href="http://blogs.microsoft.co.il/files/folders/tamir/entry23129.aspx" target="_blank" rel="nofollow">http://blogs.microsoft.co.il/files/folders/tamir/entry23129.aspx</a> <br/><a href="http://blogs.microsoft.co.il/files/folders/tamir/entry23129.aspx" target="_blank" rel="nofollow"><br/></a><br/><br/><b>2. Use the xaml files as a source</b> <br/><br/>&gt; How can I now integrate these files into my app? <br/><br/>It is not possible to add localized versions of an XAML file to a Visual Studio project like you can with RESX files. <br/>We would also like to have the option of working with translated XAML files directly but unfortunately it can't be done. <br/><br/><b>3. WPFProjects</b><br/><br/>&gt; BTW: I already took a look at the samples in WPFProjects folder. It's not possible to build these projects, because of missing files. <br/><br/>These are not sample projects. They are two Visual Studio projects used by RC-WinTrans to create a binary BAML file from an XAML file. <br/><span style="color:rgb(255, 255, 255)">.</span><br/><br/>Regards, <br/>Support, Schaudin.com <br/><span style="color:rgb(255, 255, 255)">.</span><br/><em>edited by Support on 04.03.2011</em>]]></description>
<pubDate>Tue, 01 Mar 2011 16:11:55 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=26</link>
<title>Message from MichaelTR</title>
<description><![CDATA[Hello <br/>I'm trying to translate a WPF program. <br/><br/>There are two options in RC-WinTrans: <br/><br/><b>1. Use the exe as a source</b>. <br/>This produces a .resources.dll file under a folder called after the choosen language (e.g. "en"). <br/>How can I choose this language at program startup? <br/>I tried <br/>Thread.CurrentThread.CurrentUICulture = new CultureInfo("en"); <br/>Thread.CurrentThread.CurrentCulture = new CultureInfo("en"); <br/>in the construcor of the App to no avail. <br/>Is there something else I have to do, or is there a sample available to use this method?<br/><br/><b>2. Use the xaml files as a source</b> (this would be my preferred way, because I already use RC WinTrans to translate the resource files for C++ and Windows Forms apps). <br/>This produces _en.xaml files for each source file. <br/>How can I now integrate these files into my app? <br/>　 <br/>BTW: I already took a look at the samples in WPFProjects folder. It's not possible to build these projects, because of missing files. <br/>　 <br/>TIA Michael]]></description>
<pubDate>Mon, 28 Feb 2011 09:41:19 GMT</pubDate>
</item>
</channel>
</rss>
