Make some labels in Places modules translatable (patch from Igor Murzov)

SVN revision: 81480
This commit is contained in:
Massimo Maiurana 2012-12-20 19:47:10 +00:00 committed by Tom Hacohen
parent 9e8aa01db6
commit 9750dafbe3
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=_ --keyword=N_ \
XGETTEXT_OPTIONS = --keyword=D_ --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, N_("Home"), e_user_homedir_get(), _mime_dir, NULL);
_item_add(p, D_("Home"), e_user_homedir_get(), _mime_dir, NULL);
e_user_dir_concat_static(path, "backgrounds");
_item_add(p, N_("Wallpaper"), path, _mime_dir, NULL);
_item_add(p, D_("Wallpaper"), path, _mime_dir, NULL);
_gtk_bookmarks_add(p);

View File

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