Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the locale used by IntelliJ IDEA?

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?

like image 306
Adam Paynter Avatar asked Nov 14 '22 00:11

Adam Paynter


1 Answers

The error message in idea.log indicates that the Grade plugin itself does not reuse IDEA's system properties. This is a known bug verified by JetBrains and you can vote for it.

like image 175
Franck Rasolo Avatar answered Dec 28 '22 06:12

Franck Rasolo