Commit a979d275 authored by GabMus's avatar GabMus

completed appdata file translation

parent 581fd158
......@@ -99,7 +99,6 @@ app_resources = gnome.compile_resources(app_id,
app_settings = gnome.compile_schemas()
appdata_conf = configuration_data()
appdata_conf.set('description', description)
appdata_conf.set('authorfullname', authorfullname)
appdata_conf.set('gitrepo', gitrepo)
appdata_conf.set('website', website)
......@@ -108,10 +107,16 @@ appdata_conf.set('prettyname', prettyname)
appdata_conf.set('appid', app_id)
appdata_conf.set('prettylicense', prettylicense)
configure_file(
appdata_file = configure_file(
input: app_id + '.appdata.xml.in',
output: app_id + '.appdata.xml.i18n.in',
configuration: appdata_conf
)
i18n.merge_file(
input: app_id + '.appdata.xml.in',
output: app_id + '.appdata.xml',
configuration: appdata_conf,
po_dir: '../po',
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
......@@ -4,12 +4,13 @@
<!-- <translation type="gettext">trg</translation> -->
<name>@prettyname@</name>
<developer_name>@authorfullname@</developer_name>
<summary>@description@</summary>
<summary>Wallpaper manager with multimonitor support</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>@prettylicense@</project_license>
<description>
<p>Hydrapaper lets you set different wallpapers for each of your monitors in the GNOME desktop.</p>
<p>It uses Pillow to create a single image merging all of your chosen wallpapers and setting it as your wallpaper with the "Spanned" option.</p>
<p>HydraPaper lets you set different wallpapers for each of your monitors in the GNOME desktop.</p>
<p>It works around this lack of functionality by automatically merging multiple wallpapers into one, and setting it as your wallpaper with the "Spanned" option.</p>
<p>HydraPaper also supports the MATE desktop, and should work on any desktop that is based on GNOME, like Budgie and Pantheon.</p>
</description>
<screenshots>
<screenshot type="default">
......
data/org.gabmus.hydrapaper.appdata.xml.in
data/org.gabmus.hydrapaper.desktop.in
data/ui/choose_folder_dialog.glade
data/ui/headerbar.glade
......
This diff is collapsed.
#!/bin/bash
rm *.pot
find ../hydrapaper -iname "*.py" | xargs xgettext --from-code=UTF-8 --output=hydrapaper-python.pot
find ../data/ui -iname "*.glade" -or -iname "*.xml" | xargs xgettext --from-code=UTF-8 --output=hydrapaper-glade.pot -L Glade
find ../data/ -iname "*.desktop.in" | xargs xgettext --from-code=UTF-8 --output=hydrapaper-desktop.pot -L Desktop
msgcat --use-first hydrapaper-python.pot hydrapaper-glade.pot hydrapaper-desktop.pot > hydrapaper.pot
version=$(fgrep "version: " ../meson.build | grep -v "meson" | grep -o "'.*'" | sed "s/'//g")
echo $version
find ../hydrapaper -iname "*.py" | xargs xgettext --package-name=HydraPaper --package-version=$version --from-code=UTF-8 --output=hydrapaper-python.pot
find ../data/ui -iname "*.glade" -or -iname "*.xml" | xargs xgettext --package-name=HydraPaper --package-version=$version --from-code=UTF-8 --output=hydrapaper-glade.pot -L Glade
find ../data/ -iname "*.desktop.in" | xargs xgettext --package-name=HydraPaper --package-version=$version --from-code=UTF-8 --output=hydrapaper-desktop.pot -L Desktop
find ../data/ -iname "*.appdata.xml.in" | xargs xgettext --no-wrap --package-name=HydraPaper --package-version=$version --from-code=UTF-8 --output=hydrapaper-appdata.pot
msgcat --use-first hydrapaper-python.pot hydrapaper-glade.pot hydrapaper-desktop.pot hydrapaper-appdata.pot > hydrapaper.pot
sed 's/#: //g;s/:[0-9]*//g;s/\.\.\///g' <(fgrep "#: " hydrapaper.pot) | sort | uniq > POTFILES.in
echo "# Please keep this list alphabetically sorted" > LINGUAS
for l in $(ls *.po); do basename $l .po >> LINGUAS; done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment