Aloha guy's,
can you explain the file for what this can be good?? in project explorer -> Gradle: org.controlsfx:controlsfx:8.40.12 -> Resource Bundel 'controlsfx' -> here the different file in different language. Can i with this translate my Programm content englisch,Germany,Polish and can i make it editable
2.if the first one was a stupid idee how i can translate it? my idee is make translate properties lake this english.properties, germany.properties, polish.properties save in resources with loade with this
stateManager.setPersistenceMode(StateManager.PersistenceMode.USER);
try { input = new FileInputStream( stateManager.getProperty("Languge").orElse("").toString().trim()+".properties");// load a properties file prop.load(input);
// get the property value and print it out System.out.println(prop.getProperty("database")); System.out.println(prop.getProperty("dbuser")); System.out.println(prop.getProperty("dbpassword")); } catch (IOException ex) { ex.printStackTrace(); } finally { if (input != null) { try { input.close(); } catch (IOException e) { e.printStackTrace(); } } }