Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11819
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Benno Schulenberg <bensberg@justemail.net> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: a few unintended translations of command names |
| Date | Mon, 02 Nov 2015 19:34:39 +0100 |
| Lines | 85 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1519.1446489287.7904.bug-bash@gnu.org> (permalink) |
| References | <1445281655.754466.414449865.6EB8AEDE@webmail.messagingengine.com> <5637840E.5010904@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/mixed; boundary="_----------=_1446489279304635712"; charset="utf-8" |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1446489288 22405 208.118.235.17 (2 Nov 2015 18:34:48 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org |
| To | Chet Ramey <chet.ramey@case.edu> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=justemail.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=sJkoW+84tgMTkEPeSzQkMoZPy3o=; b=QEOhel S/b5uQlLKzBlN9IKpHsS9OkZbFOGgqnF2tII+i2MbTtqvXwSsJz6BcIyq92tpK1F Hh1I9KwO8ZAusCyd1S5zWUktzGzv3GZCxZOK77i1Mop7iKOiy6Ot6lgz5Rip+iVX o1fe55WQnAA4H6hvqufL5ZPw5yNpfvX9grsJU= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=sJkoW+84tgMTkEP eSzQkMoZPy3o=; b=U+iSaBRVlt9hTOLlR/pSrDNLEQSi3PFbq0BRsFda4Spg+aR A6UGyXejohusKDuxPvkmGADFfKpTJU5/TZgqbFq8dluL3inikIQ+KXPPfOs+d1kZ iUSiFtcC0/4VbbFn0Xy1E6k5rWfrrD26vTKrLR2gwBq12MX6YETRuAzjbm5k= |
| X-Sasl-Enc | el+gnKmOduQyZb041suuXP3fQyeVfwRHYnYND7g7Mcnc 1446489279 |
| X-Mailer | MessagingEngine.com Webmail Interface - html |
| In-Reply-To | <5637840E.5010904@case.edu> |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] |
| X-Received-From | 66.111.4.28 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11819 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Mon, Nov 2, 2015, at 16:41, Chet Ramey wrote: > On 10/19/15 3:07 PM, Benno Schulenberg wrote: > > As the command synopses are gettextized only in order to allow > > translators to translate *possible arguments*, there is no need to > > gettextize them when a command takes no options nor arguments. > > Well, the short docs are marked with N_ in the generated builtins.c, > but I guess the gettext tools aren't smart enough to not put them in > the pot files. ?? But they *should* be in the POT file, at least most of them. What I'm saying is: > > Would it be possible to change the script that converts the *.def > > files into a builtins.c in such a way that when $BUILTIN == $SHORT_DOC > > the $SHORT_DOC is not gettextized? When the BUILTIN string in a def file equals the SHORT_DOC string in the def file, there is no need to gettextize that string, because apparently the command does not take any argument. > That's a C program. It might be better to just not run the short doc > through gettext in builtin_help(). Well, that would be suboptimal: the strings would still be in the POT file, they just wouldn't get used. The change I meant was as in the attached patch (not adjusted for whitespace). Benno -- http://www.fastmail.com - mmm... Fastmail...
Back to gnu.bash.bug | Previous | Next | Find similar
Re: a few unintended translations of command names Benno Schulenberg <bensberg@justemail.net> - 2015-11-02 19:34 +0100
csiph-web