diff --git a/AppStream/Makefile b/AppStream/Makefile new file mode 100644 index 0000000..b23fa06 --- /dev/null +++ b/AppStream/Makefile @@ -0,0 +1,45 @@ +# This file is part of telegram-purple +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA +# +# Copyright Ben Wiederhake 2016 + +# This file is NOT meant for inclusion into the main Makefile. + +LOCALES=$(shell cat po/LINGUAS) +LOCALE_MOS=$(addprefix po/,$(addsuffix .mo,$(LOCALES))) +# Hardcoded, since this should only be run on very few machines anyway, +# which are expected to have msgfmt on their $PATH +MSGFMT_PATH=msgfmt + +po/%.mo: po/%.po + ${MSGFMT_PATH} -cf -o $@ $< + +po/telegram-purple.metainfo.xml.pot: telegram-purple.metainfo.untranslated.xml as-metainfo.its + itstool -i as-metainfo.its -o $@ $< + +# CAREFUL WHEN EDITING! +# "-j raw.xml *.mo" must be the last options! +telegram-purple.metainfo.xml: as-metainfo.its telegram-purple.metainfo.untranslated.xml $(LOCALE_MOS) po/LINGUAS + itstool -i as-metainfo.its -o $@ \ + -j telegram-purple.metainfo.untranslated.xml $(LOCALE_MOS) + +.PHONY: potfile +potfile: po/telegram-purple.metainfo.xml.pot + +.PHONY: translate +translate: telegram-purple.metainfo.xml + +all: translate diff --git a/AppStream/as-metainfo.its b/AppStream/as-metainfo.its new file mode 100644 index 0000000..11defc5 --- /dev/null +++ b/AppStream/as-metainfo.its @@ -0,0 +1,23 @@ + + + + + diff --git a/AppStream/po/LINGUAS b/AppStream/po/LINGUAS new file mode 100644 index 0000000..e69de29 diff --git a/AppStream/po/telegram-purple.metainfo.xml.pot b/AppStream/po/telegram-purple.metainfo.xml.pot new file mode 100644 index 0000000..01ee962 --- /dev/null +++ b/AppStream/po/telegram-purple.metainfo.xml.pot @@ -0,0 +1,21 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2016-01-07 23:23+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: component/name +#: telegram-purple.metainfo.untranslated.xml:9 +msgid "Telegram" +msgstr "" + +#. (itstool) path: component/summary +#: telegram-purple.metainfo.untranslated.xml:10 +msgid "A plugin that adds support for Telegram" +msgstr "" + diff --git a/AppStream/telegram-purple.metainfo.untranslated.xml b/AppStream/telegram-purple.metainfo.untranslated.xml new file mode 100644 index 0000000..092faa7 --- /dev/null +++ b/AppStream/telegram-purple.metainfo.untranslated.xml @@ -0,0 +1,16 @@ + + + + telegram-purple + pidgin.desktop + Telegram + A plugin that adds support for Telegram + https://github.com/majn/telegram-purple + https://github.com/majn/telegram-purple/issues/ + GFDL-1.3 + GPL-2.0+ + eischmann_at_redhat.com +