Author: akv
Date: 2010-12-30 19:26:21 +0100 (Thu, 30 Dec 2010)
New Revision: 3752
Modified:
trunk/librawstudio/rs-lens-db-editor.c
Log:
Made errors in lensfun editor (update lensfun database) gettexted...
Modified: trunk/librawstudio/rs-lens-db-editor.c
===================================================================
--- trunk/librawstudio/rs-lens-db-editor.c 2010-12-30 17:26:27 UTC (rev
3751)
+++ trunk/librawstudio/rs-lens-db-editor.c 2010-12-30 18:26:21 UTC (rev
3752)
@@ -467,9 +467,9 @@
GtkWidget *dialog = NULL;
if (error)
- dialog = gui_dialog_make_from_text(GTK_STOCK_DIALOG_ERROR,
"Error updating lensfun database", error);
+ dialog = gui_dialog_make_from_text(GTK_STOCK_DIALOG_ERROR,
_("Error updating lensfun database"), error);
else
- dialog = gui_dialog_make_from_text(GTK_STOCK_DIALOG_INFO,
"Lensfun database updated", error);
+ dialog = gui_dialog_make_from_text(GTK_STOCK_DIALOG_INFO,
_("Lensfun database updated"), error);
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CLOSE,
GTK_RESPONSE_ACCEPT);
gtk_widget_show_all(dialog);
@@ -670,7 +670,7 @@
curl_easy_setopt(curl, CURLOPT_WRITEDATA, xml);
result = curl_easy_perform(curl);
if (result != 0)
- return g_strdup_printf("Could not fetch list of files from
%s.", baseurl);
+ return g_strdup_printf(_("Could not fetch list of files from
%s."), baseurl);
htmlDocPtr doc = htmlReadMemory(xml->str, xml->len, NULL, NULL, 0);
htmlNodePtr cur, child;
@@ -710,7 +710,7 @@
cur = cur->next;
if (result != 0)
- return g_strdup_printf("Could not fetch file from %s or
write it to %s.", url, file);
+ return g_strdup_printf(_("Could not fetch file from %s
or write it to %s."), url, file);
}
const gchar *datadir = g_build_filename(g_get_user_data_dir(),
"lensfun", NULL);
@@ -719,7 +719,7 @@
{
g_mkdir(datadir, 0700);
if (!g_file_test(datadir, G_FILE_TEST_IS_DIR))
- return g_strdup_printf("Could not create datadir for
lensfun - %s", datadir);
+ return g_strdup_printf(_("Could not create datadir for
lensfun - %s"), datadir);
}
GDir *dir = g_dir_open(target, 0, NULL);
@@ -735,7 +735,7 @@
GFile *destination =
g_file_new_for_path(g_build_filename(datadir, fn, NULL));
if (!g_file_copy(source, destination,
G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, NULL))
- return g_strdup_printf("Error copying file %s
to %s\n", g_file_get_parse_name(source), g_file_get_parse_name(destination));
+ return g_strdup_printf(_("Error copying file %s
to %s\n"), g_file_get_parse_name(source), g_file_get_parse_name(destination));
g_free(ffn);
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit