remove itstool and use gettext

This commit is contained in:
2017-10-27 20:48:06 -03:00
parent 297e70d124
commit 6771e2cdf5
25 changed files with 85 additions and 93 deletions

View File

@@ -4,7 +4,7 @@ MSGLANGS=$(notdir $(wildcard *.po))
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
gettext: ../data/polkit/org.pamac.policy.in $(MSGOBJS)
itstool -j ../data/polkit/org.pamac.policy.in -o ../data/polkit/org.pamac.policy $(MSGLANGS:.po=.mo)
msgfmt --xml --template ../data/polkit/org.pamac.policy.in -d ./ -o ../data/polkit/org.pamac.policy
clean:
rm -rf locale

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pamac\n"
"Report-Msgid-Bugs-To: cromer@cromnix.org\n"
"POT-Creation-Date: 2017-10-27 18:09-0300\n"
"POT-Creation-Date: 2017-10-27 20:46-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -1,3 +0,0 @@
#! /bin/sh
find . -name "*.po" -printf "%f\\n" | sed "s/\.po//g" | sort > LINGUAS

View File

@@ -17,7 +17,3 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#: ../data/polkit/org.pamac.policy.in
msgid "Authentication is required"
msgstr ""