es.prodevelop.pui9.messages.AbstractPuiListResourceBundle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of es.prodevelop.pui9.utils Show documentation
Show all versions of es.prodevelop.pui9.utils Show documentation
Multiple utilities for PUI9 (Gson, CSV, Exceptions...)
The newest version!
package es.prodevelop.pui9.messages;
import java.util.ListResourceBundle;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
/**
* A abstract class to internationalize the messages of the application. It
* extends from {@link ListResourceBundle} that is a way to define this messages
* with Java classes. Using this approach, we ensure that the text is using
* UTF-8 encoding
*
* Each language should define its own Java file with its translations. The Java
* class name should end with the code of the language: _es, _en, _ca,
* _fr...
*
* Have a look at http://www.baeldung.com/java-resourcebundle
* to see the differences between using Java files and property files
*
* @author Marc Gil - [email protected]
*/
public abstract class AbstractPuiListResourceBundle extends ListResourceBundle {
@Override
protected final Object[][] getContents() {
Map