Le mardi 15 décembre 2015, 18:04:41 David Faure a écrit :
> On Tuesday 15 December 2015 17:47:12 Yves Guillemot wrote:
> > Le mardi 15 décembre 2015, 06:42:53 D. Michael McIntyre a écrit :
> > > On 12/15/2015 05:45 AM, Yves Guillemot wrote:
> > > > It's probably a bit more complex, nevertheless it should not be very
> > > > difficult to add an "undo last clear" button.
> > > 
> > > That seems like more trouble than the hypothetical problem is worth.
> > 
> > It was quite simple: Done in rev. 14409.
> 
> In that commit there are a number of calls to tr() in the initialization
> of global QStrings, like:

That was an attempt to limit the translators work as some strings are used in 
two different places. But yes, I don't think too much at this and I don't try 
to get the translation working.
 
> In this case a bunch of private method should do the job,
> although of course they don't have to just return a QString,
> they can set it onto the right button directly, i.e. one method
> could do m_reloadButton->setText(tr(...)) +
> m_reloadButton->setToolTip(tr(...))
> 
Thanks David, I'm going to modify the code in that way.

Yves


------------------------------------------------------------------------------
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to