107 lines
4.6 KiB
Diff
107 lines
4.6 KiB
Diff
From 2ec9f5c22e3eeaf4da514e0e6ec9374cfdbb9a99 Mon Sep 17 00:00:00 2001
|
|
From: Yuri Chornoivan <yurchor@ukr.net>
|
|
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 <csmall@enc.com.au>
|
|
---
|
|
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 ps/help.c ps/help.c
|
|
index 1b98b73..8bde12b 100644
|
|
--- ps/help.c
|
|
+++ 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 skill.c skill.c
|
|
index 9f3b4fc..2b1ce2f 100644
|
|
--- skill.c
|
|
+++ 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 slabtop.c slabtop.c
|
|
index c135ec5..4be35b9 100644
|
|
--- slabtop.c
|
|
+++ 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 top/top.c top/top.c
|
|
index ca3d24a..d767495 100644
|
|
--- top/top.c
|
|
+++ 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 top/top_nls.c top/top_nls.c
|
|
index 0f37d89..b47459a 100644
|
|
--- top/top_nls.c
|
|
+++ 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"
|
|
--
|
|
1.7.9.2
|
|
|