All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: gettext: grub_printf_ and N_
Date: Mon, 07 Dec 2009 23:46:32 +0100	[thread overview]
Message-ID: <4B1D85C8.3030607@gmail.com> (raw)
In-Reply-To: <20091207211100.GA30400@pina.cat>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Carles Pina i Estany wrote:
> Hi,
>
> Attached a patch that makes a new function (grub_printf_) which one
> calls _( ) for the format argument. Also adapts the current
> translations but not the pending patch.
>
> Can someone take a look? If the grub_printf_ approach is used then this
> should be committed. Conflicts with Colin Watson idea because in the
> other idea gettext has to be called in grub_printf level and not inside,
> as far as I can think now :-)
>
>   

-  grub_printf (_("\
+  grub_printf_ (N_("\
  [ Minimal BASH-like line editing is supported. For the first word, TAB\n\
    lists possible command completions. Anywhere else TAB lists possible\n\
    device/file completions.%s ]\n\n"),
We already spoke about this string
-      grub_printf (_("Possible %s are:"), what);
+      grub_printf_ (N_("Possible %s are:"), what);
This kind of string usage is untranslatable since when translator encounters word "files" by itself he has no idea of its role in sentence so can't choose apropriate case in language that have one. It has to be split into
"Possible files are:"
"Possible devices are:"
And so on

> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

  reply	other threads:[~2009-12-07 22:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07 21:11 gettext: grub_printf_ and N_ Carles Pina i Estany
2009-12-07 22:46 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2009-12-07 23:56 ` Colin Watson
2009-12-08  0:03   ` Carles Pina i Estany

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B1D85C8.3030607@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.