@@ -110,12 +110,12 @@ private void setLocaleToEnglish() {
110110 final Locale systemDefaultLocale = Locale .getDefault ();
111111 final Locale wantedApplicationLocale = Locale .ENGLISH ;
112112
113- if (systemDefaultLocale .getLanguage ().equals (wantedApplicationLocale .getLanguage ())){
114- LOG .debug ("Application Locale already is '{}'. Nothing to do." , wantedApplicationLocale );
113+ if (systemDefaultLocale .getLanguage ().equals (wantedApplicationLocale .getLanguage ())) {
114+ LOG .debug ("Application locale already is '{}'. Nothing to do." , wantedApplicationLocale );
115115 return ;
116116 }
117117
118- LOG .info ("Setting application Locale to '{}', was '{}'." , wantedApplicationLocale , systemDefaultLocale );
118+ LOG .info ("Setting application locale to '{}', was '{}'." , wantedApplicationLocale , systemDefaultLocale );
119119 Locale .setDefault (wantedApplicationLocale );
120120 Locale .setDefault (Locale .Category .DISPLAY , wantedApplicationLocale );
121121 // keep system locale for format conversions (date, currency, numbers)
@@ -137,12 +137,13 @@ public void start(final Stage primaryStage) {
137137 }
138138 }
139139
140- public static void showErrorDialogAndWait (String title , String header , String content , final Exception e , Window window ) {
140+ public static void showErrorDialogAndWait (String title , String header , String content , final Exception e ,
141+ Window window ) {
141142 final Alert alert = new Alert (AlertType .ERROR );
142143 alert .setTitle (title );
143144 alert .setHeaderText (header );
144145 alert .setContentText (content );
145- if (window != null ) {
146+ if (window != null ) {
146147 alert .initOwner (window );
147148 }
148149 final StringWriter sw = new StringWriter ();
0 commit comments