public void translate ( String language ) { switch ( language ) { case "EN" : rootPane . rbs . changeLocale ( rootPane . rbEN ) ; break ; case "DE" : rootPane . rbs . changeLocale ( rootPane . rbDE ) ; break ; default : throw new IllegalArgumentException ( "Not a valid locale" ) ; } }
Sets the locale of the form .