resname local-isiert

This commit is contained in:
Katja Zedel 2001-05-27 09:35:19 +00:00
parent f9a3a3a48c
commit e70aaad0f7
3 changed files with 14 additions and 5 deletions

View File

@ -1347,7 +1347,9 @@ manufacture(unit * u, const item_type * itype, int want)
if (c!=0)
strcat(ch++, ",");
n=cons->materials[c].number / cons->reqsize;
sprintf(ch, " %d %s", n?n:1, resname(cons->materials[c].type, cons->materials[c].number==1));
sprintf(ch, " %d %s", n?n:1,
locale_string(u->faction->locale,
resname(cons->materials[c].type, cons->materials[c].number!=1)));
ch = ch+strlen(ch);
}
strcat(ch,".");
@ -1635,7 +1637,9 @@ create_potion(unit * u, const potion_type * ptype, int want)
if (c!=0)
strcat(ch++, ",");
n=cons->materials[c].number / cons->reqsize;
sprintf(ch, " %d %s", n?n:1, resname(cons->materials[c].type, cons->materials[c].number==1));
sprintf(ch, " %d %s", n?n:1,
locale_string(u->faction->locale,
resname(cons->materials[c].type, cons->materials[c].number!=1)));
ch = ch+strlen(ch);
}
strcat(ch,".");

View File

@ -799,7 +799,10 @@ build_building(unit * u, const building_type * btype, int want)
int n;
if (c!=0) strcat(ch++, ",");
n = cons->materials[c].number / cons->reqsize;
sprintf(ch, " %d %s", n?n:1, resname(cons->materials[c].type, cons->materials[c].number==1));
sprintf(ch, " %d %s", n?n:1,
locale_string(u->faction->locale,
resname(cons->materials[c].type, cons->materials[c].number!=1))
);
ch = ch+strlen(ch);
}
strcat(ch,".");

View File

@ -1069,12 +1069,14 @@ cancast(unit * u, spell * sp, int level, int range, char * cmd)
if (b == false) {
scat(", ");
icat(itemanz);
scat(resname(res, (itemanz == 1 ? 0 : 1)));
scat(locale_string(u->faction->locale,
resname(res, (itemanz == 1 ? 0 : 1))));
} else {
sprintf(buf, "%s in %s: 'ZAUBER %s' Für diesen Zauber fehlen "
"noch %d ", unitname(u), regionid(u->region), sp->name,
itemanz);
scat(resname(res, (itemanz == 1 ? 0 : 1)));
scat(locale_string(u->faction->locale,
resname(res, (itemanz == 1 ? 0 : 1))));
b = false;
}
}