From 46fe51d2e9b639a03d42cbae64676b7205546bf4 Mon Sep 17 00:00:00 2001 From: jbj Date: Mon, 22 Feb 1999 18:09:17 +0000 Subject: [PATCH] Meta-msgid's generated by tagName. CVS patchset: 2826 CVS date: 1999/02/22 18:09:17 --- build/parsePreamble.c | 4 ++-- lib/query.c | 1 - po/rpm.pot | 38 +++++++++++++++++++------------------- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/build/parsePreamble.c b/build/parsePreamble.c index abf741f..a950a72 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -320,10 +320,10 @@ stashSt(Spec spec, Header h, int tag, const char *lang) t->t_lang = strdup(lang); t->t_msgid = NULL; if (!(t->t_lang && strcmp(t->t_lang, RPMBUILD_DEFAULT_LANG))) { - char *n, buf[1024]; + char *n; if (headerGetEntry(h, RPMTAG_NAME, NULL, (void *) &n, NULL)) { + char buf[1024]; sprintf(buf, "%s(%s)", n, tagName(tag)); - if ((n = strchr(buf, '(')) != NULL) n[1] = tolower(n[1]); t->t_msgid = strdup(buf); } } diff --git a/lib/query.c b/lib/query.c index e1282df..bed5505 100644 --- a/lib/query.c +++ b/lib/query.c @@ -450,7 +450,6 @@ printNewSpecfile(Spec spec) headerGetEntry(spec->packages->header, RPMTAG_NAME, NULL, (void *) &n, NULL); sprintf(buf, "%s(%s)", n, tagName(t->t_tag)); - if ((n = strchr(buf, '(')) != NULL) n[1] = tolower(n[1]); t->t_msgid = strdup(buf); } msgstr = strdup(dgettext(SPECSPACKAGE, t->t_msgid)); diff --git a/po/rpm.pot b/po/rpm.pot index 71785e2..52864f2 100644 --- a/po/rpm.pot +++ b/po/rpm.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 1999-02-22 12:38-0500\n" +"POT-Creation-Date: 1999-02-22 12:47-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -294,7 +294,7 @@ msgstr "" msgid "cannot open file %s\n" msgstr "" -#: ../install.c:185 ../lib/query.c:551 +#: ../install.c:185 ../lib/query.c:541 #, c-format msgid "%s does not appear to be a RPM package\n" msgstr "" @@ -322,7 +322,7 @@ msgstr "" msgid "installing binary packages\n" msgstr "" -#: ../install.c:342 ../lib/query.c:695 ../verify.c:243 +#: ../install.c:342 ../lib/query.c:685 ../verify.c:243 #, c-format msgid "package %s is not installed\n" msgstr "" @@ -1470,11 +1470,11 @@ msgstr "" msgid "error: could not read database record\n" msgstr "" -#: ../lib/query.c:605 ../verify.c:179 +#: ../lib/query.c:595 ../verify.c:179 msgid "could not read database record!\n" msgstr "" -#: ../lib/query.c:530 ../verify.c:198 +#: ../lib/query.c:520 ../verify.c:198 #, c-format msgid "open of %s failed\n" msgstr "" @@ -1484,17 +1484,17 @@ msgstr "" msgid "%s is not an RPM\n" msgstr "" -#: ../lib/query.c:616 ../verify.c:222 +#: ../lib/query.c:606 ../verify.c:222 #, c-format msgid "group %s does not contain any packages\n" msgstr "" -#: ../lib/query.c:664 ../verify.c:232 +#: ../lib/query.c:654 ../verify.c:232 #, c-format msgid "file %s is not owned by any package\n" msgstr "" -#: ../lib/query.c:698 ../verify.c:245 +#: ../lib/query.c:688 ../verify.c:245 #, c-format msgid "error looking for package %s\n" msgstr "" @@ -2711,55 +2711,55 @@ msgstr "" msgid "querying record number %d\n" msgstr "" -#: ../lib/query.c:515 +#: ../lib/query.c:505 msgid "rpmQuery: rpmdbOpen() failed\n" msgstr "" -#: ../lib/query.c:543 +#: ../lib/query.c:533 msgid "old format source packages cannot be queried\n" msgstr "" -#: ../lib/query.c:554 +#: ../lib/query.c:544 #, c-format msgid "query of %s failed\n" msgstr "" -#: ../lib/query.c:573 +#: ../lib/query.c:563 #, c-format msgid "query of specfile %s failed, can't parse\n" msgstr "" -#: ../lib/query.c:626 +#: ../lib/query.c:616 #, c-format msgid "no package provides %s\n" msgstr "" -#: ../lib/query.c:636 +#: ../lib/query.c:626 #, c-format msgid "no package triggers %s\n" msgstr "" -#: ../lib/query.c:646 +#: ../lib/query.c:636 #, c-format msgid "no package requires %s\n" msgstr "" -#: ../lib/query.c:661 +#: ../lib/query.c:651 #, c-format msgid "file %s: %s\n" msgstr "" -#: ../lib/query.c:677 +#: ../lib/query.c:667 #, c-format msgid "invalid package number: %s\n" msgstr "" -#: ../lib/query.c:680 +#: ../lib/query.c:670 #, c-format msgid "showing package: %d\n" msgstr "" -#: ../lib/query.c:683 +#: ../lib/query.c:673 #, c-format msgid "record %d could not be read\n" msgstr "" -- 2.7.4