From 2ec9f5c22e3eeaf4da514e0e6ec9374cfdbb9a99 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Mon, 3 Mar 2014 21:58:56 +1100 Subject: [PATCH] Minor i18n fixes Minor fixes that the translator (Yuri) has found in some of the strings. You only know how many typos and thinkos you have when someone is trying to translate it. Signed-off-by: Craig Small --- ps/help.c | 4 ++-- skill.c | 2 +- slabtop.c | 4 ++++ top/top.c | 2 +- top/top_nls.c | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ps/help.c b/ps/help.c index 1b98b738..8bde12b8 100644 --- a/ps/help.c +++ b/ps/help.c @@ -120,7 +120,7 @@ void do_help (const char *opt, int rc) { fputs(_("\n" " The selection options take as their argument either:\n" " a comma-separated list e.g. '-u root,nobody' or\n" - " or a blank-separated list e.g. '-p 123 4567'\n"), out); + " a blank-separated list e.g. '-p 123 4567'\n"), out); } if (section == HELP_OUT || section == HELP_ALL) { fputs(_("\nOutput formats:\n"), out); @@ -141,7 +141,7 @@ void do_help (const char *opt, int rc) { fputs(_(" u user-oriented format\n"), out); fputs(_(" v virtual memory format\n"), out); fputs(_(" X register format\n"), out); - fputs(_(" -y do not show flags, show rrs vs. addr (used with -l)\n"), out); + fputs(_(" -y do not show flags, show rss vs. addr (used with -l)\n"), out); fputs(_(" --context display security context (for SELinux)\n"), out); fputs(_(" --headers repeat header lines, one per page\n"), out); fputs(_(" --no-headers do not print header at all\n"), out); diff --git a/skill.c b/skill.c index 9f3b4fc9..2b1ce2f1 100644 --- a/skill.c +++ b/skill.c @@ -751,7 +751,7 @@ int main(int argc, char ** argv) kill_main(argc, argv); break; default: - fprintf(stderr, _("skill: \"%s\" is not support\n"), + fprintf(stderr, _("skill: \"%s\" is not supported\n"), program_invocation_short_name); fprintf(stderr, USAGE_MAN_TAIL("skill(1)")); return EXIT_FAILURE; diff --git a/slabtop.c b/slabtop.c index c135ec5e..4be35b91 100644 --- a/slabtop.c +++ b/slabtop.c @@ -376,15 +376,19 @@ int main(int argc, char *argv[]) " %-35s: %.2fK / %.2fK / %.2fK\n\n", /* Translation Hint: Next five strings must not * exceed 35 length in characters. */ + /* xgettext:no-c-format */ _("Active / Total Objects (% used)"), stats.nr_active_objs, stats.nr_objs, 100.0 * stats.nr_active_objs / stats.nr_objs, + /* xgettext:no-c-format */ _("Active / Total Slabs (% used)"), stats.nr_active_slabs, stats.nr_slabs, 100.0 * stats.nr_active_slabs / stats.nr_slabs, + /* xgettext:no-c-format */ _("Active / Total Caches (% used)"), stats.nr_active_caches, stats.nr_caches, 100.0 * stats.nr_active_caches / stats.nr_caches, + /* xgettext:no-c-format */ _("Active / Total Size (% used)"), stats.active_size / 1024.0, stats.total_size / 1024.0, 100.0 * stats.active_size / stats.total_size, diff --git a/top/top.c b/top/top.c index ca3d24a9..d7674956 100644 --- a/top/top.c +++ b/top/top.c @@ -779,7 +779,7 @@ static int show_pmt (const char *str) { * Our special formatting consists of: * "some text <_delimiter_> some more text <_delimiter_>...\n" * Where <_delimiter_> is a two byte combination consisting of a - * tilde followed by an ascii digit in the the range of 1 - 8. + * tilde followed by an ascii digit in the range of 1 - 8. * examples: ~1, ~5, ~8, etc. * The tilde is effectively stripped and the next digit * converted to an index which is then used to select an diff --git a/top/top_nls.c b/top/top_nls.c index 0f37d890..b47459af 100644 --- a/top/top_nls.c +++ b/top/top_nls.c @@ -404,7 +404,7 @@ static void build_norm_nlstab (void) { Norm_nlstab[YINSP_demo01_txt] = _("Open Files"); Norm_nlstab[YINSP_demo02_txt] = _("NUMA Info"); Norm_nlstab[YINSP_demo03_txt] = _("Log"); - Norm_nlstab[YINSP_deqfmt_txt] = _("the '=' key will eventually show the actual file read or command(s) excuted ..."); + Norm_nlstab[YINSP_deqfmt_txt] = _("the '=' key will eventually show the actual file read or command(s) executed ..."); Norm_nlstab[YINSP_deqtyp_txt] = _("demo"); Norm_nlstab[YINSP_dstory_txt] = _("" "This is simulated output representing the contents of some file or the output\n"