Encoding is set back to ISO-8859-1, because using Readers for PropertyResourceBundle is supported only in Java 1.6.

Pretty Unicode characters don't look correctly on Windows in UI components.

git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@110 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
angryziber 2007-01-04 13:39:03 +00:00
parent 10b2b7f425
commit cf208721fc
3 changed files with 6 additions and 5 deletions

View File

@ -90,7 +90,7 @@ text.gettingStarted2=Main terminology:\n\nFeeder - generator of IP addresses for
button.OK=OK
button.cancel=Cancel
button.close=Close
button.next=Next
button.next=Next ->
button.start=Start
button.start.img=images/buttons/start.png
button.stop=Stop
@ -105,8 +105,8 @@ button.delete=De&lete
button.save=&Save
button.insert=&Insert
button.add=&Add
button.left=
button.right=
button.left=<<
button.right=>>
combobox.feeder.tooltip=IP Feeder selection. Change this if you need another source for IP addresses to scan
list.unknown.img=images/list/unknown.png
list.dead.img=images/list/dead.png

View File

@ -71,6 +71,7 @@ public class ComponentRegistry {
container.registerComponentInstance(Config.getDimensionsConfig());
container.registerComponentInstance(Config.getOpenersConfig());
container.registerComponentInstance(Config.getFavoritesConfig());
container.registerComponentInstance(Labels.getInstance());
container.registerComponentImplementation(ExporterRegistry.class);
container.registerComponentImplementation(TXTExporter.class);

View File

@ -5,7 +5,6 @@ package net.azib.ipscan.config;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.PropertyResourceBundle;
@ -65,7 +64,8 @@ public final class Labels {
throw new MissingResourceException("Labels not found!", Labels.class.getName(), "Labels");
}
try {
instance.labels = new PropertyResourceBundle(new InputStreamReader(labelsStream, "UTF-8"));
// TODO: support UTF-8 here (unfortunately, stock PropertyResourceBundle supports Readers only starting with 1.6)
instance.labels = new PropertyResourceBundle(labelsStream);
}
catch (IOException e) {
throw new MissingResourceException(e.toString(), Labels.class.getName(), "Labels");