Commit 5884eb52 authored by Cosimo Cecchi's avatar Cosimo Cecchi

libnautilus-extension: remove cusetom i18n header

Just use glib-i18n-lib.h.
parent 31fa9742
...@@ -39,7 +39,6 @@ libnautilus_extension_include_HEADERS= \ ...@@ -39,7 +39,6 @@ libnautilus_extension_include_HEADERS= \
libnautilus_extension_la_SOURCES= \ libnautilus_extension_la_SOURCES= \
nautilus-column-provider.c \ nautilus-column-provider.c \
nautilus-column.c \ nautilus-column.c \
nautilus-extension-i18n.h \
nautilus-extension-types.c \ nautilus-extension-types.c \
nautilus-extension-private.h \ nautilus-extension-private.h \
nautilus-file-info.c \ nautilus-file-info.c \
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
*/ */
#include <config.h> #include <config.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "nautilus-column.h" #include "nautilus-column.h"
#include "nautilus-extension-i18n.h"
enum { enum {
PROP_0, PROP_0,
......
#ifndef NAUTILUS_EXTENSION_I18N_H
#define NAUTILUS_EXTENSION_I18N_H
#include "config.h"
#ifdef ENABLE_NLS
#include<libintl.h>
#define _(String) dgettext(GETTEXT_PACKAGE,String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
#define N_(String) (String)
#endif
#else /* NLS is disabled */
#define _(String) (String)
#define N_(String) (String)
#define textdomain(String) (String)
#define gettext(String) (String)
#define dgettext(Domain,String) (String)
#define dcgettext(Domain,String,Type) (String)
#define bindtextdomain(Domain,Directory) (Domain)
#endif
#endif
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
*/ */
#include <config.h> #include <config.h>
#include <glib/gi18n-lib.h>
#include "nautilus-menu.h" #include "nautilus-menu.h"
#include "nautilus-extension-i18n.h"
enum { enum {
ACTIVATE, ACTIVATE,
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <config.h> #include <config.h>
#include "nautilus-menu.h" #include "nautilus-menu.h"
#include "nautilus-extension-i18n.h"
#include <glib.h> #include <glib.h>
#include <glib/gi18n-lib.h>
#define NAUTILUS_MENU_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NAUTILUS_TYPE_MENU, NautilusMenuPrivate)) #define NAUTILUS_MENU_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NAUTILUS_TYPE_MENU, NautilusMenuPrivate))
G_DEFINE_TYPE (NautilusMenu, nautilus_menu, G_TYPE_OBJECT); G_DEFINE_TYPE (NautilusMenu, nautilus_menu, G_TYPE_OBJECT);
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <config.h> #include <config.h>
#include "nautilus-property-page.h" #include "nautilus-property-page.h"
#include "nautilus-extension-i18n.h" #include <glib/gi18n-lib.h>
enum { enum {
PROP_0, PROP_0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment