Feature #918 » 0055-Mark-ruleset-comments-data-loading-error-messages-fo.patch
| tools/ruleutil/comments.c | ||
|---|---|---|
|
#endif
|
||
|
/* utility */
|
||
|
#include "fcintl.h"
|
||
|
#include "mem.h"
|
||
|
#include "registry.h"
|
||
|
#include "section_file.h"
|
||
| ... | ... | |
|
fullpath = fileinfoname(get_data_dirs(), "ruledit/" COMMENTS_FILE_NAME);
|
||
|
if (fullpath == NULL) {
|
||
|
log_error("Can't find the comments file");
|
||
|
log_error(_("Can't find the comments file"));
|
||
|
return FALSE;
|
||
|
}
|
||
|
comment_file = secfile_load(fullpath, FALSE);
|
||
|
if (comment_file == NULL) {
|
||
|
log_error("Can't parse the comments file");
|
||
|
log_error(_("Can't parse the comments file"));
|
||
|
return FALSE;
|
||
|
}
|
||
| ... | ... | |
|
if ((comment = secfile_lookup_str(comment_file, comment_path))) { \
|
||
|
target = fc_strdup(comment); \
|
||
|
} else { \
|
||
|
log_error("Can't read %s from comments file", comment_path); \
|
||
|
log_error(_("Can't read %s from comments file"), comment_path); \
|
||
|
return FALSE; \
|
||
|
} \
|
||
|
}
|
||
| ... | ... | |
|
const char *name)
|
||
|
{
|
||
|
if (comment == NULL) {
|
||
|
log_error("Comment for %s missing.", name);
|
||
|
log_error(_("Comment for %s missing."), name);
|
||
|
return;
|
||
|
}
|
||
| ... | ... | |
|
const char *comment, const char *section)
|
||
|
{
|
||
|
if (comment == NULL) {
|
||
|
log_error("Comment to section %s missing.", section);
|
||
|
log_error(_("Comment to section %s missing."), section);
|
||
|
return;
|
||
|
}
|
||
| translations/core/POTFILES.in | ||
|---|---|---|
|
tools/manual/manual_terrain.c
|
||
|
tools/manual/manual_uclass.c
|
||
|
tools/manual/manual_units.c
|
||
|
tools/ruleutil/comments.c
|
||
|
tools/ruleutil/rulesave.c
|
||
|
server/actiontools.c
|
||
|
server/aiiface.c
|
||