[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: keys in Aptitude



Christian Perrier a écrit :

This probably affects the other strings where you had [Y/n].....I you put, say
"O" then "N" here, then you must "translate" the strings as "blah blah? [O/n]"
They really should use LC_MESSAGES yesstr/nostr/yesexpr/noexpr,
IMHO...

Commenting these difficult strings would be nice indeed. However, I
don't know how to do this in the source and not in the POT (which is
re-generated at build time from the sources). Anyone around knowing if
gettext commenting is possible in C++?
From "man xgettext":

      -c, --add-comments[=TAG]
place comment block with TAG (or those preceding keyword lines) in output file

I tried this (test.cc):

 $ xgettext --output=- --add-comments=GETTEXT: --c++ - << __EOF__
 // GETTEXT: first comment
 cout << gettext("hello") << eol;
 // GETTEXT: second comment
 cout << gettext("hello again") << eol;
 __EOF__

And obtained this:

 #. GETTEXT: first comment
 #: entrée standard:2
 msgid "hello"
 msgstr ""

 #. GETTEXT: second comment
 #: entrée standard:4
 msgid "hello again"
 msgstr ""


--
Jean Christophe "プログフ" ANDRÉ — http://asie-pacifique.auf.org/
Responsable technique régional — Associé technologie projet Reflets (CODA)
Agence universitaire de la Francophonie (AuF) — Bureau Asie-Pacifique (BAP)
Adresse postale : AUF, 21 Lê Thánh Tông, T.T. Hoàn Kiếm, Hà Nội, Việt Nam
Tél. : +84 4 9331108   Fax : +84 4 8247383   Mobile : +84 91 3248747
⎧ Note personnelle : merci d'éviter de m'envoyer des fichiers PowerPoint  ⎫
⎩ ou Word, voir http://www.fsf.org/philosophy/no-word-attachments.fr.html

Reply to: