Top "Resourcebundle" questions

Resource bundles contain locale-specific objects.

How to use UTF-8 in resource properties with ResourceBundle

I need to use UTF-8 in my resource properties using Java's ResourceBundle. When I enter the text directly into the …

java google-app-engine utf-8 internationalization resourcebundle
How to load a resource bundle from a file resource in Java?

I have a file called mybundle.txt in c:/temp - c:/temp/mybundle.txt How do I load this …

java resourcebundle
java.util.MissingResourceException: Can't find bundle for base name 'property_file name', locale en_US

I am trying to create a utility class ReadPropertyUtil.java for reading data from property file. While my class is …

java properties resourcebundle
Format a message using MessageFormat.format() in Java

I have stored some messages in a resource bundle. I'm trying to format these messages as follows. import java.text.…

java resourcebundle
Resource files not found from JUnit test cases

Summary My JUnit tests are not finding the files they require during execution. I'm using Maven for dependency management and …

java unit-testing maven junit resourcebundle
ResourceBundle not found for MessageSource when placed inside a folder

I am trying to use resource bundles with Spring's Message Source. Here is the way I am doing it: @Component …

spring spring-mvc resources resourcebundle
How do I specify values in a properties file so they can be retrieved using ResourceBundle#getStringArray?

I am trying to use ResourceBundle#getStringArray to retrieve a String[] from a properties file. The description of this method …

java resourcebundle
java.util.MissingResourceException: Can't find bundle for base name

I'm testing Java's i18n features and have a problem, I can't load the language file when it's not in …

java internationalization resourcebundle
java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en

My faces-config.xml likes below. <?xml version="1.0" encoding="UTF-8"?> <faces-config xmlns="http://java.sun.com/xml/ns/…

jsf-2 resourcebundle faces-config
Getting localized message from resourceBundle via annotations in Spring Framework

Is it possible to do this ? Currently it is done like this : <bean id="resource" class="org.springframework.context.…

java spring localization annotations resourcebundle