I think there are still some problems in the code. I looked at the
LinearParameterPattern. Because the cresendo and diminuendo objects are
declared static the tr call is probably done before the translator is
loaded (elaboration).
I only got it to work with the following code (not very elegant - maybe
someone has a better idea !):
LinearParameterPattern
LinearParameterPattern::
crescendo(QString("not used"),
false);
LinearParameterPattern
LinearParameterPattern::
diminuendo(QString("not used"),
true);
QString
LinearParameterPattern::getText(QString propertyName) const
{
QString text;
if (m_isDiminuendo) {
text = EventParameterDialog::tr("Diminuendo - set %1 falling
from max to min");
} else {
text = EventParameterDialog::tr("Crescendo - set %1 rising from
min to max");
}
return text.arg(propertyName);
}
On 5/10/20 1:17 PM, Babarosa wrote:
I compiled r15824 just now. 4 out of 12 text strings translate. It seems
to me, the ones which do translate have a ".arg(propertyName);" in the
code line.
https://i90.servimg.com/u/f90/12/84/23/35/set_ev12.png
Am 10.05.20 um 07:11 schrieb Ted Felix:
Just pushed r15824 which should cause these strings to appear when
working on translations. Get the latest svn and run the make-ts
script again. That should clear things up.
Ted.
On 5/10/20 12:42 AM, Babarosa wrote:
I got the info.
Although already translated in the de.ts file two english topics/text
strings of the main surface do not show up in the german version:
1.) Set event velocities
https://i90.servimg.com/u/f90/12/84/23/35/set_ev10.png
https://i90.servimg.com/u/f90/12/84/23/35/set_ev11.png
2.) Quantize
https://i90.servimg.com/u/f90/12/84/23/35/quanti10.png
Any ideas?
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to
unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to
unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel