forked from github/server
print error message when missing parameter translation.
This commit is contained in:
parent
9c6a72f55e
commit
60497da87b
2 changed files with 4 additions and 2 deletions
|
@ -359,7 +359,6 @@ static int parse_calendar(xmlDocPtr doc)
|
||||||
xmlXPathObjectPtr xpathCalendars;
|
xmlXPathObjectPtr xpathCalendars;
|
||||||
xmlNodeSetPtr nsetCalendars;
|
xmlNodeSetPtr nsetCalendars;
|
||||||
|
|
||||||
/* reading eressea/buildings/building */
|
|
||||||
xpathCalendars = xmlXPathEvalExpression(BAD_CAST "/eressea/calendar", xpath);
|
xpathCalendars = xmlXPathEvalExpression(BAD_CAST "/eressea/calendar", xpath);
|
||||||
nsetCalendars = xpathCalendars->nodesetval;
|
nsetCalendars = xpathCalendars->nodesetval;
|
||||||
months_per_year = 0;
|
months_per_year = 0;
|
||||||
|
|
|
@ -300,6 +300,9 @@ void init_translations(const struct locale *lang, int ut, const char * (*string_
|
||||||
struct critbit_tree ** cb = (struct critbit_tree **)tokens;
|
struct critbit_tree ** cb = (struct critbit_tree **)tokens;
|
||||||
add_translation(cb, key, i);
|
add_translation(cb, key, i);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
log_error("no translation for %s in locale %s", s, lang->name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue