10 package com.generalrobotix.ui.util;
12 import java.util.Locale;
13 import java.util.ResourceBundle;
22 ResourceBundle.getBundle(
"com.generalrobotix.messages", Locale.US);
26 messages_ = ResourceBundle.getBundle(
"com.generalrobotix.messages", locale);
34 ResourceBundle.getBundle(
"com.generalrobotix.messages", locale);
38 public static final void setLocale(String language, String country) {
43 ResourceBundle.getBundle(
44 "com.generalrobotix.messages",
45 new Locale(language, country)
50 public static final String
get(String key) {
55 return messages_.getString(key);
59 return ResourceBundle.getBundle(
"com.generalrobotix.messages", Locale.US).getString(key);
MessageBundle(Locale locale)
#define null
our own NULL pointer
static ResourceBundle messages_
static final void setLocale(Locale locale)
static void println(String s)
static MessageBundle this_
static final void setLocale(String language, String country)
static final ResourceBundle getMessages()