datum = tfind(&search_node, &encoding_mapping, node_compare);
free(buffer);
if (datum == NULL) {
- gedcom_error(_("No encoding found for '%s'"), gedcom_n);
+ gedcom_error(_("No encoding defined for '%s'"), gedcom_n);
return NULL;
}
else {
GCONV_SEARCH_PATH, gconv_path, PKGDATADIR);
}
if (putenv(new_gconv_path) != 0) {
- gedcom_warning(_("Failed updating environment variable %s"),
- GCONV_SEARCH_PATH);
+ gedcom_warning(_("Failed updating conversion module path"));
}
}
ENCODING_CONF_FILE);
}
else {
+ line_no = 1;
while (fgets(buffer, sizeof(buffer), in) != NULL) {
if (buffer[strlen(buffer) - 1] != '\n') {
gedcom_error(_("Line too long in encoding configuration file '%s'"),
{ if (line_len != (size_t)-1) { \
line_len += strlen(yytext); \
if (line_len > MAXGEDCLINELEN * encoding_width) { \
- gedcom_error(_("Line too long, max %d characters"), \
+ gedcom_error(_("Line too long, max %d characters allowed"), \
MAXGEDCLINELEN); \
line_len = (size_t)-1; \
return BADTOKEN; \
#define ACTION_0_DIGITS \
- { gedcom_error (_("Level number with leading zero")); \
+ { gedcom_error (_("Level number with leading zero not allowed")); \
return BADTOKEN; \
}
#define ACTION_ALPHANUM \
{ if (strlen(yytext) > MAXGEDCTAGLEN * encoding_width) { \
- gedcom_error(_("Tag '%s' too long, max %d characters"), \
+ gedcom_error(_("Tag '%s' too long, max %d characters allowed"), \
yytext, MAXGEDCTAGLEN); \
return BADTOKEN; \
} \
#define ACTION_POINTER \
{ CHECK_LINE_LEN; \
if (strlen(yytext) > MAXGEDCPTRLEN * encoding_width) { \
- gedcom_error(_("Pointer '%s' too long, max %d characters"), \
+ gedcom_error(_("Pointer '%s' too long, max %d characters allowed"), \
yytext, MAXGEDCPTRLEN); \
return BADTOKEN; \
} \