summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-26 17:09:46 +0000
committerjbj <devnull@localhost>1999-09-26 17:09:46 +0000
commitd6f997e62d7bce0f24623ba8acfe3280fd6caf82 (patch)
treeefc225211749ab746228fa91dc0ee0c933b8ebfb /tools
parente60094b302720378ca194db760e51299b32e0a70 (diff)
downloadrpm-d6f997e62d7bce0f24623ba8acfe3280fd6caf82.tar.gz
rpm-d6f997e62d7bce0f24623ba8acfe3280fd6caf82.tar.bz2
rpm-d6f997e62d7bce0f24623ba8acfe3280fd6caf82.zip
Drill msgid at same time as msgstrs.
CVS patchset: 3331 CVS date: 1999/09/26 17:09:46
Diffstat (limited to 'tools')
-rw-r--r--tools/rpmgettext.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/rpmgettext.c b/tools/rpmgettext.c
index d72bbe2be..4c8308abe 100644
--- a/tools/rpmgettext.c
+++ b/tools/rpmgettext.c
@@ -36,6 +36,7 @@ int debug = MYDEBUG;
int verbose = 0;
char *inputdir = NULL;
char *outputdir = NULL;
+int msgid_too = 0;
int gottalang = 0;
int nlangs = 0;
char *onlylang[128];
@@ -706,10 +707,16 @@ headerInject(Header h, int *poTags, message_list_ty *mlp)
}
e = *s;
+
/* Search for the msgid ... */
if ((mp = message_list_search(mlp, e)) == NULL)
goto bottom;
-DPRINTF(1, ("%s\n\tmsgid\n", getTagString(*tp)));
+DPRINTF(1, ("%s\n\tmsgid", getTagString(*tp)));
+ if (msgid_too) {
+DPRINTF(1, (" (drilled)"));
+ headerAddI18NString(h, *tp, e, "C");
+ }
+DPRINTF(1, ("\n"));
/* Skip fuzzy ... */
if (mp->is_fuzzy) {
@@ -995,7 +1002,7 @@ main(int argc, char **argv)
setprogname(argv[0]); /* Retrofit glibc __progname */
- while((c = getopt(argc, argv, "degEMl:C:I:O:Tv")) != EOF)
+ while((c = getopt(argc, argv, "defgEMl:C:I:O:Tv")) != EOF)
switch (c) {
case 'C':
mastercatalogue = strdup(optarg);
@@ -1009,6 +1016,9 @@ main(int argc, char **argv)
case 'E':
message_print_style_escape(1);
break;
+ case 'f':
+ msgid_too++;
+ break;
case 'l':
gottalang = 1;
onlylang[nlangs++] = strdup(optarg);