Partially revert r81480, which broke everyting-places module.

It turned out that evry_api.h depends on properly defined _ symbol.
Who knew?

SVN revision: 81651
This commit is contained in:
Igor Murzov 2012-12-22 23:44:20 +00:00 committed by Tom Hacohen
parent bbfbe868db
commit 796b364acc
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=D_ --keyword=N_ \
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ \
--keyword=EVRY_PLUGIN_BASE:1 --keyword=EVRY_ACTION_NEW:1 \
--from-code=UTF-8 --foreign-user

View File

@ -135,10 +135,10 @@ _begin(Evry_Plugin *plugin, const Evry_Item *item)
EVRY_PLUGIN_INSTANCE(p, plugin);
_item_add(p, D_("Home"), e_user_homedir_get(), _mime_dir, NULL);
_item_add(p, _("Home"), e_user_homedir_get(), _mime_dir, NULL);
e_user_dir_concat_static(path, "backgrounds");
_item_add(p, D_("Wallpaper"), path, _mime_dir, NULL);
_item_add(p, _("Wallpaper"), path, _mime_dir, NULL);
_gtk_bookmarks_add(p);

View File

@ -3,11 +3,11 @@
#ifdef ENABLE_NLS
# include <libintl.h>
# define D_(string) dgettext(PACKAGE, string)
# define _(string) dgettext(PACKAGE, string)
#else
# define bindtextdomain(domain,dir)
# define bind_textdomain_codeset(domain,codeset)
# define D_(string) (string)
# define _(string) (string)
#endif
#define N_(str) (str)