Guillem Jover лет назад: 19
Родитель
Сommit
0f30749238
2 измененных файлов с 8 добавлено и 3 удалено
  1. 4 0
      ChangeLog
  2. 4 3
      src/archives.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2007-08-14  Guillem Jover  <guillem@debian.org>
+
+	* src/archives.c (linktosameexistingdir): Mark strings for translation.
+
 2007-08-11  Ian Jackson  <iwj@ubuntu.com>
 
 	* src/archives.c (linktosameexistingdir): New function.

+ 4 - 3
src/archives.c

@@ -336,7 +336,8 @@ static int linktosameexistingdir(const struct TarInfo *ti,
   statr= stat(fname, &oldstab);
   if (statr) {
     if (!(errno == ENOENT || errno == ELOOP || errno == ENOTDIR))
-      ohshite("failed to stat (dereference) existing symlink `%.250s'", fname);
+      ohshite(_("failed to stat (dereference) existing symlink `%.250s'"),
+              fname);
     return 0;
   }
   if (!S_ISDIR(oldstab.st_mode)) return 0;
@@ -356,8 +357,8 @@ static int linktosameexistingdir(const struct TarInfo *ti,
   statr= stat(symlinkfn->buf, &newstab);
   if (statr) {
     if (!(errno == ENOENT || errno == ELOOP || errno == ENOTDIR))
-      ohshite("failed to stat (dereference) proposed new symlink target"
-              " `%.250s' for symlink `%.250s'", symlinkfn->buf, fname);
+      ohshite(_("failed to stat (dereference) proposed new symlink target"
+                " `%.250s' for symlink `%.250s'"), symlinkfn->buf, fname);
     return 0;
   }
   if (!S_ISDIR(newstab.st_mode)) return 0;