This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: New template for 'libc' made available
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: Jochen Hein <jochen at jochen dot org>, <libc-alpha at sourceware dot org>
- Date: Mon, 3 Aug 2015 20:34:48 +0000
- Subject: Re: New template for 'libc' made available
- Authentication-results: sourceware.org; auth=none
- References: <E1ZL4aK-0002H2-FJ at duik dot vrijschrift dot org> <87bnepigsb dot fsf at echidna dot jochen dot org> <alpine dot DEB dot 2 dot 10 dot 1508031704500 dot 22507 at digraph dot polyomino dot org dot uk> <55BFB7DC dot 3090403 at redhat dot com>
On Mon, 3 Aug 2015, Carlos O'Donell wrote:
> dbg_log (_("monitored file `%s` was %s, removing watch"),
> - finfo->fname, moved ? "moved" : "deleted");
> + finfo->fname, moved ? _("moved") : _("deleted"));
No, you need to have two completely separate format strings, one with
"moved" and one with "deleted", each marked for translation, in case the
translation of the word affects the rest of the sentence or the word needs
translating differently in different calls to dbg_log.
--
Joseph S. Myers
joseph@codesourcery.com