Commit fa3bdedd authored by Cédric Bellegarde's avatar Cédric Bellegarde

Update generate_data.sh

parent 0a016da4
[Desktop Entry]
# Translators: Do NOT translate or transliterate this text
Name=Eolie
GenericName=Web browser
Comment=Web browser
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Eolie
Exec=eolie %U
Terminal=false
......
......@@ -21,36 +21,24 @@ function generate_resource()
echo '</gresources>'
}
function generate_pot()
{
echo '[encoding: UTF-8]'
for file in data/*.xml data/*.in eolie/*.py
do
echo $file
done
for file in data/*.ui data/AboutDialog.ui.in
do
echo -n '[type: gettext/glade]'
echo $file
done
}
function generate_po()
{
cd po
git pull https://hosted.weblate.org/git/gnumdk/eolie
intltool-update --pot
mv -f untitled.pot eolie.pot
>eolie.pot
for file in ../data/org.gnome.Eolie.gschema.xml ../data/*.in ../data/*.ui ../eolie/*.py
do
xgettext --from-code=UTF-8 -j $file -o eolie.pot
done
>LINGUAS
for file in *.po
for po in *.po
do
po=${file%.po}
echo $po >> LINGUAS
intltool-update $po
msgmerge -N $po eolie.pot > /tmp/$$language_new.po
mv /tmp/$$language_new.po $po
language=${po%.po}
echo $language >>LINGUAS
done
cd -
}
generate_resource > data/eolie.gresource.xml
generate_pot > po/POTFILES.in
generate_po
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