3 # Test --translated option with Java .properties syntax.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles ma-s-1.properties"
9 cat <<\EOF
> ma-s-1.properties
12 !=Project-Id-Version\
: Bonnie Tyler
\n
16 !The\ world\ is\ full\ of\ married\ men
=So viele verheiratete M
\u00e4nner
19 with\ wives\ who\ never\ understand
=und ihre Frauen verstehen sie nicht
22 !They
're\ looking\ for\ someone\ to\ share=
24 # schwer zu \u00fcbersetzen...
26 !the\ excitement\ of\ a\ love\ affair=
29 !Just\ as\ soon\ as\ they\ find\ you=
32 !They\ warn\ you\ and\ darn\ you=
35 tmpfiles="$tmpfiles ma-s-1.out"
36 : ${MSGATTRIB=msgattrib}
37 ${MSGATTRIB} --translated --properties-input --properties-output ma-s-1.properties -o ma-s-1.out
38 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
40 tmpfiles="$tmpfiles ma-s-1.ok"
41 cat <<\EOF > ma-s-1.ok
44 !=Project-Id-Version\: Bonnie Tyler\n
48 !The\ world\ is\ full\ of\ married\ men=So viele verheiratete M\u00e4nner
51 with\ wives\ who\ never\ understand=und ihre Frauen verstehen sie nicht
55 ${DIFF} ma-s-1.ok ma-s-1.out