Skip to content

Commit

Permalink
chord diagram: Show note name for not open
Browse files Browse the repository at this point in the history
  • Loading branch information
bragefuglseth committed May 25, 2024
1 parent deb6d2c commit 1368101
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/chord_diagram_top_toggle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,15 @@ impl FretboardChordDiagramTopToggle {
let imp = self.imp();

let tooltip_text = match imp.state.get() {
TopToggleState::Off => gettext("Not Open"),
TopToggleState::Off => i18n_fmt!(
i18n_fmt("Not Open ({})", self.imp().note_name.get())
),
TopToggleState::Muted => i18n_fmt!(
// translators: The text between the `{}` markers is the note of the muted string.
i18n_fmt("Muted ({})", self.imp().note_name.get())
),
TopToggleState::Open => i18n_fmt!(
// translators: The text between the `{}` markers is the note of the open string. Open is an adjective not a verb.
// translators: The text between the `{}` markers is the note of the open string. "Open" is an adjective, not a verb.
i18n_fmt("Open ({})", self.imp().note_name.get())
),
};
Expand Down

0 comments on commit 1368101

Please sign in to comment.