[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The translated command synopsises are never used
From: |
goeran |
Subject: |
The translated command synopsises are never used |
Date: |
Tue, 4 Jan 2011 15:47:55 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I. -I./include -I./lib -D_GNU_SOURCE -DRECYCLES_PIDS
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic
uname output: Linux mimmi 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50
UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu
Bash Version: 4.1
Patch Level: 7
Release Status: release
Description:
The translated versions of the command synopsises (short_doc)
are never used.
The full description (long_doc) does appear in translated
form.
Repeat-By:
LC_ALL=sv_SE.utf8 bash -c 'help unalias'
This will write a first line:
unalias: unalias [-a] name [name ...]
which is the English form. But the Swedish translation does
contain a translation:
msgid "unalias [-a] name [name ...]"
msgstr "unalias [-a] namn [namn ...]"
Fix:
Unless I'm mistaken, this output comes from the function
help_builtin in builtins/help.def which has the code:
printf ("%s: %s\n", name, shell_builtins[i].short_doc);
That would need to send the short_doc to gettext() before
printing:
printf ("%s: %s\n", name, _(shell_builtins[i].short_doc));
Similarily for other uses of short_doc. (I.e. in
show_manpage() and show_builtin_command_help() (twice) in
builtins/help.def, and in builtin_usage() in
builtins/common.c. It is used in shell.c too, but there the
original string is to be used.)
- The translated command synopsises are never used,
goeran <=