diff --git a/apps/desktopgui/bundle-messages.sh b/apps/desktopgui/bundle-messages.sh
index acd52a3533..29713209ea 100644
--- a/apps/desktopgui/bundle-messages.sh
+++ b/apps/desktopgui/bundle-messages.sh
@@ -95,15 +95,19 @@ do
touch $i
fi
- echo "Generating ${CLASS}_$LG ResourceBundle..."
+ if [ "$LG" != "en" ]
+ then
+ # only generate for non-source language
+ echo "Generating ${CLASS}_$LG ResourceBundle..."
- # convert to class files in build
- msgfmt --java --statistics -r $CLASS -l $LG -d build $i
- if [ $? -ne 0 ]
- then
- echo 'Warning - msgfmt failed, not updating translations'
- break
- fi
+ # convert to class files in build
+ msgfmt --java --statistics -r $CLASS -l $LG -d build $i
+ if [ $? -ne 0 ]
+ then
+ echo 'Warning - msgfmt failed, not updating translations'
+ break
+ fi
+ fi
done
rm -f $TMPFILE
# todo: return failure
diff --git a/apps/i2psnark/java/bundle-messages.sh b/apps/i2psnark/java/bundle-messages.sh
index d5d116ac31..2a6a82470c 100755
--- a/apps/i2psnark/java/bundle-messages.sh
+++ b/apps/i2psnark/java/bundle-messages.sh
@@ -86,15 +86,19 @@ do
touch $i
fi
- echo "Generating ${CLASS}_$LG ResourceBundle..."
+ if [ "$LG" != "en" ]
+ then
+ # only generate for non-source language
+ echo "Generating ${CLASS}_$LG ResourceBundle..."
- # convert to class files in build/obj
- msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
- if [ $? -ne 0 ]
- then
- echo 'Warning - msgfmt failed, not updating translations'
- break
- fi
+ # convert to class files in build/obj
+ msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
+ if [ $? -ne 0 ]
+ then
+ echo 'Warning - msgfmt failed, not updating translations'
+ break
+ fi
+ fi
done
rm -f $TMPFILE
# todo: return failure
diff --git a/apps/i2ptunnel/java/bundle-messages.sh b/apps/i2ptunnel/java/bundle-messages.sh
index 6b3f09dbd6..2ee9eba7b6 100755
--- a/apps/i2ptunnel/java/bundle-messages.sh
+++ b/apps/i2ptunnel/java/bundle-messages.sh
@@ -88,15 +88,19 @@ do
touch $i
fi
- echo "Generating ${CLASS}_$LG ResourceBundle..."
+ if [ "$LG" != "en" ]
+ then
+ # only generate for non-source language
+ echo "Generating ${CLASS}_$LG ResourceBundle..."
- # convert to class files in build/obj
- msgfmt --java --statistics -r $CLASS -l $LG -d ../jsp/WEB-INF/classes $i
- if [ $? -ne 0 ]
- then
- echo 'Warning - msgfmt failed, not updating translations'
- break
- fi
+ # convert to class files in build/obj
+ msgfmt --java --statistics -r $CLASS -l $LG -d ../jsp/WEB-INF/classes $i
+ if [ $? -ne 0 ]
+ then
+ echo 'Warning - msgfmt failed, not updating translations'
+ break
+ fi
+ fi
done
rm -f $TMPFILE
# todo: return failure
diff --git a/apps/routerconsole/java/bundle-messages.sh b/apps/routerconsole/java/bundle-messages.sh
index c7ceed5d50..7bc06577c6 100755
--- a/apps/routerconsole/java/bundle-messages.sh
+++ b/apps/routerconsole/java/bundle-messages.sh
@@ -122,15 +122,19 @@ do
touch $i
fi
- echo "Generating ${CLASS}_$LG ResourceBundle..."
+ if [ "$LG" != "en" ]
+ then
+ # only generate for non-source language
+ echo "Generating ${CLASS}_$LG ResourceBundle..."
- # convert to class files in build/obj
- msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
- if [ $? -ne 0 ]
- then
- echo 'Warning - msgfmt failed, not updating translations'
- break
- fi
+ # convert to class files in build/obj
+ msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
+ if [ $? -ne 0 ]
+ then
+ echo 'Warning - msgfmt failed, not updating translations'
+ break
+ fi
+ fi
done
rm -f $TMPFILE
# todo: return failure
diff --git a/apps/susidns/src/bundle-messages.sh b/apps/susidns/src/bundle-messages.sh
index 3d0aa9d379..1e6d7db19f 100755
--- a/apps/susidns/src/bundle-messages.sh
+++ b/apps/susidns/src/bundle-messages.sh
@@ -88,15 +88,19 @@ do
touch $i
fi
- echo "Generating ${CLASS}_$LG ResourceBundle..."
+ if [ "$LG" != "en" ]
+ then
+ # only generate for non-source language
+ echo "Generating ${CLASS}_$LG ResourceBundle..."
- # convert to class files in build/obj
- msgfmt --java --statistics -r $CLASS -l $LG -d WEB-INF/classes $i
- if [ $? -ne 0 ]
- then
- echo 'Warning - msgfmt failed, not updating translations'
- break
- fi
+ # convert to class files in build/obj
+ msgfmt --java --statistics -r $CLASS -l $LG -d WEB-INF/classes $i
+ if [ $? -ne 0 ]
+ then
+ echo 'Warning - msgfmt failed, not updating translations'
+ break
+ fi
+ fi
done
rm -f $TMPFILE
# todo: return failure
diff --git a/build.xml b/build.xml
index f2413e0901..d95ad37652 100644
--- a/build.xml
+++ b/build.xml
@@ -201,7 +201,7 @@
-
+