From 42c3d9656bd8a2a3920a3c4bac393c8fecf7b6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sun, 9 Apr 2006 15:18:32 +0000 Subject: [PATCH] please be careful with _('i18n strings') --- pisi/api.py | 2 +- pisi/build.py | 6 +++--- pisi/fetcher.py | 4 ++-- pisi/operations.py | 2 +- pisi/package.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pisi/api.py b/pisi/api.py index 9f38cb55..2f4e679b 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -332,7 +332,7 @@ def update_repo(repo, force=False): try: index.read_uri(repouri, repo) except pisi.file.AlreadyHaveException, e: - ctx.ui.info(_('No updates available for repository %s.' % repo)) + ctx.ui.info(_('No updates available for repository %s.') % repo) if force: ctx.ui.info(_('Updating database at any rate as requested')) index.read_uri(repouri, repo, force = force) diff --git a/pisi/build.py b/pisi/build.py index 434802ba..24a9a931 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -757,12 +757,12 @@ class Builder: if ctx.get_option('show_abandoned_files') or ctx.get_option('debug'): abandoned_files = self.get_abandoned_files() if abandoned_files: - ctx.ui.warning(_('Abandoned files under the install dir (%s):' % (install_dir))) + ctx.ui.warning(_('Abandoned files under the install dir (%s):') % (install_dir)) for f in abandoned_files: ctx.ui.info(' - %s' % (f)) else: - ctx.ui.warning(_('All of the files under the install dir (%s) has been collected by package(s)' \ - % (install_dir))) + ctx.ui.warning(_('All of the files under the install dir (%s) has been collected by package(s)') + % (install_dir)) if ctx.config.values.general.autoclean is True: ctx.ui.info(_("Cleaning Build Directory...")) diff --git a/pisi/fetcher.py b/pisi/fetcher.py index 6bbbc77d..9c1e2c3e 100644 --- a/pisi/fetcher.py +++ b/pisi/fetcher.py @@ -81,12 +81,12 @@ class Fetcher: self.err(_('Filename error')) if not os.access(self.destdir, os.W_OK): - self.err(_('Access denied to write to destination directory: "%s"' % (self.destdir))) + self.err(_('Access denied to write to destination directory: "%s"') % (self.destdir)) archive_file = os.path.join(self.destdir, self.url.filename()) if os.path.exists(archive_file) and not os.access(archive_file, os.W_OK): - self.err(_('Access denied to destination file: "%s"' % (archive_file))) + self.err(_('Access denied to destination file: "%s"') % (archive_file)) partial_file = archive_file + '.part' diff --git a/pisi/operations.py b/pisi/operations.py index 83687823..b9e54860 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -231,7 +231,7 @@ in the respective order to satisfy dependencies: if total_size: total_size, symbol = util.human_readable_size(total_size) - ctx.ui.warning(_('Total size of packages: %.2f %s' % (total_size, symbol))) + ctx.ui.warning(_('Total size of packages: %.2f %s') % (total_size, symbol)) if ctx.get_option('dry_run'): return diff --git a/pisi/package.py b/pisi/package.py index 72f1ef1e..c6f51b04 100644 --- a/pisi/package.py +++ b/pisi/package.py @@ -52,7 +52,7 @@ class Package: package_size = ctx.packagedb.get_package(current_pkg).packageSize if package_size: package_size, symbol = util.human_readable_size(package_size) - ctx.ui.warning(_("Package size: %.2f %s" % (package_size, symbol))) + ctx.ui.warning(_("Package size: %.2f %s") % (package_size, symbol)) # if package is installed (which means we are upgrading it), # calculate needed info