improve translation strings

mostly by remove extra dots
This commit is contained in:
Boris Faure 2020-09-15 19:40:37 +02:00
parent ee1f5c96e7
commit b7bf2cb8f2
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
8 changed files with 52 additions and 52 deletions

View File

@ -118,7 +118,7 @@ gravatar_init(void)
_gravatar_log_dom = eina_log_domain_register("gravatar", NULL); _gravatar_log_dom = eina_log_domain_register("gravatar", NULL);
if (_gravatar_log_dom < 0) if (_gravatar_log_dom < 0)
EINA_LOG_CRIT(_("Could not create logging domain '%s'."), "gravatar"); EINA_LOG_CRIT(_("Could not create logging domain '%s'"), "gravatar");
} }
void void

View File

@ -384,7 +384,7 @@ main_ipc_new(Ipc_Instance *inst)
inst->borderless, inst->override, inst->maximized); inst->borderless, inst->override, inst->maximized);
if (!wn) if (!wn)
{ {
CRITICAL(_("Could not create window.")); CRITICAL(_("Could not create window"));
ecore_app_args_set(pargc, (const char **)pargv); ecore_app_args_set(pargc, (const char **)pargv);
free(nargv); free(nargv);
return; return;
@ -403,7 +403,7 @@ main_ipc_new(Ipc_Instance *inst)
inst->title); inst->title);
if (!term) if (!term)
{ {
CRITICAL(_("Could not create terminal widget.")); CRITICAL(_("Could not create terminal widget"));
win_free(wn); win_free(wn);
ecore_app_args_set(pargc, (const char **)pargv); ecore_app_args_set(pargc, (const char **)pargv);
free(nargv); free(nargv);
@ -440,66 +440,66 @@ static Ecore_Getopt options = {
PACKAGE_VERSION, PACKAGE_VERSION,
gettext_noop("(C) 2012-%d Carsten Haitzler and others"), gettext_noop("(C) 2012-%d Carsten Haitzler and others"),
"BSD 2-Clause", "BSD 2-Clause",
gettext_noop("Terminal emulator written with Enlightenment Foundation Libraries."), gettext_noop("Terminal emulator written with Enlightenment Foundation Libraries"),
EINA_TRUE, EINA_TRUE,
{ {
ECORE_GETOPT_BREAK_STR ('e', "exec", ECORE_GETOPT_BREAK_STR ('e', "exec",
gettext_noop("Command to execute. Defaults to $SHELL (or passwd shell or /bin/sh)")), gettext_noop("Command to execute. Defaults to $SHELL (or passwd shell or /bin/sh)")),
ECORE_GETOPT_STORE_STR ('d', "current-directory", ECORE_GETOPT_STORE_STR ('d', "current-directory",
gettext_noop("Change to directory for execution of terminal command.")), gettext_noop("Change to directory for execution of terminal command")),
ECORE_GETOPT_STORE_STR ('t', "theme", ECORE_GETOPT_STORE_STR ('t', "theme",
gettext_noop("Use the named edje theme or path to theme file.")), gettext_noop("Use the named edje theme or path to theme file")),
ECORE_GETOPT_STORE_STR ('b', "background", ECORE_GETOPT_STORE_STR ('b', "background",
gettext_noop("Use the named file as a background wallpaper.")), gettext_noop("Use the named file as a background wallpaper")),
ECORE_GETOPT_STORE_STR ('g', "geometry", ECORE_GETOPT_STORE_STR ('g', "geometry",
gettext_noop("Terminal geometry to use (eg 80x24 or 80x24+50+20 etc.).")), gettext_noop("Terminal geometry to use (eg 80x24 or 80x24+50+20 etc.)")),
ECORE_GETOPT_STORE_STR ('n', "name", ECORE_GETOPT_STORE_STR ('n', "name",
gettext_noop("Set window name.")), gettext_noop("Set window name")),
ECORE_GETOPT_STORE_STR ('r', "role", ECORE_GETOPT_STORE_STR ('r', "role",
gettext_noop("Set window role.")), gettext_noop("Set window role")),
ECORE_GETOPT_STORE_STR ('T', "title", ECORE_GETOPT_STORE_STR ('T', "title",
gettext_noop("Set window title.")), gettext_noop("Set window title")),
ECORE_GETOPT_STORE_STR ('i', "icon-name", ECORE_GETOPT_STORE_STR ('i', "icon-name",
gettext_noop("Set icon name.")), gettext_noop("Set icon name")),
ECORE_GETOPT_STORE_STR ('f', "font", ECORE_GETOPT_STORE_STR ('f', "font",
gettext_noop("Set font (NAME/SIZE for scalable, NAME for bitmap.")), gettext_noop("Set font (NAME/SIZE for scalable, NAME for bitmap")),
ECORE_GETOPT_STORE_STR ('S', "split", ECORE_GETOPT_STORE_STR ('S', "split",
gettext_noop("Split the terminal window." gettext_noop("Split the terminal window."
" 'v' for vertical and 'h' for horizontal." " 'v' for vertical and 'h' for horizontal."
" Can be used multiple times. eg -S vhvv or --split hv" " Can be used multiple times. eg -S vhvv or --split hv"
" More description available on the man page.")), " More description available on the man page")),
ECORE_GETOPT_STORE_BOOL('l', "login", ECORE_GETOPT_STORE_BOOL('l', "login",
gettext_noop("Run the shell as a login shell.")), gettext_noop("Run the shell as a login shell")),
ECORE_GETOPT_STORE_BOOL('m', "video-mute", ECORE_GETOPT_STORE_BOOL('m', "video-mute",
gettext_noop("Set mute mode for video playback.")), gettext_noop("Set mute mode for video playback")),
ECORE_GETOPT_STORE_BOOL('c', "cursor-blink", ECORE_GETOPT_STORE_BOOL('c', "cursor-blink",
gettext_noop("Set cursor blink mode.")), gettext_noop("Set cursor blink mode")),
ECORE_GETOPT_STORE_BOOL('G', "visual-bell", ECORE_GETOPT_STORE_BOOL('G', "visual-bell",
gettext_noop("Set visual bell mode.")), gettext_noop("Set visual bell mode")),
ECORE_GETOPT_STORE_TRUE('F', "fullscreen", ECORE_GETOPT_STORE_TRUE('F', "fullscreen",
gettext_noop("Go into the fullscreen mode from the start.")), gettext_noop("Go into the fullscreen mode from the start")),
ECORE_GETOPT_STORE_TRUE('I', "iconic", ECORE_GETOPT_STORE_TRUE('I', "iconic",
gettext_noop("Go into an iconic state from the start.")), gettext_noop("Go into an iconic state from the start")),
ECORE_GETOPT_STORE_TRUE('B', "borderless", ECORE_GETOPT_STORE_TRUE('B', "borderless",
gettext_noop("Become a borderless managed window.")), gettext_noop("Become a borderless managed window")),
ECORE_GETOPT_STORE_TRUE('O', "override", ECORE_GETOPT_STORE_TRUE('O', "override",
gettext_noop("Become an override-redirect window.")), gettext_noop("Become an override-redirect window")),
ECORE_GETOPT_STORE_TRUE('M', "maximized", ECORE_GETOPT_STORE_TRUE('M', "maximized",
gettext_noop("Become maximized from the start.")), gettext_noop("Become maximized from the start")),
ECORE_GETOPT_STORE_TRUE('W', "nowm", ECORE_GETOPT_STORE_TRUE('W', "nowm",
gettext_noop("Terminology is run without a window manager.")), gettext_noop("Terminology is run without a window manager")),
ECORE_GETOPT_STORE_TRUE('H', "hold", ECORE_GETOPT_STORE_TRUE('H', "hold",
gettext_noop("Do not exit when the command process exits.")), gettext_noop("Do not exit when the command process exits")),
ECORE_GETOPT_STORE_TRUE('s', "single", ECORE_GETOPT_STORE_TRUE('s', "single",
gettext_noop("Force single executable if multi-instance is enabled.")), gettext_noop("Force single executable if multi-instance is enabled")),
ECORE_GETOPT_STORE_TRUE('2', "256color", ECORE_GETOPT_STORE_TRUE('2', "256color",
gettext_noop("Set TERM to 'xterm-256color' instead of 'xterm'.")), gettext_noop("Set TERM to 'xterm-256color' instead of 'xterm'")),
ECORE_GETOPT_STORE_DOUBLE('\0', "scale", ECORE_GETOPT_STORE_DOUBLE('\0', "scale",
gettext_noop("Set scaling factor.")), gettext_noop("Set scaling factor")),
ECORE_GETOPT_STORE_BOOL('\0', "active-links", ECORE_GETOPT_STORE_BOOL('\0', "active-links",
gettext_noop("Highlight links.")), gettext_noop("Highlight links")),
ECORE_GETOPT_STORE_BOOL('\0', "no-wizard", ECORE_GETOPT_STORE_BOOL('\0', "no-wizard",
gettext_noop("Do not display wizard on start up.")), gettext_noop("Do not display wizard on start up")),
ECORE_GETOPT_VERSION ('V', "version"), ECORE_GETOPT_VERSION ('V', "version"),
ECORE_GETOPT_COPYRIGHT ('C', "copyright"), ECORE_GETOPT_COPYRIGHT ('C', "copyright"),
@ -525,16 +525,16 @@ _translate_options(void)
switch (desc->action) switch (desc->action)
{ {
case ECORE_GETOPT_ACTION_VERSION: case ECORE_GETOPT_ACTION_VERSION:
desc->help = _("show program version."); desc->help = _("show program version");
break; break;
case ECORE_GETOPT_ACTION_COPYRIGHT: case ECORE_GETOPT_ACTION_COPYRIGHT:
desc->help = _("show copyright."); desc->help = _("show copyright");
break; break;
case ECORE_GETOPT_ACTION_LICENSE: case ECORE_GETOPT_ACTION_LICENSE:
desc->help = _("show license."); desc->help = _("show license");
break; break;
case ECORE_GETOPT_ACTION_HELP: case ECORE_GETOPT_ACTION_HELP:
desc->help = _("show this message."); desc->help = _("show this message");
break; break;
default: default:
desc->help = gettext(desc->help); desc->help = gettext(desc->help);
@ -578,7 +578,7 @@ _start(Ipc_Instance *instance, Eina_Bool need_scale_wizard)
config = NULL; config = NULL;
if (!wn) if (!wn)
{ {
CRITICAL(_("Could not create window.")); CRITICAL(_("Could not create window"));
goto exit; goto exit;
} }
@ -589,7 +589,7 @@ _start(Ipc_Instance *instance, Eina_Bool need_scale_wizard)
instance->w, instance->h, instance->hold, instance->title); instance->w, instance->h, instance->hold, instance->title);
if (!term) if (!term)
{ {
CRITICAL(_("Could not create terminal widget.")); CRITICAL(_("Could not create terminal widget"));
config = NULL; config = NULL;
goto exit; goto exit;
} }
@ -632,7 +632,7 @@ _start(Ipc_Instance *instance, Eina_Bool need_scale_wizard)
else else
{ {
CRITICAL(_("invalid argument found for option -S/--split." CRITICAL(_("invalid argument found for option -S/--split."
" See --help.")); " See --help"));
goto end; goto end;
} }
} }
@ -873,7 +873,7 @@ elm_main(int argc, char **argv)
_log_domain = eina_log_domain_register("terminology", NULL); _log_domain = eina_log_domain_register("terminology", NULL);
if (_log_domain < 0) if (_log_domain < 0)
{ {
EINA_LOG_CRIT(_("Could not create logging domain '%s'."), "terminology"); EINA_LOG_CRIT(_("Could not create logging domain '%s'"), "terminology");
elm_shutdown(); elm_shutdown();
return EXIT_FAILURE; return EXIT_FAILURE;
} }
@ -884,7 +884,7 @@ elm_main(int argc, char **argv)
_main_config = config_load(); _main_config = config_load();
if (key_bindings_load(_main_config) < 0) if (key_bindings_load(_main_config) < 0)
{ {
CRITICAL(_("Could not initialize key bindings.")); CRITICAL(_("Could not initialize key bindings"));
retval = EXIT_FAILURE; retval = EXIT_FAILURE;
goto end; goto end;
} }
@ -899,7 +899,7 @@ elm_main(int argc, char **argv)
args = ecore_getopt_parse(&options, values, argc, argv); args = ecore_getopt_parse(&options, values, argc, argv);
if (args < 0) if (args < 0)
{ {
CRITICAL(_("Could not parse command line options.")); CRITICAL(_("Could not parse command line options"));
retval = EXIT_FAILURE; retval = EXIT_FAILURE;
goto end; goto end;
} }
@ -924,7 +924,7 @@ elm_main(int argc, char **argv)
if (args == argc) if (args == argc)
{ {
CRITICAL(_("option %s requires an argument!"), argv[args-1]); CRITICAL(_("option %s requires an argument!"), argv[args-1]);
CRITICAL(_("invalid options found. See --help.")); CRITICAL(_("invalid options found. See --help"));
goto end; goto end;
} }

View File

@ -38,7 +38,7 @@ miniview_init(void)
_miniview_log_dom = eina_log_domain_register("miniview", NULL); _miniview_log_dom = eina_log_domain_register("miniview", NULL);
if (_miniview_log_dom < 0) if (_miniview_log_dom < 0)
EINA_LOG_CRIT(_("Could not create logging domain '%s'."), "miniview"); EINA_LOG_CRIT(_("Could not create logging domain '%s'"), "miniview");
} }
void void

View File

@ -120,7 +120,7 @@ options_elm(Evas_Object *opbox, Evas_Object *_term EINA_UNUSED)
elm_entry_line_wrap_set(en, ELM_WRAP_MIXED); elm_entry_line_wrap_set(en, ELM_WRAP_MIXED);
txt = eina_stringshare_printf( txt = eina_stringshare_printf(
_("<em>Terminology</em> uses the <hilight>elementary</hilight> toolkit.<br>" _("<em>Terminology</em> uses the <hilight>elementary</hilight> toolkit.<br>"
"The toolkit configuration settings can be accessed by running <keyword>%s</keyword>."), _elementary_config); "The toolkit configuration settings can be accessed by running <keyword>%s</keyword>"), _elementary_config);
elm_object_text_set(en, txt); elm_object_text_set(en, txt);
eina_stringshare_del(txt); eina_stringshare_del(txt);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0); evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0);
@ -169,7 +169,7 @@ options_elm(Evas_Object *opbox, Evas_Object *_term EINA_UNUSED)
lbl = elm_label_add(opbox); lbl = elm_label_add(opbox);
evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(lbl, 0.0, 0.0); evas_object_size_hint_align_set(lbl, 0.0, 0.0);
elm_object_text_set(lbl, _("Select preferred size so that this text is readable.")); elm_object_text_set(lbl, _("Select preferred size so that this text is readable"));
elm_label_line_wrap_set(lbl, ELM_WRAP_WORD); elm_label_line_wrap_set(lbl, ELM_WRAP_WORD);
elm_box_pack_end(bx, lbl); elm_box_pack_end(bx, lbl);
evas_object_show(lbl); evas_object_show(lbl);
@ -177,7 +177,7 @@ options_elm(Evas_Object *opbox, Evas_Object *_term EINA_UNUSED)
lbl = elm_label_add(opbox); lbl = elm_label_add(opbox);
evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(lbl, 0.0, 0.0); evas_object_size_hint_align_set(lbl, 0.0, 0.0);
elm_object_text_set(lbl, _("The scale configuration can also be changed through <hilight>elementary</hilight>'s configuration panel.")); elm_object_text_set(lbl, _("The scale configuration can also be changed through <hilight>elementary</hilight>'s configuration panel"));
elm_label_line_wrap_set(lbl, ELM_WRAP_WORD); elm_label_line_wrap_set(lbl, ELM_WRAP_WORD);
elm_box_pack_end(bx, lbl); elm_box_pack_end(bx, lbl);
evas_object_show(lbl); evas_object_show(lbl);

View File

@ -119,7 +119,7 @@ _cb_key_up(void *data,
action = evas_object_data_get(bx, "action"); action = evas_object_data_get(bx, "action");
if (!action) if (!action)
{ {
ERR("can't find any action to associate with."); ERR("Could not find any action to associate with");
return; return;
} }

View File

@ -50,7 +50,7 @@ termpty_init(void)
_termpty_log_dom = eina_log_domain_register("termpty", NULL); _termpty_log_dom = eina_log_domain_register("termpty", NULL);
if (_termpty_log_dom < 0) if (_termpty_log_dom < 0)
EINA_LOG_CRIT("Could not create logging domain '%s'.", "termpty"); EINA_LOG_CRIT("Could not create logging domain '%s'", "termpty");
} }
void void

View File

@ -71,7 +71,7 @@ theme_apply(Evas_Object *edje, const Config *config, const char *group)
goto done; goto done;
errmsg = edje_load_error_str(edje_object_load_error_get(edje)); errmsg = edje_load_error_str(edje_object_load_error_get(edje));
INF("Cannot find theme: file=%s group=%s error='%s', trying default...", INF(_("Could not find theme: file=%s group=%s error='%s', trying default theme"),
config_theme_path_get(config), group, errmsg); config_theme_path_get(config), group, errmsg);
} }
@ -107,7 +107,7 @@ theme_apply_elm(Evas_Object *layout, const Config *config, const char *group)
} }
errmsg = edje_load_error_str(edje_object_load_error_get(edje)); errmsg = edje_load_error_str(edje_object_load_error_get(edje));
INF("Cannot find theme: file=%s group=%s error='%s', trying default...", INF(_("Could not find theme: file=%s group=%s error='%s', trying default theme"),
config_theme_path_get(config), group, errmsg); config_theme_path_get(config), group, errmsg);
if (elm_layout_file_set(layout, config_theme_path_default_get(config), group)) if (elm_layout_file_set(layout, config_theme_path_default_get(config), group))

View File

@ -428,7 +428,7 @@ win_scale_wizard(Evas_Object *win, Term *term)
lbl = elm_label_add(win); lbl = elm_label_add(win);
evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(lbl, EVAS_HINT_FILL, 0.5); evas_object_size_hint_align_set(lbl, EVAS_HINT_FILL, 0.5);
elm_object_text_set(lbl, _("Select preferred size so that this text is readable.")); elm_object_text_set(lbl, _("Select preferred size so that this text is readable"));
elm_label_line_wrap_set(lbl, ELM_WRAP_WORD); elm_label_line_wrap_set(lbl, ELM_WRAP_WORD);
elm_box_pack_end(bx, lbl); elm_box_pack_end(bx, lbl);
evas_object_show(lbl); evas_object_show(lbl);
@ -436,7 +436,7 @@ win_scale_wizard(Evas_Object *win, Term *term)
lbl = elm_label_add(win); lbl = elm_label_add(win);
evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(lbl, EVAS_HINT_FILL, 0.5); evas_object_size_hint_align_set(lbl, EVAS_HINT_FILL, 0.5);
elm_object_text_set(lbl, _("The scale configuration can be changed in the Settings (right click on the terminal) → Toolkit, or by starting the command <keyword>elementary_config</keyword>.")); elm_object_text_set(lbl, _("The scale configuration can be changed in the Settings (right click on the terminal) → Toolkit, or by starting the command <keyword>elementary_config</keyword>"));
elm_label_line_wrap_set(lbl, ELM_WRAP_WORD); elm_label_line_wrap_set(lbl, ELM_WRAP_WORD);
elm_box_pack_end(bx, lbl); elm_box_pack_end(bx, lbl);
evas_object_show(lbl); evas_object_show(lbl);
@ -2160,7 +2160,7 @@ win_new(const char *name, const char *role, const char *title,
{ {
_win_log_dom = eina_log_domain_register("win", NULL); _win_log_dom = eina_log_domain_register("win", NULL);
if (_win_log_dom < 0) if (_win_log_dom < 0)
EINA_LOG_CRIT("Could not create logging domain '%s'.", "win"); EINA_LOG_CRIT("Could not create logging domain '%s'", "win");
} }
tc = (Term_Container*) wn; tc = (Term_Container*) wn;