Thank you for the solution.

 

 

Translation for the resourse file:

(Hope I can contribute something to the project, or even join the Dev team, if 
I get enouph time :) )

 

 {
firstName: "名字",
lastName: "姓氏",
street: "街道",
city: "城市",
state: "省份",
postalCode: "邮编",
country: "国籍"
}

 

 


 
> Date: Wed, 7 Oct 2009 10:29:16 -0400
> Subject: Re: font styles,wtkx xsd file, and auto-strech
> From: [email protected]
> To: [email protected]
> 
> Ok, the fix was to add a Theme.setFont() method, allowing the application
> developer to override the default theme font. I've updated the localization
> tutorial to use this API to use a font that supports Chinese characters --
> see
> http://svn.apache.org/repos/asf/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/localization/Localization.javafor
> an example. Applications that use characters outside of those
> supported
> by Verdana will have to use code similar to the code above as the first
> thing they do when their application starts up.
> 
> Leo, can you please translate the following resources into Chinese
> characters for us so we can include a valid Chinese example in the
> localization tutorial?
> 
> {
> firstName: "First name",
> lastName: "Last name",
> street: "Street",
> city: "City",
> state: "State",
> postalCode: "Zip",
> country: "Country"
> }
> 
> Thanks!
> -T
> 
> 
> 2009/10/7 Todd Volkert <[email protected]>
> 
> > Ok, I've identified the issue, which is that TerraTheme's font, Verdana,
> > cannot display Chinese characters (it doesn't have the glyphs).
> >
> > Thinking about a fix now... ideas are welcome. One possible fix that Greg
> > thought of would be to use resource bundles to load our theme config (fonts
> > and colors), to allow for Locale-specific fonts to be used.
> >
> > -T
> >
> > 2009/10/7 Todd Volkert <[email protected]>
> >
> > I just ran this test, and it looks like the window's title shows the
> >> characters correctly, but the button does not. Is that the behavior you're
> >> seeing as well? I will investigate this.
> >>
> >> For the benefit of those watching this thread, I tried adding <?xml
> >> version="1.0" encoding="UTF-8"?> to the WTKX file as well, to no avail.
> >>
> >> -T
> >>
> >> 2009/10/7 ice ice <[email protected]>
> >>
> >>
> >>> Hi all,
> >>> Thank you very much for your info.
> >>>
> >>> I've attached my screen shot of testing Chinese font for your infor.
> >>>
> >>> My wtkx file is as below, I'm sure it is saved as UTF-8 endoding.
> >>>
> >>> -------------------------------------------------------------------------------------------
> >>> <Window title="中文标题Chinese window title" maximized="false"
> >>> icon="icons/house.png"
> >>> xmlns:wtkx="http://pivot.apache.org/wtkx";
> >>> xmlns:collections="org.apache.pivot.collections"
> >>> xmlns:content="org.apache.pivot.wtk.content"
> >>> xmlns="org.apache.pivot.wtk">
> >>> <content>
> >>> <BoxPane preferredWidth="800" preferredHeight="600">
> >>> <PushButton buttonData="中文按钮Chinese button title"/>
> >>> </BoxPane>
> >>> </content>
> >>> </Window>
> >>>
> >>> -------------------------------------------------------------------------------------------
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> > Date: Tue, 6 Oct 2009 09:52:10 -0400
> >>> > From: [email protected]
> >>> > To: [email protected]
> >>> > Subject: Re: font styles,wtkx xsd file, and auto-strech
> >>> >
> >>> > >2) I can specify font family in Label, but not every font. when I try
> >>> using languages other then English, such as Chinese, there only have 
> >>> little
> >>> rectangels act as place holder instead , could this be solved?
> >>> >
> >>> > This sounds like a possible file encoding issue. Are you saving your
> >>> WTKX files in UTF-8?
> >>> >
> >>> > >3) I 'm using pivot for both web and desktop application, are there
> >>> any way to make elements in pivot auto strech SMARTLY when I resize the
> >>> desktop window or browser?
> >>> >
> >>> > I assume you mean that you want your content to fill the available
> >>> space? First, you should make sure that your top-level application window 
> >>> is
> >>> maximized:
> >>> >
> >>> > <Window maximized="true">
> >>> > ...
> >>> > </Window>
> >>> >
> >>> > Th en, you should make sure that your window's content is a layout
> >>> container that will take advantage of the available space. See the 
> >>> tutorial
> >>> for examples of how each container works.
> >>> >
> >>> > G
> >>> >
> >>>
> >>> ------------------------------
> >>> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they
> >>> e-mail 
> >>> you.<http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010>
> >>>
> >>
> >>
> >
                                          
_________________________________________________________________
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009

Reply via email to