Package: apt-listchanges
Version: 2.59-0.2
tags: l10n

Hi,


This is a patch to make apt-listchanges have more strings translatable.

diff -ur apt-listchanges-2.59-orig/apt-listchanges 
apt-listchanges-2.59/apt-listchanges
--- apt-listchanges-2.59-orig/apt-listchanges   2004-11-14 10:34:08.000000000 
+0900
+++ apt-listchanges-2.59/apt-listchanges        2005-07-16 02:37:06.000000000 
+0900
@@ -84,7 +84,7 @@
 
     frontend = apt_listchanges.make_frontend(config.frontend,len(debs),config)
     if frontend == None:
-        sys.stderr.write("Unknown frontend: %s\n" % config.frontend)
+        sys.stderr.write(_("Unknown frontend: %s\n") % config.frontend)
         sys.exit(1)
 
     # Main loop
diff -ur apt-listchanges-2.59-orig/apt_listchanges.py 
apt-listchanges-2.59/apt_listchanges.py
--- apt-listchanges-2.59-orig/apt_listchanges.py        2005-02-14 
04:48:03.000000000 +0900
+++ apt-listchanges-2.59/apt_listchanges.py     2005-07-16 05:48:52.514398000 
+0900
@@ -209,7 +209,7 @@
         else:
             fh = sys.stderr
             
-        fh.write("Usage: apt-listchanges [options] {--apt | filename.deb 
...}\n")
+        fh.write(_("Usage: apt-listchanges [options] {--apt | filename.deb 
...}\n"))
         sys.exit(exitcode)
 
 
@@ -264,7 +264,7 @@
                 if arg in self.allowed_which:
                     self.which = arg
                 else:
-                    print 'Unknown option %s for --which.  Allowed are: %s.' % 
\
+                    print _('Unknown option %s for --which.  Allowed are: 
%s.') % \
                         (arg, string.join(self.allowed_which, ", "))
                     sys.exit(1)
             elif opt == '--debug':


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to