Re: Translation of preferences contents
"Nickolay V. Shmyrev" <[email protected]>
| Newsgroups | gmane.editors.conglomerate.devel |
|---|---|
| Message-ID | <[email protected]> |
We have number of problems here
1. The file.xds.in translatable strings aren't placed in po files. It
should be done by intltool.
2. The cong-dispspec.c:1208 code takes the first available node, althow
it should select node with correct language.
> static void
> parse_metadata(CongDispspec *ds, xmlDocPtr doc, xmlNodePtr node)
> {
> xmlNodePtr xml_element;
> DS_DEBUG_MSG1("got metadata\n");
>
> for (xml_element = node->children; xml_element; xml_element=xml_element- if (0==strcmp(xml_element->name,"name")) {
> xmlChar* str = xmlNodeListGetString(doc, xml_element->xm if (str) {
> ds->name = g_strdup(str);
> }
> }
>
> if (0==strcmp(xml_element->name,"description")) {
> xmlChar* str = xmlNodeListGetString(doc, xml_element->xm if (str) {
> ds->desc = g_strdup(str);
> }
> }
> }
> }