]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- mark messages for translation
authorArvin Schnell <aschnell@suse.de>
Wed, 4 May 2011 07:37:48 +0000 (09:37 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 4 May 2011 07:37:48 +0000 (09:37 +0200)
tools/snapper.cc

index 567d2122fa95ba5328c0eed36828ec595d47850d..d1b6f07d92d5cdc3709a1d8a68256bf56eeef870 100644 (file)
@@ -697,8 +697,8 @@ command_help()
 
 struct CompareCallbackImpl : public CompareCallback
 {
-    void start() { cout << "comparing snapshots..." << flush; }
-    void stop() { cout << " done" << endl; }
+    void start() { cout << _("comparing snapshots...") << flush; }
+    void stop() { cout << " " << _("done") << endl; }
 };
 
 CompareCallbackImpl compare_callback_impl;
@@ -706,16 +706,22 @@ CompareCallbackImpl compare_callback_impl;
 
 struct RollbackCallbackImpl : public RollbackCallback
 {
-    void start() { cout << "running rollback..." << endl; }
-    void stop() { cout << "rollback done" << endl; }
-
-    void createInfo(const string& name) { if (verbose) cout << "creating " << name << endl; }
-    void modifyInfo(const string& name) { if (verbose) cout << "modifying " << name << endl; }
-    void deleteInfo(const string& name) { if (verbose) cout << "deleting " << name << endl; }
-
-    void createError(const string& name) { cerr << "failed to create " << name << endl; }
-    void modifyError(const string& name) { cerr << "failed to modify " << name << endl; }
-    void deleteError(const string& name) { cerr << "failed to delete " << name << endl; }
+    void start() { cout << _("running rollback...") << endl; }
+    void stop() { cout << _("rollback done") << endl; }
+
+    void createInfo(const string& name)
+       { if (verbose) cout << sformat(_("creating %s"), name.c_str()) << endl; }
+    void modifyInfo(const string& name)
+       { if (verbose) cout << sformat(_("modifying %s"), name.c_str()) << endl; }
+    void deleteInfo(const string& name)
+       { if (verbose) cout << sformat(_("deleting %s"), name.c_str()) << endl; }
+
+    void createError(const string& name)
+       { cerr << sformat(_("failed to create %s"), name.c_str()) << endl; }
+    void modifyError(const string& name)
+       { cerr << sformat(_("failed to modify %s"), name.c_str()) << endl; }
+    void deleteError(const string& name)
+       { cerr << sformat(_("failed to delete %s"), name.c_str()) << endl; }
 };
 
 RollbackCallbackImpl rollback_callback_impl;