<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Quick Tip 24: Changing the Language on the fly</title>
	<atom:link href="http://eppleton.sharedhost.de/blog/?feed=rss2&#038;p=534" rel="self" type="application/rss+xml" />
	<link>http://eppleton.sharedhost.de/blog/?p=534</link>
	<description>Toni's blog on NetBeans and Java</description>
	<pubDate>Tue, 07 Sep 2010 00:41:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ren</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-6029</link>
		<dc:creator>ren</dc:creator>
		<pubDate>Fri, 04 Dec 2009 07:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-6029</guid>
		<description>Oh, no. It's fail again...
In fact, in layer.xml, you need to set the localizing attribute for the menu folder which you want to translate. 
(attr name="SystemFileSystem.localizingBundle" stringvalue="org.yours.module.Bundle")</description>
		<content:encoded><![CDATA[<p>Oh, no. It&#8217;s fail again&#8230;<br />
In fact, in layer.xml, you need to set the localizing attribute for the menu folder which you want to translate.<br />
(attr name=&#8221;SystemFileSystem.localizingBundle&#8221; stringvalue=&#8221;org.yours.module.Bundle&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ren</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-6028</link>
		<dc:creator>ren</dc:creator>
		<pubDate>Fri, 04 Dec 2009 07:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-6028</guid>
		<description>Why my last post display incomplete? I repost the "layer.xml" as following.
—— layer.xml ——
///
///	
///		
///	
///</description>
		<content:encoded><![CDATA[<p>Why my last post display incomplete? I repost the &#8220;layer.xml&#8221; as following.<br />
—— layer.xml ——<br />
///<br />
///<br />
///<br />
///<br />
///</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ren</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-6027</link>
		<dc:creator>ren</dc:creator>
		<pubDate>Fri, 04 Dec 2009 06:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-6027</guid>
		<description>I found it is not necessary to force a refresh, you can do it like this:
        Frame main = WindowManager.getDefault().getMainWindow();
        assert main != null;
        if (main instanceof JFrame) {
            Component[] cs = ((JFrame)main).getJMenuBar().getComponents();
            for (Component c : cs) {
                Runnable menu = (Runnable)c;
                menu.run();
            }
        }
but in this way, you should localizing like this:

------  layer.xml --------

  
    
      
      ...
    
  


----- Bundle.properties -------
Menu/XXX=english menutitle
...

----- Bundle_zh_CN.properties -------
Menu/XXX=chinese menutitle
...</description>
		<content:encoded><![CDATA[<p>I found it is not necessary to force a refresh, you can do it like this:<br />
        Frame main = WindowManager.getDefault().getMainWindow();<br />
        assert main != null;<br />
        if (main instanceof JFrame) {<br />
            Component[] cs = ((JFrame)main).getJMenuBar().getComponents();<br />
            for (Component c : cs) {<br />
                Runnable menu = (Runnable)c;<br />
                menu.run();<br />
            }<br />
        }<br />
but in this way, you should localizing like this:</p>
<p>&#8212;&#8212;  layer.xml &#8212;&#8212;&#8211;</p>
<p>      &#8230;</p>
<p>&#8212;&#8211; Bundle.properties &#8212;&#8212;-<br />
Menu/XXX=english menutitle<br />
&#8230;</p>
<p>&#8212;&#8211; Bundle_zh_CN.properties &#8212;&#8212;-<br />
Menu/XXX=chinese menutitle<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Claude Dauphin</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-2182</link>
		<dc:creator>Jean-Claude Dauphin</dc:creator>
		<pubDate>Wed, 13 May 2009 09:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-2182</guid>
		<description>Hi Toni,

Thank you very much for this tip. The presentation on localization would be a great contribution.

I have a problem for displaying Tamil Text in a JTextPane with a document derived from DefaultStyledDocument.

Arabic is well displayed but Tamil gives boxes. I suppose it is a font problem, would you
have any idea how yo solve this pb

JCD</description>
		<content:encoded><![CDATA[<p>Hi Toni,</p>
<p>Thank you very much for this tip. The presentation on localization would be a great contribution.</p>
<p>I have a problem for displaying Tamil Text in a JTextPane with a document derived from DefaultStyledDocument.</p>
<p>Arabic is well displayed but Tamil gives boxes. I suppose it is a font problem, would you<br />
have any idea how yo solve this pb</p>
<p>JCD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1162</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Sat, 11 Apr 2009 17:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1162</guid>
		<description>Localization is extremely important. I do have a presentation on this, which I could contribute...</description>
		<content:encoded><![CDATA[<p>Localization is extremely important. I do have a presentation on this, which I could contribute&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geertjan</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1152</link>
		<dc:creator>Geertjan</dc:creator>
		<pubDate>Sat, 11 Apr 2009 10:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1152</guid>
		<description>Ah, now I get it. I think we should consider including a session on localization in our NetBeans Platform Certified Trainings. We could talk about NbBundle, about the Internationalization wizard, about the 'branding' folder, about putting localized texts in separate modules, etc etc.</description>
		<content:encoded><![CDATA[<p>Ah, now I get it. I think we should consider including a session on localization in our NetBeans Platform Certified Trainings. We could talk about NbBundle, about the Internationalization wizard, about the &#8216;branding&#8217; folder, about putting localized texts in separate modules, etc etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1145</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Sat, 11 Apr 2009 06:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1145</guid>
		<description>For support. E.g. if someone has a problem with an application rendered in a language or character set you can't read and you would like to support him. Then it's very useful being able to change the language while the application is running, so you can take over and work with it. I had this request from customers who create localizations in many languages including chinese.</description>
		<content:encoded><![CDATA[<p>For support. E.g. if someone has a problem with an application rendered in a language or character set you can&#8217;t read and you would like to support him. Then it&#8217;s very useful being able to change the language while the application is running, so you can take over and work with it. I had this request from customers who create localizations in many languages including chinese.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geertjan</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1132</link>
		<dc:creator>Geertjan</dc:creator>
		<pubDate>Fri, 10 Apr 2009 20:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1132</guid>
		<description>But when would one want to do that? If you suddenly turn into a French person after you started the application as a Japanese person?</description>
		<content:encoded><![CDATA[<p>But when would one want to do that? If you suddenly turn into a French person after you started the application as a Japanese person?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1131</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Fri, 10 Apr 2009 20:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1131</guid>
		<description>This only helps to brand an application, it doesn't help when trying to change language while the application is already running...</description>
		<content:encoded><![CDATA[<p>This only helps to brand an application, it doesn&#8217;t help when trying to change language while the application is already running&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geertjan</title>
		<link>http://eppleton.sharedhost.de/blog/?p=534&#038;cpage=1#comment-1125</link>
		<dc:creator>Geertjan</dc:creator>
		<pubDate>Fri, 10 Apr 2009 18:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://eppleton.sharedhost.de/blog/?p=534#comment-1125</guid>
		<description>Couldn't you also find the Bundle.properties file where the strings are found and then override them in the application's 'branding' folder?</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t you also find the Bundle.properties file where the strings are found and then override them in the application&#8217;s &#8216;branding&#8217; folder?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
