summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lconvert/data/makeplurals.sh
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-10 16:05:30 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-10 16:06:16 (GMT)
commit593f8a322895dc011d88fbe112987f2189d43724 (patch)
tree249b1821573d16926101d20ca23200ea15c7f223 /tests/auto/linguist/lconvert/data/makeplurals.sh
parent5425853ec6a9f29af3378c982f12a0cca4bcb0e0 (diff)
downloadQt-593f8a322895dc011d88fbe112987f2189d43724.zip
Qt-593f8a322895dc011d88fbe112987f2189d43724.tar.gz
Qt-593f8a322895dc011d88fbe112987f2189d43724.tar.bz2
rewrite makeplurals.sh in perl
... so it works under windows as well.
Diffstat (limited to 'tests/auto/linguist/lconvert/data/makeplurals.sh')
-rwxr-xr-xtests/auto/linguist/lconvert/data/makeplurals.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/auto/linguist/lconvert/data/makeplurals.sh b/tests/auto/linguist/lconvert/data/makeplurals.sh
deleted file mode 100755
index 2e0f375..0000000
--- a/tests/auto/linguist/lconvert/data/makeplurals.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/bash
-
-function makeit2()
-{
- for ((i = 0; i < (1 << $1); i++)); do
- echo
- test -n "$3" && echo "$3"
- echo "msgid \"singular $2 $i\""
- echo "msgid_plural \"plural $2 $i\""
- for ((j = 0; j < $1; j++)); do
- tr=
- if test $((i & (1 << j))) = 0; then
- tr="translated $2 $i $j"
- fi
- echo "msgstr[$j] \"$tr\""
- done
- done
-}
-
-function makeit()
-{
- {
- cat <<EOF
-msgid ""
-msgstr ""
-"X-FooBar: yup\n"
-"X-Language: $2\n"
-EOF
- makeit2 $1 one ""
- makeit2 $1 two "#, fuzzy
-#| msgid \"old untranslated one\""
- makeit2 $1 three "#, fuzzy
-#| msgid \"old untranslated two\"
-#| msgid_plural \"old untranslated plural two\""
- makeit2 $1 four "#, fuzzy
-#| msgid_plural \"old untranslated only plural three\""
- } > ${OUTDIR}plural-$1.po
-}
-
-OUTDIR=$1
-makeit 1 zh_CN
-makeit 2 de_DE
-makeit 3 pl_PL