On Sunday 08 May 2005 15:37, Chris Cannam wrote:
> On Sunday 08 May 2005 13:28, Vladimir Savic wrote:
> > Picture attached.
>
> I haven't a moment to look at this right now, but in case anyone else
> does, I'll observe that the usual cause of this sort of rubbish is
> calling i18n() on the same string more than once.
Almost. The problem was in the creation of actions of the note inserter rmb
menu :
KRadioAction* noteAction = new KRadioAction(i18n(m_actionsAccidental[i][0]),
and m_actionsAccidental was initialized as follows :
const char* NoteInserter::m_actionsAccidental[][4] =
{
{ i18n("No accidental"), "1slotNoAccidental()", "no_accidental", ...
so indeed, the item's label was i18n()ed twice. However, simply removing the
i18n() at the KRadioAction creation didn't change anything. It seems that
calling i18() when initialising statics doesn't work. So I had to revert that
to i18n() at the KRadioAction level, and leaving the strings alone in the
array initialisation. But this will cause translation problems as the strings
will no longer be fetched by the message scripts... I'm not sure what's the
best solution.
--
Guillaume.
http://www.telegraph-road.org
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel