Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date and Time Region Cannot Change automaticly #68

Closed
dendi opened this issue Dec 21, 2013 · 4 comments
Closed

Date and Time Region Cannot Change automaticly #68

dendi opened this issue Dec 21, 2013 · 4 comments
Assignees
Labels

Comments

@dendi
Copy link

dendi commented Dec 21, 2013

I cant change the region time date, I mean ex: in my regional (Indonesia) date and time December is Desember, but when i use weblaf it still "December", I have change region setting on control panel but I can not change date and time region support in this library, please fix sir, thank you so much for build this librarys, its awesome project , sorry my bad english

this is a screenshot :
http://ohong.files.wordpress.com/2013/12/capture.png
capture

@ghost ghost assigned mgarin Dec 27, 2013
@mgarin
Copy link
Owner

mgarin commented Dec 27, 2013

I will investigate this case and see what causes this behavior in WebLaF.
Thanks for reporting!

@mgarin
Copy link
Owner

mgarin commented Jan 24, 2014

A wild guess - you are using WebLaF with an English language set?

It is important, because WebLaF will set Locale according to language set.
This is called when language is set inside LanguageManager (en language by default):

private static void updateLocale ()
{
    // Proper locale for language
    for ( final Locale locale : Locale.getAvailableLocales () )
    {
        if ( locale.getLanguage ().equals ( language ) )
        {
            Locale.setDefault ( locale );
            return;
        }
    }
    Locale.setDefault ( new Locale ( language ) );
}

@dendi
Copy link
Author

dendi commented Jan 25, 2014

ok, thank for your help, I will try it.
this a my fav look and feel in java.

On Fri, Jan 24, 2014 at 5:55 PM, Mikle notifications@github.com wrote:

A wild guess - you are using WebLaF with an English language set?

It is important, because WebLaF will set Locale according to language set.
This is called when language is set inside LanguageManager (en language by
default):

private static void updateLocale (){
// Proper locale for language
for ( final Locale locale : Locale.getAvailableLocales () )
{
if ( locale.getLanguage ().equals ( language ) )
{
Locale.setDefault ( locale );
return;
}
}
Locale.setDefault ( new Locale ( language ) );

// todo In future, with JDK7+
// Locale.setDefault ( Locale.forLanguageTag ( language ) );}


Reply to this email directly or view it on GitHubhttps://github.com//issues/68#issuecomment-33213822
.

@mgarin
Copy link
Owner

mgarin commented Jun 26, 2014

I will close this issue for now.
If you still have it - feel free to reopen and add some more details on what happens :)

@mgarin mgarin closed this as completed Jun 26, 2014
@mgarin mgarin added question and removed bug labels Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants