1 /*
2 * Copyright 2006 the GLXDesktop Project Team, all rights reserved.
3 *
4 * This file is part of GLXDesktop Project.
5 * GLXDesktop Project is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License.
8 * 3ddesktop-configurator is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with GLXDesktop Project; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15 */
16 package net.sf.glxdesktop.gui;
17
18 import java.util.MissingResourceException;
19 import java.util.ResourceBundle;
20
21 public class Messages {
22 private static final String BUNDLE_NAME = "net.sf.glxdesktop.gui.messages"; //$NON-NLS-1$
23
24 public static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
25 .getBundle(BUNDLE_NAME);
26
27 private Messages() {
28 }
29
30 public static String getString(String key) {
31 // TODO Auto-generated method stub
32 try {
33 return RESOURCE_BUNDLE.getString(key);
34 } catch (MissingResourceException e) {
35 return '!' + key + '!';
36 }
37 }
38 }