2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test iterative mode of msgfmt --xml.
6 cat <<\EOF > mf.appdata.xml
7 <?xml version="1.0" encoding="UTF-8"?>
8 <component type="desktop">
9 <id>org.gnome.Characters.desktop</id>
10 <name>GNOME Characters</name>
11 <summary>Character map application</summary>
12 <licence>CC0</licence>
15 Characters is a simple utility application to find and insert
16 unusual characters. It allows you to quickly find the character
17 you are looking for by searching for keywords.
20 You can also browse characters by categories, such as
21 Punctuation, Pictures, etc.
24 <url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>
25 <updatecontact>dueno_at_src.gnome.org</updatecontact>
30 # SOME DESCRIPTIVE TITLE.
31 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
32 # This file is distributed under the same license as the PACKAGE package.
33 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
38 "Project-Id-Version: PACKAGE VERSION\n"
39 "Report-Msgid-Bugs-To: \n"
40 "POT-Creation-Date: 2014-03-17 07:36+0900\n"
41 "PO-Revision-Date: 2014-03-17 08:40+0900\n"
42 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
43 "Language-Team: LANGUAGE <LL@li.org>\n"
46 "Content-Type: text/plain; charset=UTF-8\n"
47 "Content-Transfer-Encoding: 8bit\n"
50 "Characters is a simple utility application to find and insert unusual "
51 "characters. It allows you to quickly find the character you are looking for "
52 "by searching for keywords."
54 "Caractères est un utilitaire pour chercher et insérer des caractères "
55 "inhabituels. Il vous permet de trouver rapidement le caractère que vous "
56 "cherchez par le biais de mots-clés."
59 "You can also browse characters by categories, such as Punctuation, Pictures, "
62 "Vous pouvez aussi naviguer dans les caractères par catégories, comme par "
63 "Ponctuation, Images, etc."
66 cat <<\EOF > mf.appdata.xml.ok
67 <?xml version="1.0" encoding="UTF-8"?>
68 <component type="desktop">
69 <id>org.gnome.Characters.desktop</id>
70 <name>GNOME Characters</name>
71 <summary>Character map application</summary>
72 <licence>CC0</licence>
75 Characters is a simple utility application to find and insert
76 unusual characters. It allows you to quickly find the character
77 you are looking for by searching for keywords.
79 <p xml:lang="fr">Caractères est un utilitaire pour chercher et insérer des caractères inhabituels. Il vous permet de trouver rapidement le caractère que vous cherchez par le biais de mots-clés.</p>
81 You can also browse characters by categories, such as
82 Punctuation, Pictures, etc.
84 <p xml:lang="fr">Vous pouvez aussi naviguer dans les caractères par catégories, comme par Ponctuation, Images, etc.</p>
86 <url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>
87 <updatecontact>dueno_at_src.gnome.org</updatecontact>
91 # Sanity checks for contradicting options.
93 ${MSGFMT} --xml --template=mf.appdata.xml -l fr fr.po \
94 >/dev/null 2>/dev/null \
97 ${MSGFMG} --xml --template=mf.appdata.xml fr.po -o mf.appdata.xml.out \
98 >/dev/null 2>/dev/null \
101 # Proceed to the XML file generation.
103 ${MSGFMT} --xml --template=mf.appdata.xml -l fr fr.po -o mf.appdata.xml.out \
107 ${DIFF} mf.appdata.xml.ok mf.appdata.xml.out
109 test $result = 0 || exit $result
112 cp mf.appdata.xml mf.xml
113 ${MSGFMT} --xml --template=mf.xml -L AppData -l fr fr.po -o mf.appdata.xml.out \
115 ${DIFF} mf.appdata.xml.ok mf.appdata.xml.out
117 test $result = 0 || exit $result