[Pkg-mozext-commits] [adblock-plus] 75/464: Include en-US locale in the localized sections of install manifest - extension manager will fall back to en-GB otherwise

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:04 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 36a0d70e6b8f3a7e357a9bfdd26532c4b09c2386
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Apr 28 10:54:56 2010 +0200

    Include en-US locale in the localized sections of install manifest - extension manager will fall back to en-GB otherwise
---
 Packager.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Packager.pm b/Packager.pm
index dcb47db..b54fa33 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -73,7 +73,7 @@ sub readLocaleData
     $self->{localeData}{$locale} = {id => $locale};
     while ($data =~ /^\s*(?![!#])(\S+)\s*=\s*(.+)$/mg)
     {
-      if ($1 eq "name" || $1 eq "description" || $1 eq "translator")
+      if ($1 eq "name" || $1 eq "description" || $1 eq "translator" || $1 eq "description.short" || $1 eq "description.long")
       {
         $self->{localeData}{$locale}{$1} = $2;
       }
@@ -84,7 +84,6 @@ sub readLocaleData
   {
     $self->{name} = $self->{localeData}{"en-US"}{name} if exists($self->{localeData}{"en-US"}{name});
     $self->{description} = $self->{localeData}{"en-US"}{description} if exists($self->{localeData}{"en-US"}{description});
-    delete $self->{localeData}{"en-US"};
   }
 
   my $info = "";

-- 
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