diff --git a/apps/routerconsole/java/bundle-messages.sh b/apps/routerconsole/java/bundle-messages.sh
index dd3ea832241abeab0f3a6bd7f640a32cfaed83b4..bdb52c07c1610719cfa1671c3fd91d92e2463f1f 100755
--- a/apps/routerconsole/java/bundle-messages.sh
+++ b/apps/routerconsole/java/bundle-messages.sh
@@ -38,7 +38,7 @@ then
 	mkdir -p build
         echo '// Automatically generated pseudo-java for xgettext - do not edit' > $JFILE
 	echo '// Translators may wish to translate a few of these, do not bother to translate all of them!!' >> $JFILE
-	sed 's/..,\(..*\)/_("\1");/' $CFILE >> $JFILE
+	sed -e '/#/d' -e 's/..,\(..*\)/_("\1");/' $CFILE >> $JFILE
 fi
 
 # list specific files in core/ and router/ here, so we don't scan the whole tree