Parcourir la source

dpkg: Mark the summarize_filename() ellipsed string for translation

Coallesce the ellipsed string with the format string so that it makes a
bit more sense for translators. This will allow translators to use for
example the UTF-8 ellipsis character.
Guillem Jover il y a 16 ans
Parent
commit
21bae07787
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/processarc.c

+ 1 - 2
src/processarc.c

@@ -71,8 +71,7 @@ summarize_filename(const char *filename)
 
 
   if (pfilename && pfilename != filename) {
   if (pfilename && pfilename != filename) {
     pfilenamebuf = nfmalloc(strlen(pfilename) + 5);
     pfilenamebuf = nfmalloc(strlen(pfilename) + 5);
-    strcpy(pfilenamebuf, ".../");
-    strcat(pfilenamebuf, pfilename);
+    sprintf(pfilenamebuf, _(".../%s"), pfilename);
     pfilename = pfilenamebuf;
     pfilename = pfilenamebuf;
   } else {
   } else {
     pfilename = filename;
     pfilename = filename;