Rev 6413: Don't forget to use gettext. in file:///home/vila/src/bzr/experimental/store-save-changes/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Jan 5 09:39:29 UTC 2012


At file:///home/vila/src/bzr/experimental/store-save-changes/

------------------------------------------------------------
revno: 6413
revision-id: v.ladeuil+lp at free.fr-20120105093929-aqwc487n1yisq3wi
parent: v.ladeuil+lp at free.fr-20120104153813-df3rpssth58k3obv
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: store-save-changes
timestamp: Thu 2012-01-05 10:39:29 +0100
message:
  Don't forget to use gettext.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2012-01-04 15:38:13 +0000
+++ b/bzrlib/config.py	2012-01-05 09:39:29 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2005-2011 Canonical Ltd
+# Copyright (C) 2005-2012 Canonical Ltd
 #   Authors: Robert Collins <robert.collins at canonical.com>
 #            and others
 #
@@ -2944,10 +2944,11 @@
                     expected = '<CREATED>'
                 # Someone changed the value since we get it from the persistent
                 # storage.
-                trace.warning("Option %s in section %s of %s was changed"
-                              " from %s to %s. The %s value will be saved.",
-                              k, self.id, store.external_url(),
-                              expected, reloaded, actual)
+                trace.warning(gettext(
+                        "Option {0} in section {1} of {2} was changed"
+                        " from {3} to {4}. The {5} value will be saved.".format(
+                            k, self.id, store.external_url(), expected,
+                            reloaded, actual)))
         # No need to keep track of these changes
         self.reset_changes()
 



More information about the bazaar-commits mailing list