1 package be
.nikiroo
.jvcard
.resources
;
3 import java
.util
.Locale
;
4 import java
.util
.ResourceBundle
;
7 * This class help you get UTF-8 bundles for this application.
12 public class Bundles
{
14 * Return the non-localised bundle of the given name.
17 * the name of the bundle to load
21 static public ResourceBundle
getBundle(String name
) {
22 return ResourceBundle
.getBundle(Bundles
.class.getPackage().getName()
23 + "." + name
, new FixedResourceBundleControl());
27 * Return the localised bundle of the given name and {@link Locale}.
30 * the name of the bundle to load
32 * the {@link Locale} to use
34 * @return the localised bundle
36 static public ResourceBundle
getBundle(String name
, Locale locale
) {
38 return ResourceBundle
.getBundle(Bundles
.class.getPackage().getName()
39 + "." + name
, locale
, new FixedResourceBundleControl());