diff --git a/apps/i2psnark/java/bundle-messages.sh b/apps/i2psnark/java/bundle-messages.sh
index ad8c0ab84..01aa5b1c7 100755
--- a/apps/i2psnark/java/bundle-messages.sh
+++ b/apps/i2psnark/java/bundle-messages.sh
@@ -73,7 +73,7 @@ do
echo "Generating ${CLASS}_$LG ResourceBundle..."
# convert to class files in build/obj
- msgfmt --java -r $CLASS -l $LG -d build/obj $i
+ msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
if [ $? -ne 0 ]
then
echo 'Warning - msgfmt failed, not updating translations'
diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
index 305a9eb06..c3341229f 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
@@ -518,7 +518,7 @@ public class I2PSnarkServlet extends HttpServlet {
curPeers + '/' + knownPeers +
" " + _("peers") + ")";
else if (isRunning)
- statusString = _("Seeding") + " (" + curPeers + "/" + knownPeers + ' ' + ("peers") + ')';
+ statusString = _("Seeding") + " (" + curPeers + "/" + knownPeers + ' ' + _("peers") + ')';
else
statusString = _("Complete");
} else {
@@ -695,9 +695,9 @@ public class I2PSnarkServlet extends HttpServlet {
} else {
out.write("");
out.write(formatSize(peer.getDownloadRate()) + "ps");
}
@@ -711,9 +711,9 @@ public class I2PSnarkServlet extends HttpServlet {
} else {
out.write("");
out.write(formatSize(peer.getUploadRate()) + "ps");
}
diff --git a/apps/routerconsole/java/bundle-messages.sh b/apps/routerconsole/java/bundle-messages.sh
index 33db27572..ddc6785a0 100755
--- a/apps/routerconsole/java/bundle-messages.sh
+++ b/apps/routerconsole/java/bundle-messages.sh
@@ -104,7 +104,7 @@ do
echo "Generating ${CLASS}_$LG ResourceBundle..."
# convert to class files in build/obj
- msgfmt --java -r $CLASS -l $LG -d build/obj $i
+ msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
if [ $? -ne 0 ]
then
echo 'Warning - msgfmt failed, not updating translations'
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHandler.java
index 373a272f0..90f02596a 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHandler.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHandler.java
@@ -256,24 +256,26 @@ public class ConfigNetHandler extends FormHandler {
if (switchRequired) {
hiddenSwitch();
} else if (restartRequired) {
- // Wow this dumps all conns immediately and really isn't nice
- //addFormNotice("Performing a soft restart");
- //_context.router().restart();
- //addFormNotice("Soft restart complete");
+ if (System.getProperty("wrapper.version") == null) {
+ // Wow this dumps all conns immediately and really isn't nice
+ addFormNotice("Performing a soft restart");
+ _context.router().restart();
+ addFormNotice("Soft restart complete");
- // Most of the time we aren't changing addresses, just enabling or disabling
- // things, so let's try just a new routerInfo and see how that works.
- // Maybe we should restart if we change addresses though?
- // No, this doesn't work well, really need to call SSU Transport externalAddressReceived(),
- // but that's hard to get to, and doesn't handle port changes, etc.
- // So don't do this...
- //_context.router().rebuildRouterInfo();
- //addFormNotice("Router Info rebuilt");
-
- // There's a few changes that don't really require restart (e.g. enabling inbound TCP)
- // But it would be hard to get right, so just do a restart.
- addFormError(_("Gracefully restarting I2P to change published router address"));
- _context.router().shutdownGracefully(Router.EXIT_GRACEFUL_RESTART);
+ // Most of the time we aren't changing addresses, just enabling or disabling
+ // things, so let's try just a new routerInfo and see how that works.
+ // Maybe we should restart if we change addresses though?
+ // No, this doesn't work well, really need to call SSU Transport externalAddressReceived(),
+ // but that's hard to get to, and doesn't handle port changes, etc.
+ // So don't do this...
+ //_context.router().rebuildRouterInfo();
+ //addFormNotice("Router Info rebuilt");
+ } else {
+ // There's a few changes that don't really require restart (e.g. enabling inbound TCP)
+ // But it would be hard to get right, so just do a restart.
+ addFormError(_("Gracefully restarting I2P to change published router address"));
+ _context.router().shutdownGracefully(Router.EXIT_GRACEFUL_RESTART);
+ }
}
}
diff --git a/core/java/src/net/i2p/util/Translate.java b/core/java/src/net/i2p/util/Translate.java
index 75803968a..324b3a241 100644
--- a/core/java/src/net/i2p/util/Translate.java
+++ b/core/java/src/net/i2p/util/Translate.java
@@ -112,9 +112,8 @@ public abstract class Translate {
ResourceBundle rv = _bundles.get(key);
if (rv == null && !_missing.contains(key)) {
try {
- // Would it be faster to specify a class loader?
- // No matter we only do this once per lang.
- rv = ResourceBundle.getBundle(bun, new Locale(lang));
+ // We must specify the class loader so that a webapp can find the bundle in the .war
+ rv = ResourceBundle.getBundle(bun, new Locale(lang), Thread.currentThread().getContextClassLoader());
if (rv != null)
_bundles.put(key, rv);
} catch (MissingResourceException e) {
diff --git a/history.txt b/history.txt
index d324dcded..9d16e53d3 100644
--- a/history.txt
+++ b/history.txt
@@ -1,8 +1,15 @@
-2009-12-12 zzz
- * Disable InternalSockets until it's fixed
+2009-12-13 zzz
+ * Find ResourceBundles in wars
+ * Fix restart from config.jsp if no wrapper
+ * i2psnark: Elaborate popups
+
+2009-12-12 welterde
* Sort peers on tunnels.jsp by country
* fix NPE in ^^
+2009-12-12 zzz
+ * Disable InternalSockets until it's fixed
+
2009-12-11 zzz
* Addressbook, susidns: Rework addressbook into a
HttpServlet, so susidns can kick it when the subscription
diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java
index b54d1de4b..5a4225cae 100644
--- a/router/java/src/net/i2p/router/RouterVersion.java
+++ b/router/java/src/net/i2p/router/RouterVersion.java
@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
- public final static long BUILD = 5;
+ public final static long BUILD = 6;
/** for example "-test" */
public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;