From 10936365de0f9758c4dc085bb9468990e235bcb1 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 19 Mar 2013 00:00:00 -0500 Subject: [PATCH] top: touch up a few miscellaneous nls related comments Some recent nls work on that pmap program necessitated a return to nls translation file creation for testing. As it turns out, my skills used in pseudo-translations had become rusty and some newer LC_MESSAGE directories may have been introduced since last needing the topic. This patch just updates some programmer notes to agree with this most recent effort and for future reference! Reference(s): . pmap nls support commit 0c0c543466e95966851807b54a3830a695cc3032 Signed-off-by: Jim Warner --- top/top_nls.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/top/top_nls.c b/top/top_nls.c index 2774051f..ea6cbbb3 100644 --- a/top/top_nls.c +++ b/top/top_nls.c @@ -67,9 +67,10 @@ // with "... charset=UTF-8\n" // . translate msgstr values, leaving msgid unchanged // msgfmt ll_CC.po --strict --output-file=procps-ng.mo - // . after which chmod 644 - // . move to /usr/share/local/ll_CC/LC_MESSAGES/ directory - // + // . after which ensure, chmod 644 + // . then copy + // to /usr/share/locale-langpack/ll_CC/LC_MESSAGES/ + // or /usr/share/locale/ll_CC/LC_MESSAGES/ // Testing ------------------------------------------------- // export LC_ALL= && export LANGUAGE=ll_CC // run some capable program like top @@ -302,7 +303,7 @@ static void build_norm_nlstab (void) { Norm_nlstab[ON_word_only_txt] = _("On"); Norm_nlstab[OFF_one_word_txt] = _("Off"); /* Translation Hint: Only the following words should be translated - . secs (seconds), max (maximum), user, cols (columns)*/ + . secs (seconds), max (maximum), user, field, cols (columns)*/ Norm_nlstab[USAGE_abbrev_txt] = _(" -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]"); Norm_nlstab[FAIL_statget_txt] = _("failed /proc/stat read"); Norm_nlstab[FOREST_modes_fmt] = _("Forest mode %s");