An international string backed by a {@linkplain ResourceBundle resource bundle}. A resource bundle can be a Java class or a {@linkplain java.util.Properties properties} file, one foreach language. The constructor expects the fully qualified class name of the base resource bundle (the one used when no resource was found in the client's language). The right resource bundle is loaded at runtime for the client's language by looking for a class or a {@linkplain java.util.Properties properties} file with the right suffix ("{@code _en}" for English or " {@code _fr}" for French). This mechanism is explained in J2SE's javadoc for the {@link ResourceBundle#getBundle(String,Locale,ClassLoader) getBundle} static method.
Example: If a file named " {@code MyResources.properties}" exists in the package " {@code org.geotools.mypackage}" and contains a line like " {@code MyKey = some value}", then an international string for " {@code some value}" can be created using the following code:
InternationalString value = new ResourceInternationalString( "org.geotools.mypackage.MyResources", "MyKey");
The " {@code some value}" string will be localized if the required properties files exist, for example " {@code MyResources_fr.properties}" for French, " {@code MyResources_it.properties}" for Italian,
etc.
@since 2.1
@source $URL$
@version $Id$
@author Martin Desruisseaux (IRD)