aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2008-02-21 13:44:22 +0000
committerYana Stamcheva <yana@jitsi.org>2008-02-21 13:44:22 +0000
commitbaecaaf2daf7daa5f3b86d0ce9e3cbd6532e3da9 (patch)
treee740ff03a5a2ab74862db3f4d69f5a5af02816fb /src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
parentf1c43bbaf829609e8110cde00fd982b7de42e89d (diff)
downloadjitsi-baecaaf2daf7daa5f3b86d0ce9e3cbd6532e3da9.zip
jitsi-baecaaf2daf7daa5f3b86d0ce9e3cbd6532e3da9.tar.gz
jitsi-baecaaf2daf7daa5f3b86d0ce9e3cbd6532e3da9.tar.bz2
Remove i18n resources from:
- MSN account registration wizard - RSS account registration wizard - SIP account registration wizard - SSH account registration wizard - Yahoo account registration wizard - ZeroConf account registration wizard - Whiteboard plugin - Plugin Manager plugin
Diffstat (limited to 'src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java')
-rw-r--r--src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java35
1 files changed, 27 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
index a064d3d..ad709cb 100644
--- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
+++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
@@ -14,7 +14,8 @@ import net.java.sip.communicator.util.*;
/**
* The Resources class manages the access to the internationalization
- * properties files.
+ * properties files and the images properties file.
+ *
* @author Christian Vincenot
* @author Maxime Catelin
*/
@@ -23,11 +24,31 @@ public class Resources
private static Logger log = Logger.getLogger(Resources.class);
- private static final String BUNDLE_NAME
+ /**
+ * The name of the resource, where internationalization strings for this
+ * plugin are stored.
+ */
+ private static final String STRING_RESOURCE_NAME
+ = "resources.languages.plugin.zeroconfaccregwizz.resources";
+
+ /**
+ * The name of the resource, where paths to images used in this bundle are
+ * stored.
+ */
+ private static final String IMAGE_RESOURCE_NAME
= "net.java.sip.communicator.plugin.zeroconfaccregwizz.resources";
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
+ /**
+ * The string resource bundle.
+ */
+ private static final ResourceBundle STRING_RESOURCE_BUNDLE
+ = ResourceBundle.getBundle(STRING_RESOURCE_NAME);
+
+ /**
+ * The image resource bundle.
+ */
+ private static final ResourceBundle IMAGE_RESOURCE_BUNDLE
+ = ResourceBundle.getBundle(IMAGE_RESOURCE_NAME);
public static ImageID ZEROCONF_LOGO = new ImageID("protocolIcon");
@@ -42,8 +63,7 @@ public class Resources
{
try
{
- return RESOURCE_BUNDLE.getString(key);
-
+ return STRING_RESOURCE_BUNDLE.getString(key);
}
catch (MissingResourceException exc)
{
@@ -60,7 +80,7 @@ public class Resources
{
byte[] image = new byte[100000];
- String path = Resources.getString(imageID.getId());
+ String path = IMAGE_RESOURCE_BUNDLE.getString(imageID.getId());
try
{
Resources.class.getClassLoader()
@@ -96,5 +116,4 @@ public class Resources
return id;
}
}
-
}