<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Change property DisplayName with locatization</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Change property DisplayName with locatization</description>
  <pubDate>Thu, 14 May 2026 09:28:48 -700</pubDate>
  <lastBuildDate>Wed, 22 May 2013 06:12:45 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3840</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Change property DisplayName with locatization : perfect, that helps a lot.. thanks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16377#16377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1600" rel="nofollow">cypher</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 22-May-2013 at 6:12am<br /><br />perfect, that helps a lot.. thanks for you super fast feedback.&nbsp;]]>
   </description>
   <pubDate>Wed, 22 May 2013 06:12:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16377#16377</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization :  Hi cypher,It&amp;#039;s a very simple...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16376#16376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 22-May-2013 at 6:11am<br /><br />Hi cypher,<div><br></div><div>It's a very simple delegate:</div><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;"><pre style="font-family: C&#111;nsolas; -: initial initial; -repeat: initial initial;"><span style="color:blue;">public</span>&nbsp;UnitOfWorkBase(<span style="color:#2b91af;">IEntityManagerProvider</span>&nbsp;entityManagerProvider,&nbsp;<span style="color:#2b91af;">QueryStrategy</span>&nbsp;strategy&nbsp;=&nbsp;<span style="color:blue;">null</span>)&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<span style="color:blue;">base</span>(entityManagerProvider){&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;entityManagerProvider.Manager.VerifierEngine.PropertyNameToDisplayNameTranslator&nbsp;+=&nbsp;PropertyNameToDisplayNameTranslator;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...}<span style="color:blue;">private</span>&nbsp;<span style="color:blue;">string</span>&nbsp;PropertyNameToDisplayNameTranslator(<span style="color:#2b91af;">Type</span>&nbsp;pType,&nbsp;<span style="color:#2b91af;">String</span>&nbsp;pPropertyName){&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">return</span>&nbsp;i18n.Localization.<span style="color:#2b91af;">ErrorMessages</span>.ResourceManager.GetString(pPropertyName);}</pre></pre><div><br></div><div>i18n is my project that I have my localized strings.</div>]]>
   </description>
   <pubDate>Wed, 22 May 2013 06:11:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16376#16376</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization : hi cefeman,could you provide you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16375#16375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1600" rel="nofollow">cypher</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 22-May-2013 at 5:46am<br /><br />hi cefeman,<div><br></div><div>could you provide you sample delegate to translate the properties with localisation</div>]]>
   </description>
   <pubDate>Wed, 22 May 2013 05:46:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=16375#16375</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization : The second approach solve perfectly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15362#15362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 07-Dec-2012 at 11:54am<br /><br />The second approach solve perfectly my problem.<div><br></div><div><div>Thanks Kim.</div></div>]]>
   </description>
   <pubDate>Fri, 07 Dec 2012 11:54:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15362#15362</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization :   There are a couple of ways...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15361#15361</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 07-Dec-2012 at 10:13am<br /><br />There are a couple of ways you can localize the Display Name.&nbsp; <div>&nbsp;</div><div>One is to modify the code generation process to generate Display attributes with resource information.&nbsp; More info here - <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2063&amp;title=displayattribute" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2063&amp;title=displayattribute</a>.</div><div>&nbsp;</div><div>Another is to set the PropertyNameToDisplayNameTranslator on the VerifierEngine - <a href="http://drc.ideablade.com/Api&#068;ocumentati&#111;n/IdeaBlade.Validati&#111;n~IdeaBlade.Validati&#111;n.VerifierEngine~PropertyNameToDisplayNameTranslator.html" target="_blank">http://drc.ideablade.com/ApiDocumentation/IdeaBlade.Validation~IdeaBlade.Validation.VerifierEngine~PropertyNameToDisplayNameTranslator.html</a>.&nbsp;&nbsp; We don't have an example of this, but the delegate you provide will be called whenever the property/display name is needed, and you can provide your own localization logic within the delegate.</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 07 Dec 2012 10:13:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15361#15361</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization :  Hi Silvio,Yes, I have. I implemented...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15360#15360</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 07-Dec-2012 at 2:59am<br /><br />Hi Silvio,<div><br></div><div>Yes, I have. I implemented it and it's working.&nbsp;</div><div><br></div><div>Now, I want to translate the name of the properties too.&nbsp;<span style=": rgb251, 251, 253;">Just take a look in my example that I wish.</span></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Customer</div><div style=": rgb251, 251, 253;">----------</div><div style=": rgb251, 251, 253;">ID</div><div style=": rgb251, 251, 253;">Name</div><div style=": rgb251, 251, 253;">Phone</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">As I did, appears:</div><div style=": rgb251, 251, 253;">en-US<span ="apple-tab-span"="" style="white-space:pre">	</span>-&gt;<span ="apple-tab-span"="" style="white-space:pre">	</span>"Name is required"</div><div style=": rgb251, 251, 253;"><span ="apple-tab-span"="" style="white-space:pre">			</span>"Phone is required"</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">pt-BR<span ="apple-tab-span"="" style="white-space:pre">	</span>-&gt;<span ="apple-tab-span"="" style="white-space:pre">	</span>"Name é obrigatório"</div><div style=": rgb251, 251, 253;"><span ="apple-tab-span"="" style="white-space:pre">			</span>"Phone é obrigatório"</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Because Name and Phone are the names of my columns in DataBase, they will appear in the same form in any language.</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">For the user is strange to see this names in English, so I also want to translate them:</div><div style=": rgb251, 251, 253;"><div>pt-BR<span ="apple-tab-span"="" style="white-space: pre;">	</span>-&gt;<span ="apple-tab-span"="" style="white-space: pre;">	</span>"Nome é obrigatório"</div><div><span ="apple-tab-span"="" style="white-space: pre;">			</span>"Telefone é obrigatório"</div><div><br></div><div>Thanks.</div></div><span style="font-size:10px"><br /><br />Edited by cefernan - 07-Dec-2012 at 3:17am</span>]]>
   </description>
   <pubDate>Fri, 07 Dec 2012 02:59:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15360#15360</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization : Hi cefernan,  Have you taken a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15354#15354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 06-Dec-2012 at 1:15pm<br /><br />Hi cefernan,<br /><br />Have you taken a look at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/validate-localizing-error-messages" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/validate-localizing-error-messages</a>?.<br /><br />sbelini.]]>
   </description>
   <pubDate>Thu, 06 Dec 2012 13:15:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15354#15354</guid>
  </item> 
  <item>
   <title>Change property DisplayName with locatization :   Hi,I have an application that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15351#15351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 3840<br /><strong>Posted:</strong> 06-Dec-2012 at 9:29am<br /><br /><div><div>Hi,</div><div><br></div><div>I have an application that is prepared to change the language at runtime and it's working fine. Now, I'm implementing to show the DevForce error messages in different languages too.&nbsp;</div><div><br></div><div>I did it changing ErrorsResourceManager:</div><div>entityManager.VerifierEngine.ErrorsResourceManager = MyErrorMessages.ResourceManager;</div><div><br></div><div>Now I have messages like that:</div><div><div>English - "Name is required"</div><div>Portuguese - "Name é obrigatório"</div><div><br></div></div><div>So, I also need to change the property display name, "Name" in this case need to be change to "Nome".</div><div><br></div><div>The perfect result would be:</div><div><div>English - "Name is required"</div><div>Portuguese - "Nome é obrigatório"</div></div><div><br></div><div>What is the best way to solve this case?</div><div><br></div><div>Regards.</div></div>]]>
   </description>
   <pubDate>Thu, 06 Dec 2012 09:29:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3840&amp;PID=15351#15351</guid>
  </item> 
 </channel>
</rss>