query = e_book_query_from_string(merge_evolution->priv->query);
if (!query) {
- g_warning (_("Couldn't construct query"));
+ g_warning ("Couldn't construct query");
return;
}
merge_evolution->priv->book = e_book_new_system_addressbook(&error);
if (!merge_evolution->priv->book) {
- g_warning (_("Couldn't open addressbook."));
+ g_warning ("Couldn't open addressbook.");
if (error)
{
g_warning ("e_book_new_system_addressbook: %s", error->message);
}
if (!e_book_open(merge_evolution->priv->book, FALSE, &error)) {
- g_warning (_("Couldn't open addressbook."));
+ g_warning ("Couldn't open addressbook.");
if (error)
{
g_warning ("e_book_open: %s", error->message);
/* fetch the list of fields supported by this address book */
status = e_book_get_supported_fields(merge_evolution->priv->book, &fields, &error);
if (status == FALSE) {
- g_warning (_("Couldn't list available fields."));
+ g_warning ("Couldn't list available fields.");
if (error)
{
g_warning ("e_book_get_supported_fields: %s", error->message);
&merge_evolution->priv->contacts,
&error);
if (status == FALSE) {
- g_warning (_("Couldn't get contacts."));
+ g_warning ("Couldn't get contacts.");
if (error)
{
g_warning ("e_book_get_contacts: %s", error->message);
doc = xmlReadFile (filename, NULL, XML_PARSE_HUGE);
if (!doc) {
- g_message (_("xmlParseFile error"));
+ g_message ("xmlParseFile error");
*status = XML_LABEL_ERROR_OPEN_PARSE;
return NULL;
}
doc = xmlReadDoc ((xmlChar *) buffer, NULL, NULL, XML_PARSE_HUGE);
if (!doc) {
- g_message (_("xmlParseFile error"));
+ g_message ("xmlParseFile error");
*status = XML_LABEL_ERROR_OPEN_PARSE;
return NULL;
}
root = xmlDocGetRootElement (doc);
if (!root || !root->name) {
- g_message (_("No document root"));
+ g_message ("No document root");
*status = XML_LABEL_ERROR_OPEN_PARSE;
return NULL;
}
/* Try compatability mode 0.1 */
if (xmlSearchNsByHref (doc, root, (xmlChar *)COMPAT01_NAME_SPACE))
{
- g_message (_("Importing from glabels 0.1 format"));
+ g_message ("Importing from glabels 0.1 format");
g_message ("TODO");
label = NULL; /* TODO */
return label;
/* Try compatability mode 0.4 */
if (xmlSearchNsByHref (doc, root, (xmlChar *)COMPAT04_NAME_SPACE))
{
- g_message (_("Importing from glabels 0.4 format"));
+ g_message ("Importing from glabels 0.4 format");
label = gl_xml_label_04_parse (root, status);
return label;
}
!xmlSearchNsByHref (doc, root, (xmlChar *)COMPAT22_NAME_SPACE) &&
!xmlSearchNsByHref (doc, root, (xmlChar *)LGL_XML_NAME_SPACE) )
{
- g_message (_("Unknown glabels Namespace -- Using %s"),
+ g_message ("Unknown glabels Namespace -- Using %s",
LGL_XML_NAME_SPACE);
}
*status = XML_LABEL_OK;
if (!lgl_xml_is_node (root, "Glabels-document")) {
- g_message (_("Bad root node = \"%s\""), root->name);
+ g_message ("Bad root node = \"%s\"", root->name);
*status = XML_LABEL_ERROR_OPEN_PARSE;
return NULL;
}
/* Handled in pass 1. */
} else {
if (!xmlNodeIsText (child_node)) {
- g_message (_("bad node in Document node = \"%s\""),
+ g_message ("bad node in Document node = \"%s\"",
child_node->name);
g_object_unref (label);
*status = XML_LABEL_ERROR_OPEN_PARSE;
xml_parse_object_barcode (child, label);
} else {
if (!xmlNodeIsText (child)) {
- g_message (_("bad node = \"%s\""), child->name);
+ g_message ("bad node = \"%s\"", child->name);
break;
}
}
xml_parse_file_node (child, label);
} else {
if (!xmlNodeIsText (child)) {
- g_message (_("bad node in Data node = \"%s\""),
+ g_message ("bad node in Data node = \"%s\"",
child->name);
}
}
}
else
{
- g_message (_("Unknown embedded file format: \"%s\""), format);
+ g_message ("Unknown embedded file format: \"%s\"", format);
}
filename = g_filename_from_utf8 (utf8_filename, -1, NULL, NULL, NULL);
if (!filename)
- g_message (_("Utf8 conversion error."));
+ g_message ("Utf8 conversion error.");
else {
xmlSetDocCompressMode (doc, gl_label_get_compression (label));
xml_ret = xmlSaveFormatFile (filename, doc, TRUE);
xmlFreeDoc (doc);
if (xml_ret == -1) {
- g_message (_("Problem saving xml file."));
+ g_message ("Problem saving xml file.");
*status = XML_LABEL_ERROR_SAVE_FILE;
} else {