Make Everything's plugins and action names translatable v2
This is a more straight solution than r79723. SVN revision: 82291
This commit is contained in:
parent
e9080690ad
commit
6fa0965ad9
|
@ -8,9 +8,7 @@ subdir = po
|
||||||
top_builddir = ..
|
top_builddir = ..
|
||||||
|
|
||||||
# These options get passed to xgettext.
|
# These options get passed to xgettext.
|
||||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ \
|
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
|
||||||
--keyword=EVRY_PLUGIN_BASE:1 --keyword=EVRY_ACTION_NEW:1 \
|
|
||||||
--from-code=UTF-8 --foreign-user
|
|
||||||
|
|
||||||
# This is the copyright holder that gets inserted into the header of the
|
# This is the copyright holder that gets inserted into the header of the
|
||||||
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
|
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
|
||||||
|
|
|
@ -266,7 +266,7 @@ _plugins_init(const Evry_API *api)
|
||||||
_mime_dir = eina_stringshare_add("inode/directory");
|
_mime_dir = eina_stringshare_add("inode/directory");
|
||||||
_mime_mount = eina_stringshare_add("inode/mount-point");
|
_mime_mount = eina_stringshare_add("inode/mount-point");
|
||||||
|
|
||||||
p = EVRY_PLUGIN_BASE("Places", "drive-harddisk", EVRY_TYPE_FILE,
|
p = EVRY_PLUGIN_BASE(N_("Places"), "drive-harddisk", EVRY_TYPE_FILE,
|
||||||
_begin, _finish, _fetch);
|
_begin, _finish, _fetch);
|
||||||
_plugins = eina_list_append(_plugins, p);
|
_plugins = eina_list_append(_plugins, p);
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ _plugins_init(const Evry_API *api)
|
||||||
* p->config->min_query = 3; */
|
* p->config->min_query = 3; */
|
||||||
}
|
}
|
||||||
|
|
||||||
p = EVRY_PLUGIN_BASE("Places", "drive-harddisk", EVRY_TYPE_FILE,
|
p = EVRY_PLUGIN_BASE(N_("Places"), "drive-harddisk", EVRY_TYPE_FILE,
|
||||||
_begin, _finish, _fetch);
|
_begin, _finish, _fetch);
|
||||||
_plugins = eina_list_append(_plugins, p);
|
_plugins = eina_list_append(_plugins, p);
|
||||||
|
|
||||||
|
@ -286,12 +286,12 @@ _plugins_init(const Evry_API *api)
|
||||||
* p->config->min_query = 3; */
|
* p->config->min_query = 3; */
|
||||||
}
|
}
|
||||||
|
|
||||||
act_mount = EVRY_ACTION_NEW("Mount Drive", EVRY_TYPE_FILE, 0,
|
act_mount = EVRY_ACTION_NEW(N_("Mount Drive"), EVRY_TYPE_FILE, 0,
|
||||||
"drive-harddisk", _act_mount, _check_mount);
|
"drive-harddisk", _act_mount, _check_mount);
|
||||||
EVRY_ITEM_DATA_INT_SET(act_mount, ACT_MOUNT);
|
EVRY_ITEM_DATA_INT_SET(act_mount, ACT_MOUNT);
|
||||||
evry->action_register(act_mount, 1);
|
evry->action_register(act_mount, 1);
|
||||||
|
|
||||||
act_umount = EVRY_ACTION_NEW("Unmount Drive", EVRY_TYPE_FILE, 0,
|
act_umount = EVRY_ACTION_NEW(N_("Unmount Drive"), EVRY_TYPE_FILE, 0,
|
||||||
"hdd_unmount", _act_mount, _check_mount);
|
"hdd_unmount", _act_mount, _check_mount);
|
||||||
act_mount->remember_context = EINA_TRUE;
|
act_mount->remember_context = EINA_TRUE;
|
||||||
EVRY_ITEM_DATA_INT_SET(act_umount, ACT_UNMOUNT);
|
EVRY_ITEM_DATA_INT_SET(act_umount, ACT_UNMOUNT);
|
||||||
|
|
Loading…
Reference in New Issue