add gettext to E_CONFIGURE_OPTION_ADD usage, hassling by garik

SVN revision: 82304
This commit is contained in:
Mike Blumenkrantz 2013-01-06 15:12:31 +00:00
parent 3de268ce0b
commit 326a7c4bde
6 changed files with 53 additions and 53 deletions

View File

@ -112,20 +112,20 @@ e_modapi_init(E_Module *m)
{
E_Configure_Option *co;
E_CONFIGURE_OPTION_ADD(co, CUSTOM, engine, mod->conf, "Composite settings panel", _("composite"), _("border"));
E_CONFIGURE_OPTION_ADD(co, CUSTOM, engine, mod->conf, _("Composite settings panel"), _("composite"), _("border"));
co->info = eina_stringshare_add("appearance/comp");
E_CONFIGURE_OPTION_ICON(co, buf);
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, vsync, mod->conf, "Tear-free compositing (VSYNC)", _("composite"), _("border"));
E_CONFIGURE_OPTION_ADD(co, BOOL, vsync, mod->conf, _("Tear-free compositing (VSYNC)"), _("composite"), _("border"));
co->requires_restart = 1;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, smooth_windows, mod->conf, "Smooth scaling of composited window content", _("composite"), _("border"));
E_CONFIGURE_OPTION_ADD(co, BOOL, smooth_windows, mod->conf, _("Smooth scaling of composited window content"), _("composite"), _("border"));
co->funcs[1].none = co->funcs[0].none = e_mod_comp_shadow_set;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, nocomp_fs, mod->conf, "Don't composite fullscreen windows", _("composite"), _("border"));
E_CONFIGURE_OPTION_ADD(co, BOOL, nocomp_fs, mod->conf, _("Don't composite fullscreen windows"), _("composite"), _("border"));
co->funcs[1].none = co->funcs[0].none = e_mod_comp_shadow_set;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, ENUM, engine, mod->conf, "Compositing engine", _("composite"), _("border"));
E_CONFIGURE_OPTION_ADD(co, ENUM, engine, mod->conf, _("Compositing engine"), _("composite"), _("border"));
co->info_cb = _e_mod_engine_info_cb;
co->requires_restart = 1;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));

View File

@ -64,7 +64,7 @@ e_modapi_init(E_Module *m)
e_configure_registry_item_add
("launcher/run_everything", 40, _("Everything Configuration"),
NULL, module_icon, evry_config_dialog);
E_CONFIGURE_OPTION_ADD(cfg_opt, CUSTOM, collections, evry_conf, "Everything launcher settings", _("exec"), _("everything"));
E_CONFIGURE_OPTION_ADD(cfg_opt, CUSTOM, collections, evry_conf, _("Everything launcher settings"), _("exec"), _("everything"));
E_CONFIGURE_OPTION_ICON(cfg_opt, module_icon);
cfg_opt->info = eina_stringshare_add("launcher/run_everything");
e_configure_option_category_tag_add(_("everything"), _("everything"));

View File

@ -385,85 +385,85 @@ _e_mod_fileman_config_load(void)
{
E_Configure_Option *co;
E_CONFIGURE_OPTION_ADD(co, ENUM, view.mode, fileman_config, "Default view mode", _("files"));
E_CONFIGURE_OPTION_ADD(co, ENUM, view.mode, fileman_config, _("Default view mode"), _("files"));
co->info_cb = _cfg_view_mode_info_cb;
E_CONFIGURE_OPTION_ICON(co, "system-file-manager");
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, DOUBLE_INT, icon.icon.w, fileman_config, "Icon size", _("files"), _("image"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 16, 256, 1, "%1.0f pixels");
E_CONFIGURE_OPTION_ADD(co, DOUBLE_INT, icon.icon.w, fileman_config, _("Icon size"), _("files"), _("image"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 16, 256, 1, _("%1.0f pixels"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, icon.extension.show, fileman_config, "Show file extensions", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, icon.extension.show, fileman_config, _("Show file extensions"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_full_path, fileman_config, "Show full path in filemanager window titles", _("files"), _("border"));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_full_path, fileman_config, _("Show full path in filemanager window titles"), _("files"), _("border"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_toolbar, fileman_config, "Show path toolbar in filemanager windows", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_toolbar, fileman_config, _("Show path toolbar in filemanager windows"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, ENUM, view.toolbar_orient, fileman_config, "Filemanager path toolbar position", _("files"));
E_CONFIGURE_OPTION_ADD(co, ENUM, view.toolbar_orient, fileman_config, _("Filemanager path toolbar position"), _("files"));
co->info_cb = _cfg_toolbar_orient_cb_info_cb;
E_CONFIGURE_OPTION_ICON(co, "system-file-manager");
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_sidebar, fileman_config, "Show favorites sidebar in filemanager windows", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.show_sidebar, fileman_config, _("Show favorites sidebar in filemanager windows"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.no_case, fileman_config, "Ignore letter case when sorting files", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.no_case, fileman_config, _("Ignore letter case when sorting files"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.extension, fileman_config, "Group files by extension", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.extension, fileman_config, _("Group files by extension"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.mtime, fileman_config, "Sort files by modification time", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.mtime, fileman_config, _("Sort files by modification time"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.size, fileman_config, "Sort files by size", _("files"), _("size"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.size, fileman_config, _("Sort files by size"), _("files"), _("size"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
/* FIXME: exclusive */
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.dirs.first, fileman_config, "Sort directories first", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.dirs.first, fileman_config, _("Sort directories first"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.dirs.last, fileman_config, "Sort directories last", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, list.sort.dirs.last, fileman_config, _("Sort directories last"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.open_dirs_in_place, fileman_config, "Open directories in place", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.open_dirs_in_place, fileman_config, _("Open directories in place"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.single_click, fileman_config, "Use single click to open files", _("files"));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.single_click, fileman_config, _("Use single click to open files"), _("files"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, selection.windows_modifiers, fileman_config, "Use alternate (Mac-style) selection modifiers", _("files"), _("key"));
E_CONFIGURE_OPTION_ADD(co, BOOL, selection.windows_modifiers, fileman_config, _("Use alternate (Mac-style) selection modifiers"), _("files"), _("key"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, view.desktop_navigation, fileman_config, "Allow navigation on desktop", _("files"));
E_CONFIGURE_OPTION_HELP(co, "Normally, icons on the desktop come from $XDG_HOME_DIR/Desktop[-$SCREEN]. "
E_CONFIGURE_OPTION_ADD(co, BOOL, view.desktop_navigation, fileman_config, _("Allow navigation on desktop"), _("files"));
E_CONFIGURE_OPTION_HELP(co, _("Normally, icons on the desktop come from $XDG_HOME_DIR/Desktop[-$SCREEN]. "
"With this option enabled, the desktop can freely change directories using the Navigate "
"menu or type buffer.");
"menu or type buffer."));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, DOUBLE_UINT, icon.max_thumb_size, fileman_config, "Maximum file size for which thumbnails should be generated", _("files"), _("size"), _("image"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 0, 512, 1, "%1.0f MiB");
E_CONFIGURE_OPTION_ADD(co, DOUBLE_UINT, icon.max_thumb_size, fileman_config, _("Maximum file size for which thumbnails should be generated"), _("files"), _("size"), _("image"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 0, 512, 1, _("%1.0f MiB"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, DOUBLE, view.spring_delay, fileman_config, "Spring folder delay", _("files"), _("delay"));
E_CONFIGURE_OPTION_HELP(co, "A \"spring folder\" is the action that occurs when dragging a file onto a folder: "
"the folder will \"spring\" open and create a new window to continue the drag operation in.");
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 1, 10, 1, "%1.0f seconds");
E_CONFIGURE_OPTION_ADD(co, DOUBLE, view.spring_delay, fileman_config, _("Spring folder delay"), _("files"), _("delay"));
E_CONFIGURE_OPTION_HELP(co, _("A \"spring folder\" is the action that occurs when dragging a file onto a folder: "
"the folder will \"spring\" open and create a new window to continue the drag operation in."));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 1, 10, 1, _("%1.0f seconds"));
co->funcs[1].none = co->funcs[0].none = e_fwin_reload_all;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, CUSTOM, paths, fileman_config, "File icons", _("files"), _("image"));
E_CONFIGURE_OPTION_ADD(co, CUSTOM, paths, fileman_config, _("File icons"), _("files"), _("image"));
co->info = eina_stringshare_add("fileman/file_icons");
E_CONFIGURE_OPTION_ICON(co, "preferences-file-icons");
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));

View File

@ -237,18 +237,18 @@ e_modapi_init(E_Module *m)
notification_mod = m;
E_CONFIGURE_OPTION_ADD(co, BOOL, show_low, notification_cfg, "Display low urgency notifications", _("notification"));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_low, notification_cfg, _("Display low urgency notifications"), _("notification"));
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_normal, notification_cfg, "Display normal urgency notifications", _("notification"));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_normal, notification_cfg, _("Display normal urgency notifications"), _("notification"));
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_critical, notification_cfg, "Display high urgency notifications", _("notification"));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_critical, notification_cfg, _("Display high urgency notifications"), _("notification"));
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, force_timeout, notification_cfg, "Force a specified timeout on all notifications", _("notification"), _("delay"));
E_CONFIGURE_OPTION_ADD(co, BOOL, force_timeout, notification_cfg, _("Force a specified timeout on all notifications"), _("notification"), _("delay"));
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, DOUBLE, timeout, notification_cfg, "Timeout to force on notifications", _("notification"), _("delay"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 0.0, 15.0, 0.1, "%.1f seconds");
E_CONFIGURE_OPTION_ADD(co, DOUBLE, timeout, notification_cfg, _("Timeout to force on notifications"), _("notification"), _("delay"));
E_CONFIGURE_OPTION_MINMAX_STEP_FMT(co, 0.0, 15.0, 0.1, _("%.1f seconds"));
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, ENUM, corner, notification_cfg, "Corner in which to display notifications", _("notification"), _("screen"));
E_CONFIGURE_OPTION_ADD(co, ENUM, corner, notification_cfg, _("Corner in which to display notifications"), _("notification"), _("screen"));
co->info_cb = _notification_corner_info_cb;
E_CONFIGURE_OPTION_ICON(co, buf);
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));

View File

@ -64,22 +64,22 @@ e_modapi_init(E_Module *m)
return NULL;
}
E_CONFIGURE_OPTION_ADD(co, CUSTOM, entries, qa_config, "Quickaccess settings panel", _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_ADD(co, CUSTOM, entries, qa_config, _("Quickaccess settings panel"), _("quickaccess"), _("border"));
co->info = eina_stringshare_add("launcher/quickaccess");
E_CONFIGURE_OPTION_ICON(co, buf);
qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, hide_when_behind, qa_config, "Hide windows on activate instead of raising", _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, "By default, activating a Quickaccess binding when the window is behind other windows will raise the window. "
"This option changes that behavior to hide the window instead.");
E_CONFIGURE_OPTION_ADD(co, BOOL, hide_when_behind, qa_config, _("Hide windows on activate instead of raising"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("By default, activating a Quickaccess binding when the window is behind other windows will raise the window. "
"This option changes that behavior to hide the window instead."));
qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, autohide, qa_config, "Hide windows when focus is lost", _("quickaccess"), _("border"), _("focus"));
E_CONFIGURE_OPTION_HELP(co, "This option causes Quickaccess windows to automatically hide when they lose focus");
E_CONFIGURE_OPTION_ADD(co, BOOL, autohide, qa_config, _("Hide windows when focus is lost"), _("quickaccess"), _("border"), _("focus"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to automatically hide when they lose focus"));
qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_taskbar, qa_config, "Skip taskbar", _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, "This option causes Quickaccess windows to not show up in taskbars");
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_taskbar, qa_config, _("Skip taskbar"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to not show up in taskbars"));
qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_pager, qa_config, "Skip pager", _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, "This option causes Quickaccess windows to not show up in pagers");
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_pager, qa_config, _("Skip pager"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to not show up in pagers"));
qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
e_configure_option_category_tag_add(_("windows"), _("quickaccess"));

View File

@ -3914,13 +3914,13 @@ e_modapi_init(E_Module *m)
co->funcs[0].one = co->funcs[0].none = e_tiling_update_conf;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, tile_dialogs, tiling_g.config, "Tile dialog windows", _("dialog"), _("tiling"), _("border"), _("placement"));
E_CONFIGURE_OPTION_ADD(co, BOOL, tile_dialogs, tiling_g.config, _("Tile dialog windows"), _("dialog"), _("tiling"), _("border"), _("placement"));
co->funcs[0].one = co->funcs[0].none = e_tiling_update_conf;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_titles, tiling_g.config, "Show window titles when tiling", _("tiling"), _("border"));
E_CONFIGURE_OPTION_ADD(co, BOOL, show_titles, tiling_g.config, _("Show window titles when tiling"), _("tiling"), _("border"));
co->funcs[0].one = co->funcs[0].none = e_tiling_update_conf;
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, STR, keyhints, tiling_g.config, "Tiling key hints", _("key"), _("tiling"));
E_CONFIGURE_OPTION_ADD(co, STR, keyhints, tiling_g.config, _("Tiling key hints"), _("key"), _("tiling"));
co->funcs[0].one = co->funcs[0].none = e_tiling_update_conf;
E_CONFIGURE_OPTION_ICON(co, _G.edj_path);
cfg_opts = eina_inlist_append(cfg_opts, EINA_INLIST_GET(co));