3 # Test handling of obsolete/untranslated messages with Java .properties syntax.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-p-1.in1 mm-p-1.in2"
14 not\ existing=but with translation
17 !not\ existing\ without\ translation=
20 still\ existing=translation
23 # trailing comments should be removed
26 cat <<EOF > mm-p-1.in2
31 still\ existing=here is normally no comment
37 # trailing comments should be removed, even here
40 tmpfiles
="$tmpfiles mm-p-1.out"
41 : ${MSGMERGE=msgmerge}
42 ${MSGMERGE} -q --properties-input --properties-output mm-p-1.in1 mm-p-1.in2
-o mm-p-1.out
43 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
45 tmpfiles
="$tmpfiles mm-p-1.ok"
46 cat << EOF > mm-p-1.ok
48 still\ existing=translation
55 ${DIFF} mm-p-1.ok mm-p-1.out