British english on JavaFX controls

2014-10-16 Thread Michael Berry
Hello, I'm trying to get the JavaFX controls (specifically the ColorPicker) to display British English labels, that is Colour instead of Color, but don't seem to be getting anywhere - do I need to do anything more than setting the default Locale? For instance: public void start(Stage

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
Looking at the com/sun/javafx/scene/control/skin/resources/controls package there's not extra properties file for en nor one for en_UK. Wild guess you can fix this is that you put such a properties file in exactly this package of of your application and it will be picked up. Tom On 16.10.14

Re: British english on JavaFX controls

2014-10-16 Thread Jim Clarke
Wouldn't you also have to fix the call to setLocale to en_UK? Sent from my iPhone On Oct 16, 2014, at 8:34 AM, Tom Schindl tom.schi...@bestsolution.at wrote: Looking at the com/sun/javafx/scene/control/skin/resources/controls package there's not extra properties file for en nor one for

Re: British english on JavaFX controls

2014-10-16 Thread Michael Berry
Thanks for the suggested fix - unfortunately though that doesn't seem to work. The following: @Override public void start(Stage primaryStage) throws Exception { Locale.setDefault(new Locale(en, UK));

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
Right should be en_GB this is what Locale.UK maps to. What needs to done is to create a controls_en_GB.properties file and put the british translations in there. Tom On 16.10.14 14:37, Jim Clarke wrote: Wouldn't you also have to fix the call to setLocale to en_UK? Sent from my iPhone On

Re: British english on JavaFX controls

2014-10-16 Thread Tom Schindl
On 16.10.14 16:15, Tom Schindl wrote: Ok - it ResourceBundle.getBundle() uses the classloader of the caller which means the ExtensionClassloader so having the additional properties in your local dir does help. does NOT help! Tom

Re: British english on JavaFX controls

2014-10-16 Thread Michael Berry
Hi Tom, Sure, that makes sense, thanks for the info. Don't suppose there's a workaround you know of? This is for an application which has a bundled JRE, so I can potentially just add the language file in the proper location - it'd just be nice to have a fix that doesn't require modification if

Re: British english on JavaFX controls

2014-10-16 Thread Michael Berry
Sure, JIRA is here: https://javafx-jira.kenai.com/browse/RT-39004 Afraid I'm not sure about AWT / Swing, I've never tried to add a translation there! Michael On 16 October 2014 15:38, Stephen F Northover steve.x.northo...@oracle.com wrote: Please enter a JIRA for the missing translation. If

Re: British english on JavaFX controls

2014-10-16 Thread Phil Race
On 10/16/2014 7:38 AM, Stephen F Northover wrote: Please enter a JIRA for the missing translation. If AWT/Swing is missing a translation, is there a way to add it short of modifying the system? I don't think Swing (or any other part of the JDK classes for that matter) would reach out to an

Re: British english on JavaFX controls

2014-10-16 Thread Stephen F Northover
Thanks Phil. I have given up on Canadian spelling where computers concerned. Michael Fang is on the JIRA. Steve On 2014-10-16, 3:34 PM, Phil Race wrote: On 10/16/2014 7:38 AM, Stephen F Northover wrote: Please enter a JIRA for the missing translation. If AWT/Swing is missing a