lxcError: mark a string and add to the list of nearly-checked functions

* Makefile.maint (msg_gen_function): Add, but commented-out.
* src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation.
This commit is contained in:
Jim Meyering 2008-03-27 14:02:57 +00:00
parent 76a7098407
commit c5adab5270
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
Thu Mar 27 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
lxcError: mark a string and add to the list of nearly-checked functions
* Makefile.maint (msg_gen_function): Add, but commented-out.
* src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation.
testError: mark most string arguments for translation
* Makefile.maint (msg_gen_function): Add testError
* src/test.c (testDomainSave, testDomainRestore): Mark strings.

View File

@ -323,6 +323,7 @@ msg_gen_function += openvzLog
# msg_gen_function += error
# msg_gen_function += virXenError
# msg_gen_function += testError
# msg_gen_function += lxcError
func_or := $(shell printf '$(msg_gen_function)'|tr -s '[[:space:]]' '|')
func_re := ($(func_or))

View File

@ -398,7 +398,7 @@ static lxc_vm_def_t * lxcParseXML(virConnectPtr conn, xmlDocPtr docPtr)
if ((xmlProp = xmlGetProp(rootNodePtr, BAD_CAST "id"))) {
if (0 > virStrToLong_i((char*)xmlProp, NULL, 10, &(containerDef->id))) {
lxcError(conn, NULL, VIR_ERR_INTERNAL_ERROR,
"invalid domain id");
_("invalid domain id"));
goto error;
}
} else {