[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ly:expect-warning message translation
From: |
ArnoldTheresius |
Subject: |
Re: ly:expect-warning message translation |
Date: |
Mon, 13 Apr 2015 23:43:28 -0700 (MST) |
ArnoldTheresius wrote
>>Documentation - Internals - Scheme functions - ly:expect-warning
>
> I did read this paragraph in a way that the folloing should work:
> #(ly:expect-warning (_ "no such internal option: %s") "dual-pdf")
> But I only got an error message (on Win7/64 with version 2.18.2 and
> language DE).
>
> I found, instead of using '(_' this will work:
> #(ly:expect-warning (ly:translate-cpp-warning-scheme "no such internal
> option: %s") "dual-pdf")
>
> Additionally, I did know already, but I suggest to add it to the
> desctiption, too:
> "You can also lookup the untranslated message string in the PO files of
> the source code."
>
> ArnoldTheresius
Now I found, there are two types of messages:
* in scheme-format syntax (e.g. with '~a') - may be translated with (_ ... )
* in C-printf style (e.g. with '%s') - these need to be translated by
(ly:translate-cpp-warning-scheme ... )
I did not check (until now) if there exists any message which must be
translated with (_ ... ) while (ly:translate-cpp-warning-scheme ... ) will
produce an invalid modification.
ArnoldTheresius
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/ly-expect-warning-message-translation-tp174159p174498.html
Sent from the Bugs mailing list archive at Nabble.com.