Re: Get compiled locales from client web application

2010-03-19 Thread Alexander
I bet you can't do it. Information about locales is used during compilation
time and can't be reached later in app. Only if you hardcode it somewhere.

On 18 March 2010 22:28, Thoka thobias.karls...@gmail.com wrote:

 How do I get the compiled locales from my client application?

 LocaleInfo.getAvailableLocaleNames() always returns null, even though
 my application.gwt.xml includes:

 inherits name='com.google.gwt.i18n.I18N' /

 and

 extend-property name='locale' values='no_NO' /
 extend-property name='locale' values='sv_SE' /


 What I want is simply a String array like {no_NO,sv_SE}

 In the no-cache js file (e.g. application.nocache.js) I find the
 following code (if compile style is set to DETAILED):

 values[$intern_34] = {'default':0, no_NO:1, sv_SE:2}; // Where
 $intern_34 is set to 'locale'

 Sadly, I cannot figure out how to reach this variable (values) since
 it's going to be obfuscated.

 Any ideas?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Regards,
Alexander

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Get compiled locales from client web application

2010-03-18 Thread Thoka
How do I get the compiled locales from my client application?

LocaleInfo.getAvailableLocaleNames() always returns null, even though
my application.gwt.xml includes:

inherits name='com.google.gwt.i18n.I18N' /

and

extend-property name='locale' values='no_NO' /
extend-property name='locale' values='sv_SE' /


What I want is simply a String array like {no_NO,sv_SE}

In the no-cache js file (e.g. application.nocache.js) I find the
following code (if compile style is set to DETAILED):

values[$intern_34] = {'default':0, no_NO:1, sv_SE:2}; // Where
$intern_34 is set to 'locale'

Sadly, I cannot figure out how to reach this variable (values) since
it's going to be obfuscated.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.