From f3ecc59364b9adf0bee60fa0dee81bf54587f712 Mon Sep 17 00:00:00 2001 From: Rongze Zhu Date: Mon, 22 Oct 2012 03:39:04 +0000 Subject: [PATCH] Change output strings to i18ned Fixes bug #1069601. Ensure visible message in cinder-volume-usage-audit got through translation. Change-Id: I5c32ce3b2ef2541b8a5520ed53feaf8e00f43c9d --- bin/cinder-volume-usage-audit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/cinder-volume-usage-audit b/bin/cinder-volume-usage-audit index 1e840b5fc..49b47706c 100755 --- a/bin/cinder-volume-usage-audit +++ b/bin/cinder-volume-usage-audit @@ -64,16 +64,16 @@ if __name__ == '__main__': flags.parse_args(sys.argv) logging.setup("cinder") begin, end = utils.last_completed_audit_period() - print "Starting volume usage audit" - print "Creating usages for %s until %s" % (str(begin), str(end)) + print _("Starting volume usage audit") + print _("Creating usages for %s until %s") % (str(begin), str(end)) volumes = db.volume_get_active_by_window(admin_context, begin, end) - print "Found %d volumes" % len(volumes) + print _("Found %d volumes") % len(volumes) for volume_ref in volumes: try: cinder.volume.utils.notify_usage_exists( admin_context, volume_ref) except Exception, e: print traceback.format_exc(e) - print "Volume usage audit completed" + print _("Volume usage audit completed") -- 2.45.2