]> granicus.if.org Git - procps-ng/commitdiff
top: touch up a few miscellaneous nls related comments
authorJim Warner <james.warner@comcast.net>
Tue, 19 Mar 2013 05:00:00 +0000 (00:00 -0500)
committerJaromir Capik <jcapik@redhat.com>
Sat, 23 Mar 2013 12:01:16 +0000 (13:01 +0100)
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 <james.warner@comcast.net>
top/top_nls.c

index 2774051fde3cb96b2dcf24bbf2d1d852c79dd8bb..ea6cbbb38aca709ca4bccef2e7177e317c2242d4 100644 (file)
         //                           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");