[Pkg-mozext-commits] [adblock-plus] 102/464: Added script to display localized add-on info (for AMO)

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit d0a872c5d935ee88049cb82daa4249268da11710
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Nov 3 14:08:36 2010 +0100

    Added script to display localized add-on info (for AMO)
---
 show_descriptions.pl | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/show_descriptions.pl b/show_descriptions.pl
new file mode 100644
index 0000000..fdd596e
--- /dev/null
+++ b/show_descriptions.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use lib qw(buildtools);
+use Packager;
+
+my $pkg = Packager->new();
+$pkg->readMetadata('metadata');
+$pkg->readLocales('chrome/locale');
+$pkg->readLocaleData('chrome/locale');
+
+foreach my $locale (sort {$a->{id} cmp $b->{id}} values %{$pkg->{localeData}})
+{
+  print "$locale->{id}\n$locale->{'name'}\n$locale->{'description.short'}\n$locale->{'description.long'}\n\n";
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list