diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-17 17:15:38 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-17 17:15:38 +0200 |
| commit | 16c00d2037cde6da07b4988dbd35ebce0af56791 (patch) | |
| tree | 34edc7fec59d9b6ed2a410daf5bee7edd560801b /apt/cache.py | |
| parent | 4e2bcf7853acd661bd9b56be7c774cc361fdebb4 (diff) | |
| download | python-apt-16c00d2037cde6da07b4988dbd35ebce0af56791.tar.gz | |
apt/__init__.py, apt/__cache__.py: Improve python-apt localization.
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py index a93d5575..6e11d215 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -21,6 +21,7 @@ import os import weakref +from gettext import dgettext import apt_pkg from apt import Package @@ -29,6 +30,10 @@ from apt.deprecation import (AttributeDeprecatedBy, function_deprecated_by, import apt.progress.text +def _(msg): + return dgettext('python-apt', msg) + + class FetchCancelledException(IOError): """Exception that is thrown when the user cancels a fetch operation.""" @@ -92,7 +97,7 @@ class Cache(object): self._set.clear() self._weakref.clear() - progress.op = "Building data structures" + progress.op = _("Building data structures") i=last=0 size=len(self._cache.packages) for pkg in self._cache.packages: |
