Home | History | Annotate | Line # | Download | only in tests
      1 #! /bin/sh
      2 
      3 # Test merging of a ref.pot in UTF-8 encoding against a def.po in legacy
      4 # encoding (that was produced from an older version of ref.pot, in ASCII
      5 # encoding).
      6 
      7 tmpfiles=""
      8 trap 'rm -fr $tmpfiles' 1 2 3 15
      9 
     10 tmpfiles="$tmpfiles mm-test14-ru.po"
     11 cat <<\EOF > mm-test14-ru.po
     12 # Russian messages for CLISP
     13 # Copyright (C) 1998 Free Software Foundation, Inc.
     14 # Eduard Haritonov <hed (at] iis.nsk.su>, 1998.
     15 # Arseny Slobodjuck <ampy (at] ich.dvo.ru>, 2002.
     16 #
     17 msgid ""
     18 msgstr ""
     19 "Project-Id-Version: GNU elvis 1.7\n"
     20 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
     21 "PO-Revision-Date: 2002-11-01 01:23+0100\n"
     22 "Last-Translator: Arseny Slobodjuck <ampy (at] ich.dvo.ru>\n"
     23 "Language-Team: Russian <ru (at] li.org>\n"
     24 "MIME-Version: 1.0\n"
     25 "Content-Type: text/plain; charset=koi8-r\n"
     26 "Content-Transfer-Encoding: 8bit\n"
     27 
     28 #: arith.c:9
     29 msgid "Division durch Null"
     30 msgstr "  "
     31 EOF
     32 
     33 tmpfiles="$tmpfiles mm-test14.pot"
     34 cat <<\EOF > mm-test14.pot
     35 # SOME DESCRIPTIVE TITLE.
     36 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     37 # This file is distributed under the same license as the PACKAGE package.
     38 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     39 #
     40 #, fuzzy
     41 msgid ""
     42 msgstr ""
     43 "Project-Id-Version: PACKAGE VERSION\n"
     44 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
     45 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     46 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     47 "Language-Team: LANGUAGE <LL (at] li.org>\n"
     48 "MIME-Version: 1.0\n"
     49 "Content-Type: text/plain; charset=UTF-8\n"
     50 "Content-Transfer-Encoding: 8bit\n"
     51 
     52 #: arith.c:10
     53 msgid "Division durch Null"
     54 msgstr ""
     55 
     56 #: arith.c:15
     57 msgid "berlauf"
     58 msgstr ""
     59 EOF
     60 
     61 tmpfiles="$tmpfiles mm-test14.out"
     62 : ${MSGMERGE=msgmerge}
     63 ${MSGMERGE} -q -o mm-test14.out mm-test14-ru.po mm-test14.pot
     64 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     65 
     66 tmpfiles="$tmpfiles mm-test14.ok"
     67 cat <<\EOF > mm-test14.ok
     68 # Russian messages for CLISP
     69 # Copyright (C) 1998 Free Software Foundation, Inc.
     70 # Eduard Haritonov <hed (at] iis.nsk.su>, 1998.
     71 # Arseny Slobodjuck <ampy (at] ich.dvo.ru>, 2002.
     72 #
     73 msgid ""
     74 msgstr ""
     75 "Project-Id-Version: GNU elvis 1.7\n"
     76 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
     77 "PO-Revision-Date: 2002-11-01 01:23+0100\n"
     78 "Last-Translator: Arseny Slobodjuck <ampy (at] ich.dvo.ru>\n"
     79 "Language-Team: Russian <ru (at] li.org>\n"
     80 "MIME-Version: 1.0\n"
     81 "Content-Type: text/plain; charset=UTF-8\n"
     82 "Content-Transfer-Encoding: 8bit\n"
     83 
     84 #: arith.c:10
     85 msgid "Division durch Null"
     86 msgstr "  "
     87 
     88 #: arith.c:15
     89 msgid "berlauf"
     90 msgstr ""
     91 EOF
     92 
     93 : ${DIFF=diff}
     94 ${DIFF} mm-test14.ok mm-test14.out
     95 result=$?
     96 
     97 rm -fr $tmpfiles
     98 
     99 exit $result
    100