Преглед на файлове

dpkg: Mark hook command error string for translation

Guillem Jover преди 16 години
родител
ревизия
acf7fe58c9
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -381,7 +381,8 @@ run_invoke_hooks(const char *action, struct invoke_hook *hook_head)
      * used “!$=&|\\`'"^~;<>{}[]()?*#”. */
      * used “!$=&|\\`'"^~;<>{}[]()?*#”. */
     status = system(hook->command);
     status = system(hook->command);
     if (status != 0)
     if (status != 0)
-      ohshit("error executing hook '%s', exit code %d", hook->command, status);
+      ohshit(_("error executing hook '%s', exit code %d"), hook->command,
+             status);
   }
   }
 
 
   unsetenv("DPKG_HOOK_ACTION");
   unsetenv("DPKG_HOOK_ACTION");