Improve Meterstyle Naming options#2356
Conversation
hoffie
left a comment
There was a problem hiding this comment.
Thanks! Looks good to me.
Should we also update the enum entries to match the UI names in this PR? E.g. MT_BAR_NARROW instead of MT_SLIM_BAR (I don't care about the word order, but we should use the same adjective at least?).
| enum EMeterStyle | ||
| { | ||
| // used for settings -> enum values should be fixed | ||
| MT_LED = 0, | ||
| MT_SLIM_BAR = 0, | ||
| MT_BAR = 1, | ||
| MT_SLIM_BAR = 2, | ||
| MT_SLIM_LED = 3, | ||
| MT_SMALL_LED = 4 | ||
| MT_LED = 2, | ||
| MT_SMALL_LED = 3, | ||
| MT_SLIM_LED = 4 | ||
| }; | ||
|
|
There was a problem hiding this comment.
As far as I understand, this has been introduced in 130920c, which was not part of any (final) release, so it's ok to re-order this now (but not any later, as it's used in the ini settings).
$ git tag --contains 130920c3d63104726ee00dd11e19c20e2c319d86
r3.8.1devNightly1
r3_8_2beta1
src/clientsettingsdlg.cpp
Outdated
| "Bar (Narrow) and LEDs (Small) options only apply to the mixerboard. When " | ||
| "Bar (Narrow) is selected, the input meters are set to Bar (Wide). When " | ||
| "LEDs (Small) is selected, the input meters are set to LEDs (Big). " |
There was a problem hiding this comment.
Just to note: This causes translation changes as well.
src/clientsettingsdlg.cpp
Outdated
| cbxMeterStyle->addItem ( tr ( "LEDs (Stripe)" ) ); // MT_LED | ||
| cbxMeterStyle->addItem ( tr ( "LEDs (Small)" ) ); // MT_SMALL_LED | ||
| cbxMeterStyle->addItem ( tr ( "LEDs (Big)" ) ); // MT_SLIM_LED |
There was a problem hiding this comment.
-
The distinction still sounds a bit strange to me. Example: "You you like your LEDs rather as Stripes, Small or Big?" The words in brackets do not describe the same type of thing. I've got no better idea though. The following would be more accurate, but probably to long:
- LEDs (striped)
- LEDs (round, small)
- LEDs (round, big)
This may quickly get into the bike-shedding area, so we should do the best we can but should merge nevertheless even if we think it's not perfect... :)
-
Should the adjectives be lowercase? (No idea, not a native speaker)
There was a problem hiding this comment.
You you like your LEDs rather as Stripes, Small or Big?
What is "rather" doing in that? And why make "Stripe" plural? You're changing things and then complaining it doesn't sound consistent... ;)
There was a problem hiding this comment.
Happy to update this, and would like to update the enum entries at the same time with similar logic.
So should we take this proposal (with lowercase) as the option to go for?
(I am not a native speaker as well)
There was a problem hiding this comment.
What is "rather" doing in that? And why make "Stripe" plural? You're changing things and then complaining it doesn't sound consistent... ;)
I was trying to place the different options in an English sentence to see how they would sound.
What I was trying to say:
- Stripe is not a size. There could be small or big stripes (in theory, I'm not suggesting we add them)
- Small and Big are sizes, but don't imply any form (in contrast to Stripe)
There was a problem hiding this comment.
I don't think we have to worry about the total length of the text, as the "language" box just below the setting in the GUI will be wider. Good point that Small and Big no longer indicate the shape, so adding "round" would make sense to me.
|
@hoffie, the "slim/small" LED reference is also used in the bitmap references, i.e. BitmCubeSlimLedGreen, BitmCubeSmallLedGreen. Should these be updated as well when the enum entries are updated? |
I think it the naming should be as consistent as possible, yes. In general, aim for the Principle of least surprise, I'd say. :) So, yes, I'd be in favor of naming those references with the same words which are used in other places (enum, labels). |
|
One thing, when this is released, we'll still need to highlight that anyone who's tested a post-3.8.1 build that had the new config item will need to expect that to mean something different following this change. |
hoffie
left a comment
There was a problem hiding this comment.
Thanks a lot for working on this!
All of the changes sound meaningful. I've re-tested the behavior and everything looks fine.
This is a huge improvement at code readability. :)
Should be squash-merged.
| BitmCubeRoundBigLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDBlackSmall.png" ) ), | ||
| BitmCubeRoundBigLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenSmall.png" ) ), | ||
| BitmCubeRoundBigLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDYellowSmall.png" ) ), | ||
| BitmCubeRoundBigLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDRedSmall.png" ) ) |
There was a problem hiding this comment.
It's a bit surprising for me to see "Big" being mapped to "Small", but I guess the reason is that this was the naming of the original files?
Should not be a blocker, IMO.
There was a problem hiding this comment.
to see "Big" being mapped to "Small",
Good catch. The Small icons already existed....and is one of the reason why I used the "odd" names in the beginning. Though when started, it was still associated to a skin choice as well and later changed to changing the meter style as a separate option.
449c0d0 to
3117acd
Compare
Update zh_CN app translation for #2356
Short description of changes
Improve Meterstyle Naming and Sort Order
Context: Fixes an issue?
Fixes: #2353
Does this change need documentation? What needs to be documented and how?
No
Status of this Pull Request
Complete
What is missing until this pull request can be merged?
Needs review, tested on Windows
Checklist