Presenting SimplyHTML in multiple languages

By using class ResourceBundle for all string constants in SimplyHTML the source code does not contain string constants except for internal ones not appearing on the GUI.

In the place of the former string constants in the source code a call to method getResourceString() is put. The actual strings are centrally stored in and retrieved from a resource file instead.

By providing resource files for any language, the application shall be presented in, the application can be switched to those languages simply by switching to the particular resource file.

How a language is picked

In Java class Locale is used to represent a specific geographical, political, or cultural region. The Locale of the system an application is running on can be determined by Locale.getDefault() .

Class FrmMain has a public and static field resources referencing the ResourceBundle from which all string constants shall be taken. The ResourceBundle is initialized to the Locale the System is running on. If a resource file for the Locale can not be found, the default candidate is taken, which would be SimplyHTML.properties.

If for instance SimplyHTML is running on a German system and a resource file ending with the appropriate language ("_de") is distributed with the application, this resource file will be taken. If SimplyHTML_de.properties can not be found, SimplyHTML.properties will be taken as the resource file instead.