How can I change the locale used by IntelliJ IDEA?

Viewed 9709

I tried creating a new Gradle project with IntelliJ IDEA (11.1.3 Community Edition). Unfortunately, I am confronted with this error:

enter image description here

The IDE log reveals this error:

2012-08-19 06:48:50,873 [ 735372]   WARN - .plugins.gradle.util.GradleLog - java.util.MissingResourceException: Can't find bundle for base name i18n.GradleBundle, locale en_CA

No big surprise there.

I am not sure how IntelliJ IDEA determines which locale to use, but it correctly determined that I live in Canada. I tried to change the locale to en_US by passing the following command line flags to the JVM in the idea.sh shell script:

# Adam's custom args:
LOCALE_ARGS="-Duser.language=en -Duser.country=US -Duser.variant=US"

ALL_JVM_ARGS="$LOCALE_ARGS $VM_OPTIONS $COMMON_JVM_ARGS $IDE_JVM_ARGS $AGENT $REQUIRED_JVM_ARGS"

Unfortunately, it still insists on using en_CA.

How do I change the locale used by IntelliJ IDEA?

2 Answers

This won't help with the gradle bug mentioned in the answer (which I dunno might be fixed by now) but here's how I changed the Locale used by IntelliJ itself

Help --> Edit Custom VM Options

append these three lines

-Duser.language=en
-Duser.country=US
-Duser.variant=US

save and restart IntelliJ

Related