please be careful with _('i18n strings')

This commit is contained in:
Eray Özkural
2006-04-09 15:18:32 +00:00
parent eaf5fcf113
commit 42c3d9656b
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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..."))
+2 -2
View File
@@ -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'
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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