[kbd] [PATCH] dumpkeys: avoid translating empty string

Alexey Gladkov gladkov.alexey at gmail.com
Mon Jun 8 13:49:27 MSK 2020


On Thu, Jun 04, 2020 at 10:12:33AM -0300, Rafael Fontenelle wrote:
> Empty string marked for translation receives the header fields
> of translation files, which is not the output desired in the case
> ---
>  src/dumpkeys.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/dumpkeys.c b/src/dumpkeys.c
> index 9395db9..abd32bd 100644
> --- a/src/dumpkeys.c
> +++ b/src/dumpkeys.c
> @@ -110,7 +110,7 @@ int main(int argc, char *argv[])
>  		{ "-n, --numeric",          _("display keytable in hexadecimal notation.") },
>  		{ "-f, --full-table",       _("don't use short-hand notations, one row per keycode.") },
>  		{ "-1, --separate-lines",   _("one line per (modifier,keycode) pair.") },
> -		{ "-S, --shape={2|4|8|16}", _("") },
> +		{ "-S, --shape={2|4|8|16}", "" },
>  		{ "-t, --funcs-only",       _("display only the function key strings.") },
>  		{ "-k, --keys-only",        _("display only key bindings.") },
>  		{ "-d, --compose-only",     _("display only compose key combinations.") },
> -- 
> 2.27.0

Applied, thanks!

-- 
Rgrds, legion



More information about the kbd mailing list