diff options
author | Yuriy Taraday <yorik.sar@gmail.com> | 2012-02-24 16:13:44 +0400 |
---|---|---|
committer | Yuriy Taraday <yorik.sar@gmail.com> | 2012-04-10 22:01:55 +0400 |
commit | 4fe6f839bd87b25380819256167f7b6247b27c1b (patch) | |
tree | d94b733426ff093987f1a71d0ecb2341b097709c /bin/nova-manage | |
parent | 66c900084e4242a40364ed4b6e9dcf749fabf650 (diff) | |
download | nova-4fe6f839bd87b25380819256167f7b6247b27c1b.tar.gz |
Improved localization testing.
Moved localization tests to tools/hacking.py.
Change-Id: I903b90dfb09a46a72b1c64c30301f90661999f5b
Diffstat (limited to 'bin/nova-manage')
-rwxr-xr-x | bin/nova-manage | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index f5491bccbd..b09fddc495 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -1113,8 +1113,9 @@ class VersionCommands(object): pass def list(self): - print _("%s (%s)") %\ - (version.version_string(), version.version_string_with_vcs()) + print _("%(version)s (%(vcs)s)") % \ + {'version': version.version_string(), + 'vcs': version.version_string_with_vcs()} def __call__(self): self.list() @@ -1680,8 +1681,9 @@ def main(): script_name = argv.pop(0) if len(argv) < 1: - print _("\nOpenStack Nova version: %s (%s)\n") %\ - (version.version_string(), version.version_string_with_vcs()) + print _("\nOpenStack Nova version: %(version)s (%(vcs)s)\n") % \ + {'version': version.version_string(), + 'vcs': version.version_string_with_vcs()} print script_name + " category action [<args>]" print _("Available categories:") for k, _v in CATEGORIES: |