-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #301584: test for duplicates names in palette #5760
fix #301584: test for duplicates names in palette #5760
Conversation
Please use a commit title starting with "fix #301584" |
Well, tst_pallette failed (https://travis-ci.org/musescore/MuseScore/jobs/655368046#L4398), but without telling where and why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below are formatting suggestions. Welcome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good overall! I can't tell why it catches some duplicates but not others, but it might have something to do with the conversion from QString to std::string, so I'll let you fix that before I take a look in more detail.
5ffb5f5
to
a004b3a
Compare
a004b3a
to
923b66d
Compare
4da405e
to
f333c53
Compare
a34f681
to
2bdd3f5
Compare
adds a test for checking if there are duplicate names in the palettes in the default workspaces and manually removed the duplicate items by making the names more descriptive.
43b7f12
to
ca092fd
Compare
1317064
to
fd51679
Compare
@Kartikay26 @shoogle Could you please make an overview of the changes in this PR after all reviews and remarks?
|
For example, everything in the Tempo palette is currently called "Tempo Text". This PR changes the tooltip to read "Adagio". |
So useful (and actually necessary) for accessibility/screenreaders, right? |
fd51679
to
f124760
Compare
f124760
to
0cca701
Compare
@shoogle I meant the risks of the solution implemented in current PR. |
This PR contains a test and changes to the strings in the Palette text. I have tested it and it seems to be working correctly at least for English. However, as I am not familiar with the translation process so I don't know whether the translation will work correctly. That is the main risk, I guess, that the translation of some strings may become out of sync if I have messed up something in this PR. But I have tried to do everything as @Jojo-Schmitz and @dmitrio95 said, so I hope it's mostly correct. |
…introduced tst_palette.cpp which was created before the merge of PR musescore#6019 and used "vector" without the "std" prefix.
…introduced tst_palette.cpp which was created before the merge of PR musescore#6019 and used "vector" without the "std" prefix.
{ BarLineType::END_REPEAT, QT_TRANSLATE_NOOP("Palette", "End repeat barline"), "end-repeat" }, | ||
{ BarLineType::BROKEN, QT_TRANSLATE_NOOP("Palette", "Dashed barline"), "dashed" }, | ||
{ BarLineType::END, QT_TRANSLATE_NOOP("Palette", "Final barline"), "end" }, | ||
{ BarLineType::END_START_REPEAT, QT_TRANSLATE_NOOP("Palette", "End-start repeat barline"), "end-start-repeat" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes now actually cause https://musescore.org/en/node/305676 and #6096 (comment)
Not doing it here though would change the issue into the opposite: instead of the repeat barline tooltips in the Repeats & Jumps palette not being translated, it that would be those in the Barlines palette
Resolves: https://musescore.org/en/node/301584
This commit adds a test for checking if there are duplicate names in the palettes in the default workspaces and manually removes the duplicate items from
Advanced.xml
andBasic.xml
by making the names more descriptive.