Skip to content

Commit

Permalink
fix #44601: translation of "dotted" on the status bar
Browse files Browse the repository at this point in the history
Some languages need to be albe to reverse the words, e.g. 'Dotted
Quarter" to  "Negra con pontillo"
  • Loading branch information
Jojo-Schmitz committed Jan 18, 2015
1 parent 4eb005d commit 448ddb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,16 +1004,16 @@ QString ChordRest::durationUserName()

switch (dots()) {
case 1:
dotString += " " + tr("Dotted");
dotString += " " + tr("Dotted %1").arg(durationType().durationTypeUserName()).trimmed();
break;
case 2:
dotString += " " + tr("Double dotted");
dotString += " " + tr("Double dotted %1").arg(durationType().durationTypeUserName()).trimmed();
break;
case 3:
dotString += " " + tr("Triple dotted");
dotString += " " + tr("Triple dotted %1").arg(durationType().durationTypeUserName()).trimmed();
break;
}
return QString("%2%3 %4").arg(tupletType).arg(dotString).arg(durationType().durationTypeUserName()).trimmed();
return QString("%2%3").arg(tupletType).arg(dotString);
}

//---------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions libmscore/tempotext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ QString TempoText::accessibleInfo()
QString dots;

switch (t.dots()) {
case 1: dots = tr("Dotted");
case 1: dots = tr("Dotted %1").arg(t.durationTypeUserName());
break;
case 2: dots = tr("Double dotted");
case 2: dots = tr("Double dotted %1").arg(t.durationTypeUserName());
break;
case 3: dots = tr("Triple dotted");
case 3: dots = tr("Triple dotted %1").arg(t.durationTypeUserName());
break;
default:
dots = "";
Expand All @@ -300,7 +300,7 @@ QString TempoText::accessibleInfo()
QString bpm = plainText().split(" = ").back();

//return Element::accessibleInfo() + dots + " " + t.durationTypeUserName() + " " + tr("note = %1").arg(bpm);
return QString("%1: %2 %3 %4").arg(Element::accessibleInfo()).arg(dots).arg(t.durationTypeUserName()).arg(tr("note = %1").arg(bpm));
return QString("%1: %2 %3").arg(Element::accessibleInfo()).arg(dots).arg(tr("note = %1").arg(bpm));
}
else
return Text::accessibleInfo();
Expand Down

0 comments on commit 448ddb2

Please sign in to comment.