Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
I18NSync: interfaces generation from properties files with dots is not supported
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Polina  
View profile  
 More options Aug 21 2006, 8:57 am
From: "Polina" <plabin...@mail.ru>
Date: Mon, 21 Aug 2006 05:57:58 -0700
Local: Mon, Aug 21 2006 8:57 am
Subject: I18NSync: interfaces generation from properties files with dots is not supported
Hi

if a property file keys contain dots - the interface's methods names
generated by I18NSync also contain dots - this results in unacceptable
Java methods names.

E.g.:

some.key=some value

=>

  /**.....
   * @gwt.key some.key
   */
  String some.key();

Thanx,
Polina


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emily  
View profile  
 More options Aug 21 2006, 11:41 am
From: "Emily" <e...@google.com>
Date: Mon, 21 Aug 2006 15:41:28 -0000
Local: Mon, Aug 21 2006 11:41 am
Subject: Re: I18NSync: interfaces generation from properties files with dots is not supported
Yes, that is the intended behavior. The i18n scripts intentionally
generate methods named identically to their corresponding property
names, even when those method names aren't valid. (The rationale is
that it causes compiler errors which makes it easy to find the method
names you need to tweak.)

After running the i18n script, you can change the illegal method names
to whatever legal ones you would like to use for the given property.
The @gwt.key attribute maintains the association between a method and
its corresponding property name even though you change the method name.
See
http://code.google.com/webtoolkit/documentation/com.google.gwt.i18n.c...
for more information on @gwt.key and an example.

    Cheers,

             Emily


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Polina  
View profile  
 More options Aug 22 2006, 3:00 am
From: "Polina" <plabin...@mail.ru>
Date: Tue, 22 Aug 2006 00:00:41 -0700
Local: Tues, Aug 22 2006 3:00 am
Subject: Re: I18NSync: interfaces generation from properties files with dots is not supported
Thanks, Emily,

nevertheless when you need to generate a lot of methods from a large
properties file automatic dots replacement can be usefull.

Polina


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google