[Goodies-commits] r4652 - xfce4-dict/trunk/lib
Enrico Troeger
enrico at xfce.org
Tue Apr 22 21:10:58 CEST 2008
Author: enrico
Date: 2008-04-22 19:10:58 +0000 (Tue, 22 Apr 2008)
New Revision: 4652
Modified:
xfce4-dict/trunk/lib/aspell.c
xfce4-dict/trunk/lib/gui.c
xfce4-dict/trunk/lib/prefs.c
Log:
Fix some more strings.
Add missing include directive for config.h in some files.
Modified: xfce4-dict/trunk/lib/aspell.c
===================================================================
--- xfce4-dict/trunk/lib/aspell.c 2008-04-22 19:10:54 UTC (rev 4651)
+++ xfce4-dict/trunk/lib/aspell.c 2008-04-22 19:10:58 UTC (rev 4652)
@@ -22,6 +22,10 @@
* with a given search term and reads it output. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -68,10 +72,11 @@
tmp = strchr(msg + 2, ' ') + 1;
dict_gui_status_add(dd, _("%d suggestion(s) found."), atoi(tmp));
- tmp = g_strdup_printf(_("Suggestions for \"%s\":\n"), dd->searched_word);
+ tmp = g_strdup_printf(_("Suggestions for \"%s\":"), dd->searched_word);
gtk_text_buffer_insert_with_tags(
dd->main_textbuffer, &dd->textiter, tmp, -1, dd->main_boldtag, NULL);
g_free(tmp);
+ gtk_text_buffer_insert(dd->main_textbuffer, &dd->textiter, "\n", 1);
tmp = strchr(msg, ':') + 2;
gtk_text_buffer_insert(dd->main_textbuffer, &dd->textiter, g_strchomp(tmp), -1);
@@ -109,8 +114,8 @@
while (g_io_channel_read_line(ioc, &msg, NULL, NULL, NULL) && msg != NULL)
{
/* translation hint:
- * Error while executing <spell command, e.g. "aspell">: <error message> */
- dict_gui_status_add(dd, _("Error while executing %s: %s"),
+ * Error while executing <spell command, e.g. "aspell"> (<error message>) */
+ dict_gui_status_add(dd, _("Error while executing \"%s\" (%s)."),
dd->spell_bin, g_strstrip(msg));
g_free(msg);
}
@@ -146,7 +151,7 @@
if (! NZV(dd->spell_bin))
{
- dict_gui_status_add(dd, _("Please set an appropriate aspell command."));
+ dict_gui_status_add(dd, _("Please set the aspell command in the preferences dialog."));
return;
}
Modified: xfce4-dict/trunk/lib/gui.c
===================================================================
--- xfce4-dict/trunk/lib/gui.c 2008-04-22 19:10:54 UTC (rev 4651)
+++ xfce4-dict/trunk/lib/gui.c 2008-04-22 19:10:58 UTC (rev 4652)
@@ -186,7 +186,7 @@
GtkWidget *method_chooser, *radio, *label;
dd->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title(GTK_WINDOW(dd->window), "Xfce4 Dictionary");
+ gtk_window_set_title(GTK_WINDOW(dd->window), _("Xfce4 Dictionary"));
gtk_window_set_default_size(GTK_WINDOW(dd->window), 500, 300);
icon = gdk_pixbuf_new_from_inline(-1, dict_icon_data, FALSE, NULL);
Modified: xfce4-dict/trunk/lib/prefs.c
===================================================================
--- xfce4-dict/trunk/lib/prefs.c 2008-04-22 19:10:54 UTC (rev 4651)
+++ xfce4-dict/trunk/lib/prefs.c 2008-04-22 19:10:58 UTC (rev 4652)
@@ -21,6 +21,10 @@
/* Preferences dialog and helper functions. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <gtk/gtk.h>
#include <libxfcegui4/libxfcegui4.h>
More information about the Goodies-commits
mailing list