1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # Test --domain option. 4 1.1 christos 5 1.1 christos tmpfiles="" 6 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 7 1.1 christos 8 1.1 christos tmpfiles="$tmpfiles mg-test2.po" 9 1.1 christos cat <<\EOF > mg-test2.po 10 1.1 christos domain "de" 11 1.1 christos 12 1.1 christos # German translations for GNU gettext package. 13 1.1 christos # Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. 14 1.1 christos msgid "" 15 1.1 christos msgstr "" 16 1.1 christos "Project-Id-Version: GNU gettext 0.11-pre1\n" 17 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 18 1.1 christos "PO-Revision-Date: 2001-11-04 12:25+0100\n" 19 1.1 christos "Last-Translator: Karl Eichwalder <ke (at] suse.de>\n" 20 1.1 christos "Language-Team: German <de (at] li.org>\n" 21 1.1 christos "MIME-Version: 1.0\n" 22 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 23 1.1 christos "Content-Transfer-Encoding: 8bit\n" 24 1.1 christos "Plural-Forms: nplurals=2; plural=(n != 1);\n" 25 1.1 christos 26 1.1 christos #: getopt.c:691 27 1.1 christos #, c-format 28 1.1 christos msgid "%s: option `%s' is ambiguous\n" 29 1.1 christos msgstr "%s: Option %s ist mehrdeutig\n" 30 1.1 christos 31 1.1 christos #: getopt.c:716 32 1.1 christos #, c-format 33 1.1 christos msgid "%s: option `--%s' doesn't allow an argument\n" 34 1.1 christos msgstr "%s: Option --%s erwartet kein Argument\n" 35 1.1 christos 36 1.1 christos #: getopt.c:721 37 1.1 christos #, c-format 38 1.1 christos msgid "%s: option `%c%s' doesn't allow an argument\n" 39 1.1 christos msgstr "%s: Option %c%s erwartet kein Argument\n" 40 1.1 christos 41 1.1 christos #: getopt.c:739 getopt.c:912 42 1.1 christos #, c-format 43 1.1 christos msgid "%s: option `%s' requires an argument\n" 44 1.1 christos msgstr "%s: Option %s erwartet ein Argument\n" 45 1.1 christos 46 1.1 christos #: getopt.c:768 47 1.1 christos #, c-format 48 1.1 christos msgid "%s: unrecognized option `--%s'\n" 49 1.1 christos msgstr "%s: unbekannte Option --%s\n" 50 1.1 christos 51 1.1 christos #: getopt.c:772 52 1.1 christos #, c-format 53 1.1 christos msgid "%s: unrecognized option `%c%s'\n" 54 1.1 christos msgstr "%s: unbekannte Option %c%s\n" 55 1.1 christos 56 1.1 christos #: getopt.c:798 57 1.1 christos #, c-format 58 1.1 christos msgid "%s: illegal option -- %c\n" 59 1.1 christos msgstr "%s: unzulssige Option -- %c\n" 60 1.1 christos 61 1.1 christos #: getopt.c:801 62 1.1 christos #, c-format 63 1.1 christos msgid "%s: invalid option -- %c\n" 64 1.1 christos msgstr "%s: ungltige Option -- %c\n" 65 1.1 christos 66 1.1 christos #: getopt.c:831 getopt.c:961 67 1.1 christos #, c-format 68 1.1 christos msgid "%s: option requires an argument -- %c\n" 69 1.1 christos msgstr "%s: Option erwartet ein Argument -- %c\n" 70 1.1 christos 71 1.1 christos #: getopt.c:878 72 1.1 christos #, c-format 73 1.1 christos msgid "%s: option `-W %s' is ambiguous\n" 74 1.1 christos msgstr "%s: Option -W %s ist mehrdeutig\n" 75 1.1 christos 76 1.1 christos #: getopt.c:896 77 1.1 christos #, c-format 78 1.1 christos msgid "%s: option `-W %s' doesn't allow an argument\n" 79 1.1 christos msgstr "%s: Option -W %s erwartet kein Argument\n" 80 1.1 christos 81 1.1 christos domain "fr" 82 1.1 christos 83 1.1 christos # Messages franais pour GNU gettext. 84 1.1 christos # Copyright 1996, 1997, 1998 Free Software Foundation, Inc. 85 1.1 christos # Franois Pinard <pinard (at] iro.umontreal.ca>, 1996. 86 1.1 christos # 87 1.1 christos msgid "" 88 1.1 christos msgstr "" 89 1.1 christos "Project-Id-Version: GNU gettext 0.10.35\n" 90 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 91 1.1 christos "PO-Revision-Date: 1998-05-04 10:03-04:00\n" 92 1.1 christos "Last-Translator: Franois Pinard <pinard (at] iro.umontreal.ca>\n" 93 1.1 christos "Language-Team: French <fr (at] li.org>\n" 94 1.1 christos "MIME-Version: 1.0\n" 95 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 96 1.1 christos "Content-Transfer-Encoding: 8bit\n" 97 1.1 christos "Plural-Forms: nplurals=2; plural=(n > 1);\n" 98 1.1 christos 99 1.1 christos #: getopt.c:691 100 1.1 christos #, c-format 101 1.1 christos msgid "%s: option `%s' is ambiguous\n" 102 1.1 christos msgstr "%s: l'option %s est ambigu\n" 103 1.1 christos 104 1.1 christos #: getopt.c:716 105 1.1 christos #, c-format 106 1.1 christos msgid "%s: option `--%s' doesn't allow an argument\n" 107 1.1 christos msgstr "%s: l'option --%s ne tolre pas d'argument\n" 108 1.1 christos 109 1.1 christos #: getopt.c:721 110 1.1 christos #, c-format 111 1.1 christos msgid "%s: option `%c%s' doesn't allow an argument\n" 112 1.1 christos msgstr "%s: l'option %c%s ne tolre pas d'argument\n" 113 1.1 christos 114 1.1 christos #: getopt.c:739 getopt.c:912 115 1.1 christos #, c-format 116 1.1 christos msgid "%s: option `%s' requires an argument\n" 117 1.1 christos msgstr "%s: l'option %s exige un argument\n" 118 1.1 christos 119 1.1 christos #: getopt.c:768 120 1.1 christos #, c-format 121 1.1 christos msgid "%s: unrecognized option `--%s'\n" 122 1.1 christos msgstr "%s: l'option --%s n'est pas reconnue\n" 123 1.1 christos 124 1.1 christos #: getopt.c:772 125 1.1 christos #, c-format 126 1.1 christos msgid "%s: unrecognized option `%c%s'\n" 127 1.1 christos msgstr "%s: l'option %c%s n'est pas reconnue\n" 128 1.1 christos 129 1.1 christos #: getopt.c:798 130 1.1 christos #, c-format 131 1.1 christos msgid "%s: illegal option -- %c\n" 132 1.1 christos msgstr "%s: l'option %c n'est pas permise\n" 133 1.1 christos 134 1.1 christos #: getopt.c:801 135 1.1 christos #, c-format 136 1.1 christos msgid "%s: invalid option -- %c\n" 137 1.1 christos msgstr "%s: l'option %c n'est pas valide\n" 138 1.1 christos 139 1.1 christos #: getopt.c:831 getopt.c:961 140 1.1 christos #, c-format 141 1.1 christos msgid "%s: option requires an argument -- %c\n" 142 1.1 christos msgstr "%s: l'option %c exige un argument\n" 143 1.1 christos 144 1.1 christos #: getopt.c:878 145 1.1 christos #, c-format 146 1.1 christos msgid "%s: option `-W %s' is ambiguous\n" 147 1.1 christos msgstr "%s: l'option -W %s est ambigu\n" 148 1.1 christos 149 1.1 christos #: getopt.c:896 150 1.1 christos #, c-format 151 1.1 christos msgid "%s: option `-W %s' doesn't allow an argument\n" 152 1.1 christos msgstr "%s: l'option -W %s ne tolre pas d'argument\n" 153 1.1 christos EOF 154 1.1 christos 155 1.1 christos tmpfiles="$tmpfiles mg-test2.out" 156 1.1 christos : ${MSGGREP=msggrep} 157 1.1 christos ${MSGGREP} -M fr -o mg-test2.out mg-test2.po 158 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; } 159 1.1 christos 160 1.1 christos tmpfiles="$tmpfiles mg-test2.ok" 161 1.1 christos cat <<\EOF > mg-test2.ok 162 1.1 christos domain "de" 163 1.1 christos 164 1.1 christos # German translations for GNU gettext package. 165 1.1 christos # Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. 166 1.1 christos msgid "" 167 1.1 christos msgstr "" 168 1.1 christos "Project-Id-Version: GNU gettext 0.11-pre1\n" 169 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 170 1.1 christos "PO-Revision-Date: 2001-11-04 12:25+0100\n" 171 1.1 christos "Last-Translator: Karl Eichwalder <ke (at] suse.de>\n" 172 1.1 christos "Language-Team: German <de (at] li.org>\n" 173 1.1 christos "MIME-Version: 1.0\n" 174 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 175 1.1 christos "Content-Transfer-Encoding: 8bit\n" 176 1.1 christos "Plural-Forms: nplurals=2; plural=(n != 1);\n" 177 1.1 christos 178 1.1 christos domain "fr" 179 1.1 christos 180 1.1 christos # Messages franais pour GNU gettext. 181 1.1 christos # Copyright 1996, 1997, 1998 Free Software Foundation, Inc. 182 1.1 christos # Franois Pinard <pinard (at] iro.umontreal.ca>, 1996. 183 1.1 christos # 184 1.1 christos msgid "" 185 1.1 christos msgstr "" 186 1.1 christos "Project-Id-Version: GNU gettext 0.10.35\n" 187 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 188 1.1 christos "PO-Revision-Date: 1998-05-04 10:03-04:00\n" 189 1.1 christos "Last-Translator: Franois Pinard <pinard (at] iro.umontreal.ca>\n" 190 1.1 christos "Language-Team: French <fr (at] li.org>\n" 191 1.1 christos "MIME-Version: 1.0\n" 192 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 193 1.1 christos "Content-Transfer-Encoding: 8bit\n" 194 1.1 christos "Plural-Forms: nplurals=2; plural=(n > 1);\n" 195 1.1 christos 196 1.1 christos #: getopt.c:691 197 1.1 christos #, c-format 198 1.1 christos msgid "%s: option `%s' is ambiguous\n" 199 1.1 christos msgstr "%s: l'option %s est ambigu\n" 200 1.1 christos 201 1.1 christos #: getopt.c:716 202 1.1 christos #, c-format 203 1.1 christos msgid "%s: option `--%s' doesn't allow an argument\n" 204 1.1 christos msgstr "%s: l'option --%s ne tolre pas d'argument\n" 205 1.1 christos 206 1.1 christos #: getopt.c:721 207 1.1 christos #, c-format 208 1.1 christos msgid "%s: option `%c%s' doesn't allow an argument\n" 209 1.1 christos msgstr "%s: l'option %c%s ne tolre pas d'argument\n" 210 1.1 christos 211 1.1 christos #: getopt.c:739 getopt.c:912 212 1.1 christos #, c-format 213 1.1 christos msgid "%s: option `%s' requires an argument\n" 214 1.1 christos msgstr "%s: l'option %s exige un argument\n" 215 1.1 christos 216 1.1 christos #: getopt.c:768 217 1.1 christos #, c-format 218 1.1 christos msgid "%s: unrecognized option `--%s'\n" 219 1.1 christos msgstr "%s: l'option --%s n'est pas reconnue\n" 220 1.1 christos 221 1.1 christos #: getopt.c:772 222 1.1 christos #, c-format 223 1.1 christos msgid "%s: unrecognized option `%c%s'\n" 224 1.1 christos msgstr "%s: l'option %c%s n'est pas reconnue\n" 225 1.1 christos 226 1.1 christos #: getopt.c:798 227 1.1 christos #, c-format 228 1.1 christos msgid "%s: illegal option -- %c\n" 229 1.1 christos msgstr "%s: l'option %c n'est pas permise\n" 230 1.1 christos 231 1.1 christos #: getopt.c:801 232 1.1 christos #, c-format 233 1.1 christos msgid "%s: invalid option -- %c\n" 234 1.1 christos msgstr "%s: l'option %c n'est pas valide\n" 235 1.1 christos 236 1.1 christos #: getopt.c:831 getopt.c:961 237 1.1 christos #, c-format 238 1.1 christos msgid "%s: option requires an argument -- %c\n" 239 1.1 christos msgstr "%s: l'option %c exige un argument\n" 240 1.1 christos 241 1.1 christos #: getopt.c:878 242 1.1 christos #, c-format 243 1.1 christos msgid "%s: option `-W %s' is ambiguous\n" 244 1.1 christos msgstr "%s: l'option -W %s est ambigu\n" 245 1.1 christos 246 1.1 christos #: getopt.c:896 247 1.1 christos #, c-format 248 1.1 christos msgid "%s: option `-W %s' doesn't allow an argument\n" 249 1.1 christos msgstr "%s: l'option -W %s ne tolre pas d'argument\n" 250 1.1 christos EOF 251 1.1 christos 252 1.1 christos : ${DIFF=diff} 253 1.1 christos ${DIFF} mg-test2.ok mg-test2.out 254 1.1 christos result=$? 255 1.1 christos 256 1.1 christos rm -fr $tmpfiles 257 1.1 christos 258 1.1 christos exit $result 259