]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Change output strings to i18ned
authorRongze Zhu <zrzhit@gmail.com>
Mon, 22 Oct 2012 03:39:04 +0000 (03:39 +0000)
committerRongze Zhu <zrzhit@gmail.com>
Mon, 22 Oct 2012 03:39:04 +0000 (03:39 +0000)
Fixes bug #1069601.

Ensure visible message in cinder-volume-usage-audit got through
translation.

Change-Id: I5c32ce3b2ef2541b8a5520ed53feaf8e00f43c9d

bin/cinder-volume-usage-audit

index 1e840b5fc9c28f71e4306fc1ba04c661305f68b7..49b47706cdbf3601a08ea76afaf07b758b6dd81c 100755 (executable)
@@ -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")