]> sourceware.org Git - systemtap.git/commitdiff
Internationalize tapset-method strings
authorLukas Berk <lberk@redhat.com>
Thu, 4 Apr 2013 13:55:45 +0000 (09:55 -0400)
committerLukas Berk <lberk@redhat.com>
Wed, 1 May 2013 15:11:27 +0000 (11:11 -0400)
*tapset-method.cxx: add macros to internationalize strings

tapset-method.cxx

index 68ab5cdd17dd29810144a5cd425cc68254e2027d..a060b560664013fd813cc6e0ce8a317b1edc5781 100644 (file)
@@ -164,7 +164,6 @@ java_builder::build (systemtap_session & sess,
   if (! cache_initialized)
     {
 
-      //      cache_initialized = true;
       if(has_pid_int)
        {
          _tmp = static_cast <ostringstream*> ( & (ostringstream ()
@@ -177,7 +176,8 @@ java_builder::build (systemtap_session & sess,
 
       if (sess.verbose > 3)
        {
-         clog << "byteman script path: " << sess.byteman_script_path.at(*it)
+         //TRANSLATORS: the path to the byteman script
+         clog << _("byteman script path: ") << sess.byteman_script_path.at(*it)
               << endl;
        }
       ofstream byteman_script;
@@ -192,7 +192,7 @@ java_builder::build (systemtap_session & sess,
        }
 
       if (sess.verbose > 2)
-       clog << "Writting byteman script" << endl;
+       clog << _("Writting byteman script") << endl;
       // none of this should be translated, byteman syntax is specific
       byteman_script << "RULE Stap " << sess.base_hash << method_str_val << endl;
       // we'll need detection here for second type of syntax
@@ -219,7 +219,7 @@ java_builder::build (systemtap_session & sess,
       byteman_script << "ENDRULE" << endl;
       byteman_script.close();
       if (sess.verbose > 2)
-       clog << "Finished writting byteman script" << endl;
+       clog << _("Finished writting byteman script") << endl;
       
     }
 #ifdef HAVE_HELPER
@@ -257,9 +257,9 @@ java_builder::build (systemtap_session & sess,
   if (sess.verbose > 2)
     {
       if (ret)
-       clog << "WARNING: stap_system for bminstall.sh returned error: " << ret << endl;
+       clog << _F("WARNING: stap_system for bminstall.sh returned error: %d", ret) << endl;
       else
-       clog << "stap_system for bminstall.sh returned: " << ret << endl;
+       clog << _F("stap_system for bminstall.sh returned: %d", ret) << endl;
     }
   vector<string> bmsubmit_cmd;
   sess.bmsubmit_path = (find_executable ("bmsubmit.sh"));
@@ -275,7 +275,7 @@ java_builder::build (systemtap_session & sess,
     bmsubmit_cmd.push_back(sess.byteman_script_path.back());
   (void) stap_system(sess.verbose, bmsubmit_cmd);
   if (sess.verbose > 3)
-    clog << "Reported bmsubmit.sh path: " << sess.bmsubmit_path << endl;
+    clog << _("Reported bmsubmit.sh path: ") << sess.bmsubmit_path << endl;
 
   /* now we need to redefine the probe
    * while looking at sdt_query::convert_location as an example
This page took 0.028789 seconds and 5 git commands to generate.