2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
6 cat <<\EOF > xg-lu-2.lua
7 -- This comment won't be extracted.
11 -- TRANSLATORS: Hello translators, how are you today?
12 print(_"We're fine, thanks.")
13 --[[ Do not extract this, please ]]
18 print(--[=[ TRANSLATORS: This is a comment for you!]=] _(--[[TRANSLATORS: Nobody else is supposed to read this!]]
19 "flowers" --[===[ TRANSLATORS: Nobody will see this.]===] .. --[[ TRANSLATORS: How sad.]] " and " .. --[[Secret text!]]
20 "biscuits" --[=[TRANSLATORS: Hey you!]=]))
22 --[==[TRANSLATORS: :-]]==]
26 : ${XGETTEXT=xgettext}
27 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
28 -d xg-lu-2.tmp xg-lu-2.lua || exit 1
29 LC_ALL=C tr -d '\r' < xg-lu-2.tmp.po > xg-lu-2.po || exit 1
31 cat <<EOF > xg-lu-2.ok
38 #. TRANSLATORS: Hello translators, how are you today?
39 msgid "We're fine, thanks."
45 #. TRANSLATORS: This is a comment for you!
46 #. TRANSLATORS: Nobody else is supposed to read this!
47 msgid "flowers and biscuits"
56 ${DIFF} xg-lu-2.ok xg-lu-2.po