[planner] Add missing #include <config.h> and mark a couple strings for translation.
- From: Kjartan Maraas <kmaraas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner] Add missing #include <config.h> and mark a couple strings for translation.
- Date: Wed, 30 Mar 2011 08:09:19 +0000 (UTC)
commit 4aa9f20ad717c59fa53d45ae8d781e6a175b7e2a
Author: Kjartan Maraas <kmaraas gnome org>
Date: Mon Mar 28 10:38:18 2011 +0200
Add missing #include <config.h> and mark a couple strings for translation.
eds-backend/planner-source/planner-source.c | 5 +++++
src/planner-util-win32.c | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/eds-backend/planner-source/planner-source.c b/eds-backend/planner-source/planner-source.c
index 3afea65..fa5d113 100644
--- a/eds-backend/planner-source/planner-source.c
+++ b/eds-backend/planner-source/planner-source.c
@@ -17,6 +17,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <gconf/gconf-client.h>
#include <glib.h>
#include <glib/gi18n.h>
diff --git a/src/planner-util-win32.c b/src/planner-util-win32.c
index 14ee835..83e9e19 100644
--- a/src/planner-util-win32.c
+++ b/src/planner-util-win32.c
@@ -18,6 +18,10 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <windows.h>
#include <shellapi.h>
#include <stdio.h>
@@ -38,7 +42,7 @@ planner_util_show_url (GtkWindow *parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- "Unable to open '%s'", url);
+ _("Unable to open '%s'"), url);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
@@ -65,7 +69,7 @@ planner_util_show_help (GtkWindow *parent)
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- "Unable to open help file");
+ _("Unable to open help file"));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]