2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --translated option with Java .properties syntax.
6 cat <<\EOF > ma-s-1.properties
9 !=Project-Id-Version\: Bonnie Tyler\n
13 !The\ world\ is\ full\ of\ married\ men=So viele verheiratete M\u00e4nner
16 with\ wives\ who\ never\ understand=und ihre Frauen verstehen sie nicht
19 !They're\ looking\ for\ someone\ to\ share=
21 # schwer zu \u00fcbersetzen...
23 !the\ excitement\ of\ a\ love\ affair=
26 !Just\ as\ soon\ as\ they\ find\ you=
29 !They\ warn\ you\ and\ darn\ you=
32 : ${MSGATTRIB=msgattrib}
33 ${MSGATTRIB} --translated --properties-input --properties-output -o ma-s-1.tmp ma-s-1.properties || exit 1
34 LC_ALL=C tr -d '\r' < ma-s-1.tmp > ma-s-1.out || exit 1
36 cat <<\EOF > ma-s-1.ok
39 !=Project-Id-Version\: Bonnie Tyler\n
43 !The\ world\ is\ full\ of\ married\ men=So viele verheiratete M\u00e4nner
46 with\ wives\ who\ never\ understand=und ihre Frauen verstehen sie nicht
50 ${DIFF} ma-s-1.ok ma-s-1.out