- fix: use pgp5 rather than pgp-2.6.3 if both are in %_pgpbin (#4564).
- match "de" when locale is specified as "de_DE.ISO-8859-1@Munich".
- add versions to obsoletes.
+ - add %_install_langs to configure languages to be installed.
3.0.1 -> 3.0.2
- eliminate armv4 entries from rpmrc (Andrew E. Mileski).
char ** netsharedPaths = NULL;
const char ** fileLangs;
const char ** languages;
- const char * oneLang[2] = { NULL, NULL };
- int freeLanguages = 0;
+ const char *s;
if (!noDocs)
noDocs = rpmExpandNumeric("%{_excludedocs}");
NULL))
fileLangs = NULL;
- if ((oneLang[0] = getenv("LINGUAS"))) {
- languages = (const char **)
- splitString(oneLang[0], strlen(oneLang[0]), ':');
- freeLanguages = 1;
- } else if ((oneLang[0] = getenv("LANG"))) {
- languages = oneLang;
- } else {
- oneLang[0] = "en";
- languages = oneLang;
+ s = rpmExpand("%{_install_langs}", NULL);
+ if (!(s && *s != '%')) {
+ if (s) xfree(s);
+ s = NULL;
+ }
+ if (s) {
+ languages = (const char **) splitString(s, strlen(s), ':');
+ xfree(s);
+ /* XXX LINGUAS/LANG is used by the installer so leave alone for now */
+ } else if ((s = getenv("LINGUAS")) || (s = getenv("LANG")) || (s = "en")) {
+ languages = (const char **) splitString(s, strlen(s), ':');
}
for (i = 0; i < fi->fc; i++) {
if (fileLangs && languages && *fileLangs[i]) {
const char **lang, *l, *le;
for (lang = languages; *lang; lang++) {
+ if (!strcmp(*lang, "all"))
+ break;
for (l = fileLangs[i]; *l; l = le) {
for (le = l; *le && *le != '|'; le++)
;
if ((le-l) > 0 && !strncmp(*lang, l, (le-l)))
- goto lingo;
+ break;
if (*le == '|') le++; /* skip over | */
}
+ if (*l) break;
}
- lingo:
if (*lang == NULL) {
fi->actions[i] = FA_SKIPNSTATE;
continue;
if (netsharedPaths) freeSplitString(netsharedPaths);
if (fileLangs) free(fileLangs);
- if (freeLanguages) freeSplitString((char **)languages);
+ if (languages) freeSplitString((char **)languages);
}
#define NOTIFY(_x) if (notify) notify _x
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-08-21 19:05-0400\n"
+"POT-Creation-Date: 1999-08-21 23:33-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"