Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>please use the second method you've mentioned. </p> <blockquote> <p>I got some advice that I should simplify the whole localization process, by setting the "localizable" property to true and make the translations done. And most of the tutorials follow this way.</p> </blockquote> <p>Because this is the intended way of how Microsoft think localization should be done in a winforms app. <a href="http://msdn.microsoft.com/en-us/library/y99d1cd3%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/y99d1cd3%28v=vs.90%29.aspx</a></p> <p>One problem with your first solution: <strong>How do you maintain that a text in another language will be displayed correctly?</strong> <br>That's one of the occuring problems, Microsoft have been aware of. With a small tool found in the SDK called: WINRES.exe you can see the designed forms and write the translation for them. <a href="http://msdn.microsoft.com/en-us/library/8bxdx003%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/8bxdx003%28v=vs.90%29.aspx</a></p> <p>If you want to change the language on runtime and update all forms this article maybe a hint for you: <a href="http://msdn.microsoft.com/en-us/magazine/cc163609.aspx#S9" rel="nofollow">http://msdn.microsoft.com/en-us/magazine/cc163609.aspx#S9</a><br> The following lines gives an explain howto update you UI:</p> <pre><code>Dim crm As ComponentResourceManager crm = New ComponentResourceManager(GetType(Main)) crm.ApplyResources(cmdAddCustomer, cmdAddCustomer.Name) crm.ApplyResources(mnuFile, mnuFile.Name) crm.ApplyResources(mnuFileAddCustomer, mnuFileAddCustomer.Name) </code></pre> <p>The last 3 lines of this code can be found in each form (localizable = true) in the designer file.<br> So you can specify an interface for an update method, which every form should implement, implement the interface and after language change iterate the through all forms and call these method.</p> <p>Hope this might help you ...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload