This is an automated email from the git hooks/post-receive script. nodens-guest pushed a commit to annotated tag OpenPGP_Applet-0.9 in repository openpgp-applet.
commit 8e1aca42818a773a2af020d49eca59b902c66c06 Author: Clément Hermann (nodens) <nod...@nodens.org> Date: Sun Sep 28 16:32:18 2014 +0200 Add i18n infrastructure (using iuk as example) - po/ directory and Makefiles - dist::zilla mo files generation - change i18n domain from tails to OpenPGP_Applet (i.e. dist name) - generate pot file --- bin/openpgp-applet | 2 +- dist.ini | 5 +- po/Makefile | 93 +++++++++++++++++++++++++++ po/OpenPGP_Applet.pot | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++ po/PACKAGE | 44 +++++++++++++ po/POTFILES.in | 1 + 6 files changed, 312 insertions(+), 4 deletions(-) diff --git a/bin/openpgp-applet b/bin/openpgp-applet index 053b9d2..518561d 100755 --- a/bin/openpgp-applet +++ b/bin/openpgp-applet @@ -72,7 +72,7 @@ use File::ShareDir; use Locale::gettext; use POSIX; setlocale(LC_MESSAGES, ""); -textdomain("tails"); +textdomain("OpenPGP_Applet"); =head1 GLOBALS diff --git a/dist.ini b/dist.ini index 6c1d773..8da18ee 100644 --- a/dist.ini +++ b/dist.ini @@ -32,10 +32,9 @@ requires = xclip [ExecDir] -; no po file for now ; Compile .po files to .mo files -;[LocaleMsgfmt] -;locale = po +[LocaleMsgfmt] +locale = po [Git::Check] diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..5bec6ca --- /dev/null +++ b/po/Makefile @@ -0,0 +1,93 @@ +# Makefile for various po files. + +srcdir = . +destdir = $(DESTDIR)$(PREFIX) + +#CATALOGS = $(addsuffix .po, LINGUAS) +CATALOGS = $(LINGUAS) +MO_FILES = $(addsuffix .mo, $(LINGUAS)) + +MSGMERGE = msgmerge +MSGFMT = msgfmt +XGETTEXT = xgettext +CATOBJEXT = .po + +include PACKAGE + +TD = $(strip $(TEXTDOMAIN)) + +default: help + +all: $(TD).pot update-po update-mo + +help: + @echo "Available targets:" + @echo " pot - remake master catalog" + @echo " update-po - merge po files" + @echo " update-mo - regenerate mo files" + @echo " install - install mo files" + @echo " all - all of the above" + +POTFILES = $(srcdir)/POTFILES.in \ + $(shell cat $(srcdir)/POTFILES.in) + +pot: $(TD).pot + +clean: + rm -f *~ *.bak *.mo + +# FIXME: The parameter --from-code is only needed if your sources contain +# any 8 bit data (even in comments). UTF-8 is only a guess here, but it +# will at least accept any 8 bit data. +# +# The parameter "--language=perl" is not strictly needed because the +# source language of all our files will be auto-detected by xgettext +# by their filename extension. You should even avoid this parameter +# if you want to extract strings from multiple source languages. +$(TD).pot: $(POTFILES) + $(XGETTEXT) --output=$(srcdir)/$(TD).pox --from-code=utf-8 \ + --add-comments=TRANSLATORS: --files-from=$(srcdir)/POTFILES.in \ + --copyright-holder="$(COPYRIGHT_HOLDER)" \ + --msgid-bugs-address="$(MSGID_BUGS_ADDRESS)" \ + --language=perl && \ + rm -f $@ && mv $(TD).pox $@ + +install: $(MO_FILES) + cd $(srcdir); \ + targetdir='$(destdir)/share/locale'; \ + languages='$(LINGUAS)'; \ + for lang in $$languages; do \ + mkdir -p "$$targetdir/$$lang/LC_MESSAGES" || exit 1; \ + dest="$$targetdir/$$lang/LC_MESSAGES/$(TD).mo"; \ + cat="$$lang.mo"; \ + echo "installing $$cat as $$dest"; \ + cp -f $$cat $$dest && chmod 644 $$dest || exit 1; \ + done + +update-mo: $(MO_FILES) + +update-po: + $(MAKE) $(TD).pot + cd $(srcdir); \ + catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ + mv $$lang.po $$lang.old.po; \ + echo "$$lang:"; \ + if $(MSGMERGE) $$lang.old.po $(TD).pot -o $$lang.po; then \ + rm -f $$lang.old.po; \ + else \ + echo "msgmerge for $$cat failed!"; \ + rm -f $$lang.po; \ + mv $$lang.old.po $$lang.po; \ + fi; \ + done + +.SUFFIXES: +.SUFFIXES: .po .mo + +.po.mo: + $(MSGFMT) --check --statistics --verbose -o $@ $< + + diff --git a/po/OpenPGP_Applet.pot b/po/OpenPGP_Applet.pot new file mode 100644 index 0000000..bd9b87e --- /dev/null +++ b/po/OpenPGP_Applet.pot @@ -0,0 +1,171 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Tails developers +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: Tails developers <ta...@boum.org>\n" +"POT-Creation-Date: 2014-09-28 23:53+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <l...@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: ../bin/openpgp-applet:164 +msgid "OpenPGP encryption applet" +msgstr "" + +#: ../bin/openpgp-applet:167 +msgid "Exit" +msgstr "" + +#: ../bin/openpgp-applet:169 +msgid "About" +msgstr "" + +#: ../bin/openpgp-applet:222 +msgid "Encrypt Clipboard with _Passphrase" +msgstr "" + +#: ../bin/openpgp-applet:225 +msgid "Sign/Encrypt Clipboard with Public _Keys" +msgstr "" + +#: ../bin/openpgp-applet:230 +msgid "_Decrypt/Verify Clipboard" +msgstr "" + +#: ../bin/openpgp-applet:234 +msgid "_Manage Keys" +msgstr "" + +#: ../bin/openpgp-applet:274 +msgid "The clipboard does not contain valid input data." +msgstr "" + +#: ../bin/openpgp-applet:324 ../bin/openpgp-applet:326 +#: ../bin/openpgp-applet:328 +msgid "Unknown Trust" +msgstr "" + +#: ../bin/openpgp-applet:330 +msgid "Marginal Trust" +msgstr "" + +#: ../bin/openpgp-applet:332 +msgid "Full Trust" +msgstr "" + +#: ../bin/openpgp-applet:334 +msgid "Ultimate Trust" +msgstr "" + +#: ../bin/openpgp-applet:387 +msgid "Name" +msgstr "" + +#: ../bin/openpgp-applet:388 +msgid "Key ID" +msgstr "" + +#: ../bin/openpgp-applet:389 +msgid "Status" +msgstr "" + +#: ../bin/openpgp-applet:421 +msgid "Fingerprint:" +msgstr "" + +#: ../bin/openpgp-applet:424 +msgid "User ID:" +msgid_plural "User IDs:" +msgstr[0] "" +msgstr[1] "" + +#: ../bin/openpgp-applet:454 +msgid "None (Don't sign)" +msgstr "" + +#: ../bin/openpgp-applet:517 +msgid "Select recipients:" +msgstr "" + +#: ../bin/openpgp-applet:525 +msgid "Hide recipients" +msgstr "" + +#: ../bin/openpgp-applet:528 +msgid "" +"Hide the user IDs of all recipients of an encrypted message. Otherwise " +"anyone that sees the encrypted message can see who the recipients are." +msgstr "" + +#: ../bin/openpgp-applet:534 +msgid "Sign message as:" +msgstr "" + +#: ../bin/openpgp-applet:538 +msgid "Choose keys" +msgstr "" + +#: ../bin/openpgp-applet:578 +msgid "Do you trust these keys?" +msgstr "" + +#: ../bin/openpgp-applet:581 +msgid "The following selected key is not fully trusted:" +msgid_plural "The following selected keys are not fully trusted:" +msgstr[0] "" +msgstr[1] "" + +#: ../bin/openpgp-applet:599 +msgid "Do you trust this key enough to use it anyway?" +msgid_plural "Do you trust these keys enough to use them anyway?" +msgstr[0] "" +msgstr[1] "" + +#: ../bin/openpgp-applet:612 +msgid "No keys selected" +msgstr "" + +#: ../bin/openpgp-applet:614 +msgid "" +"You must select a private key to sign the message, or some public keys to " +"encrypt the message, or both." +msgstr "" + +#: ../bin/openpgp-applet:642 +msgid "No keys available" +msgstr "" + +#: ../bin/openpgp-applet:644 +msgid "" +"You need a private key to sign messages or a public key to encrypt messages." +msgstr "" + +#: ../bin/openpgp-applet:772 +msgid "GnuPG error" +msgstr "" + +#: ../bin/openpgp-applet:793 +msgid "Therefore the operation cannot be performed." +msgstr "" + +#: ../bin/openpgp-applet:843 +msgid "GnuPG results" +msgstr "" + +#: ../bin/openpgp-applet:849 +msgid "Output of GnuPG:" +msgstr "" + +#: ../bin/openpgp-applet:874 +msgid "Other messages provided by GnuPG:" +msgstr "" diff --git a/po/PACKAGE b/po/PACKAGE new file mode 100644 index 0000000..4ae7ab6 --- /dev/null +++ b/po/PACKAGE @@ -0,0 +1,44 @@ +# Makefile snippet that holds all package-dependent information. + +# Add more languages here! Beware that this is a makefile snippet and +# you have to adhere to make syntax. +LINGUAS = ar \ + cy \ + da \ + de \ + el \ + en_GB \ + es \ + fa \ + fi \ + fr_CA \ + fr \ + hr_HR \ + hu \ + it \ + ja \ + km \ + ko \ + nb \ + nl \ + pl \ + pt_BR \ + pt \ + ru \ + sk \ + sv \ + tr \ + uk \ + zh_CN \ + zh \ + zh_TW + +# Textdomain for our package. +TEXTDOMAIN = OpenPGP_Applet + +# Initial copyright holder added to pot and po files. +COPYRIGHT_HOLDER = Tails developers + +# Where to send msgid bugs? +MSGID_BUGS_ADDRESS = Tails developers <ta...@boum.org> + diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..237deb5 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1 @@ +../bin/openpgp-applet -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/openpgp-applet.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits