Feature #918 » 0013-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;
|
||
}
|
||
translations/core/POTFILES.in | ||
---|---|---|
tools/fcmp/mpgui_gtk4.c
|
||
tools/fcmp/mpgui_qt.cpp
|
||
tools/fcmp/mpgui_qt_worker.cpp
|
||
tools/ruleutil/comments.c
|
||
tools/ruleutil/rulesave.c
|
||
server/actiontools.c
|
||
server/aiiface.c
|
- « Previous
- 1
- 2
- Next »