|
Packit Bot |
06c835 |
#! /bin/sh
|
|
Packit Bot |
06c835 |
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Test 'bulk' mode of msgfmt --xml.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mf.appdata.xml
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
<component type="desktop">
|
|
Packit Bot |
06c835 |
<id>org.gnome.Characters.desktop</id>
|
|
Packit Bot |
06c835 |
<name>GNOME Characters</name>
|
|
Packit Bot |
06c835 |
<summary>Character map application</summary>
|
|
Packit Bot |
06c835 |
<licence>CC0</licence>
|
|
Packit Bot |
06c835 |
<description>
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Characters is a simple utility application to find and insert
|
|
Packit Bot |
06c835 |
unusual characters. It allows you to quickly find the character
|
|
Packit Bot |
06c835 |
you are looking for by searching for keywords.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
You can also browse characters by categories, such as
|
|
Packit Bot |
06c835 |
Punctuation, Pictures, etc.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
</description>
|
|
Packit Bot |
06c835 |
<url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>
|
|
Packit Bot |
06c835 |
<updatecontact>dueno_at_src.gnome.org</updatecontact>
|
|
Packit Bot |
06c835 |
</component>
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
test -d po || mkdir po
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > po/fr.po
|
|
Packit Bot |
06c835 |
# SOME DESCRIPTIVE TITLE.
|
|
Packit Bot |
06c835 |
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
Packit Bot |
06c835 |
# This file is distributed under the same license as the PACKAGE package.
|
|
Packit Bot |
06c835 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
Packit Bot |
06c835 |
#
|
|
Packit Bot |
06c835 |
#, fuzzy
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Project-Id-Version: PACKAGE VERSION\n"
|
|
Packit Bot |
06c835 |
"Report-Msgid-Bugs-To: \n"
|
|
Packit Bot |
06c835 |
"POT-Creation-Date: 2014-03-17 07:36+0900\n"
|
|
Packit Bot |
06c835 |
"PO-Revision-Date: 2014-03-17 08:40+0900\n"
|
|
Packit Bot |
06c835 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
Packit Bot |
06c835 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
Packit Bot |
06c835 |
"Language: \n"
|
|
Packit Bot |
06c835 |
"MIME-Version: 1.0\n"
|
|
Packit Bot |
06c835 |
"Content-Type: text/plain; charset=UTF-8\n"
|
|
Packit Bot |
06c835 |
"Content-Transfer-Encoding: 8bit\n"
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
"Characters is a simple utility application to find and insert unusual "
|
|
Packit Bot |
06c835 |
"characters. It allows you to quickly find the character you are looking for "
|
|
Packit Bot |
06c835 |
"by searching for keywords."
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Caractères est un utilitaire pour chercher et insérer des caractères "
|
|
Packit Bot |
06c835 |
"inhabituels. Il vous permet de trouver rapidement le caractère que vous "
|
|
Packit Bot |
06c835 |
"cherchez par le biais de mots-clés."
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
"You can also browse characters by categories, such as Punctuation, Pictures, "
|
|
Packit Bot |
06c835 |
"etc."
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Vous pouvez aussi naviguer dans les caractères par catégories, comme par "
|
|
Packit Bot |
06c835 |
"Ponctuation, Images, etc."
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > po/de.po
|
|
Packit Bot |
06c835 |
# SOME DESCRIPTIVE TITLE.
|
|
Packit Bot |
06c835 |
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
Packit Bot |
06c835 |
# This file is distributed under the same license as the PACKAGE package.
|
|
Packit Bot |
06c835 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
Packit Bot |
06c835 |
#
|
|
Packit Bot |
06c835 |
#, fuzzy
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Project-Id-Version: PACKAGE VERSION\n"
|
|
Packit Bot |
06c835 |
"Report-Msgid-Bugs-To: \n"
|
|
Packit Bot |
06c835 |
"POT-Creation-Date: 2014-03-17 07:36+0900\n"
|
|
Packit Bot |
06c835 |
"PO-Revision-Date: 2014-03-17 08:40+0900\n"
|
|
Packit Bot |
06c835 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
Packit Bot |
06c835 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
Packit Bot |
06c835 |
"Language: \n"
|
|
Packit Bot |
06c835 |
"MIME-Version: 1.0\n"
|
|
Packit Bot |
06c835 |
"Content-Type: text/plain; charset=UTF-8\n"
|
|
Packit Bot |
06c835 |
"Content-Transfer-Encoding: 8bit\n"
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
"Characters is a simple utility application to find and insert unusual "
|
|
Packit Bot |
06c835 |
"characters. It allows you to quickly find the character you are looking for by "
|
|
Packit Bot |
06c835 |
"searching for keywords."
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Zeichen ist ein einfaches Hilfsprogramm zum Auffinden und Einsetzen von selten "
|
|
Packit Bot |
06c835 |
"verwendeten Zeichen. Sie können schnell das gesuchte Zeichen finden, indem Sie "
|
|
Packit Bot |
06c835 |
"nach Schlüsselwörtern suchen."
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
msgid ""
|
|
Packit Bot |
06c835 |
"You can also browse characters by categories, such as Punctuation, Pictures, "
|
|
Packit Bot |
06c835 |
"etc."
|
|
Packit Bot |
06c835 |
msgstr ""
|
|
Packit Bot |
06c835 |
"Sie können ebenfalls nach Kategorie suchen, wie z.B. nach Zeichensetzung oder "
|
|
Packit Bot |
06c835 |
"Bildern."
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mf.appdata.xml.ok
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
<component type="desktop">
|
|
Packit Bot |
06c835 |
<id>org.gnome.Characters.desktop</id>
|
|
Packit Bot |
06c835 |
<name>GNOME Characters</name>
|
|
Packit Bot |
06c835 |
<summary>Character map application</summary>
|
|
Packit Bot |
06c835 |
<licence>CC0</licence>
|
|
Packit Bot |
06c835 |
<description>
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Characters is a simple utility application to find and insert
|
|
Packit Bot |
06c835 |
unusual characters. It allows you to quickly find the character
|
|
Packit Bot |
06c835 |
you are looking for by searching for keywords.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
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.
|
|
Packit Bot |
06c835 |
Zeichen ist ein einfaches Hilfsprogramm zum Auffinden und Einsetzen von selten verwendeten Zeichen. Sie können schnell das gesuchte Zeichen finden, indem Sie nach Schlüsselwörtern suchen.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
You can also browse characters by categories, such as
|
|
Packit Bot |
06c835 |
Punctuation, Pictures, etc.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Vous pouvez aussi naviguer dans les caractères par catégories, comme par Ponctuation, Images, etc.
|
|
Packit Bot |
06c835 |
Sie können ebenfalls nach Kategorie suchen, wie z.B. nach Zeichensetzung oder Bildern.
|
|
Packit Bot |
06c835 |
</description>
|
|
Packit Bot |
06c835 |
<url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>
|
|
Packit Bot |
06c835 |
<updatecontact>dueno_at_src.gnome.org</updatecontact>
|
|
Packit Bot |
06c835 |
</component>
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mf.appdata.xml.desired.ok
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
<component type="desktop">
|
|
Packit Bot |
06c835 |
<id>org.gnome.Characters.desktop</id>
|
|
Packit Bot |
06c835 |
<name>GNOME Characters</name>
|
|
Packit Bot |
06c835 |
<summary>Character map application</summary>
|
|
Packit Bot |
06c835 |
<licence>CC0</licence>
|
|
Packit Bot |
06c835 |
<description>
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Characters is a simple utility application to find and insert
|
|
Packit Bot |
06c835 |
unusual characters. It allows you to quickly find the character
|
|
Packit Bot |
06c835 |
you are looking for by searching for keywords.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
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.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
You can also browse characters by categories, such as
|
|
Packit Bot |
06c835 |
Punctuation, Pictures, etc.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Vous pouvez aussi naviguer dans les caractères par catégories, comme par Ponctuation, Images, etc.
|
|
Packit Bot |
06c835 |
</description>
|
|
Packit Bot |
06c835 |
<url type="homepage">https://wiki.gnome.org/Design/Apps/CharacterMap</url>
|
|
Packit Bot |
06c835 |
<updatecontact>dueno_at_src.gnome.org</updatecontact>
|
|
Packit Bot |
06c835 |
</component>
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
unset LINGUAS
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Sanity checks for contradicting options.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out \
|
|
Packit Bot |
06c835 |
>/dev/null 2>/dev/null \
|
|
Packit Bot |
06c835 |
exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
test -d po/LINGUAS || mkdir po/LINGUAS
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out \
|
|
Packit Bot |
06c835 |
>/dev/null 2>/dev/null \
|
|
Packit Bot |
06c835 |
exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
rm -fr po/LINGUAS
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > po/LINGUAS
|
|
Packit Bot |
06c835 |
de
|
|
Packit Bot |
06c835 |
fr
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMT} --xml --template=mf.appdata.xml -d po \
|
|
Packit Bot |
06c835 |
>/dev/null 2>/dev/null \
|
|
Packit Bot |
06c835 |
&& exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMG} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out -l fr \
|
|
Packit Bot |
06c835 |
>/dev/null 2>/dev/null \
|
|
Packit Bot |
06c835 |
&& exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMG} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out po/fr.po \
|
|
Packit Bot |
06c835 |
>/dev/null 2>/dev/null \
|
|
Packit Bot |
06c835 |
&& exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Proceed to the .desktop file generation.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out || exit 1
|
|
Packit Bot |
06c835 |
: ${DIFF=diff}
|
|
Packit Bot |
06c835 |
${DIFF} mf.appdata.xml.ok mf.appdata.xml.out
|
|
Packit Bot |
06c835 |
test $? = 0 || exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Restrict the desired languages with the LINGUAS envvar.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
LINGUAS="fr ja" ${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.desired.out || exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
: ${DIFF=diff}
|
|
Packit Bot |
06c835 |
${DIFF} mf.appdata.xml.desired.ok mf.appdata.xml.desired.out
|
|
Packit Bot |
06c835 |
test $? = 0 || exit 1
|