mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 03:47:23 +01:00
editor: Add some mnemonics
This commit is contained in:
parent
a16dc446d6
commit
3b02dc98a6
17 changed files with 48 additions and 28 deletions
|
|
@ -46,7 +46,8 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add recording");
|
||||
title: _("Add _recording");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $select_recording() swapped;
|
||||
|
||||
|
|
@ -68,7 +69,8 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create album");
|
||||
title: _("_Create album");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ template $MusicusEnsembleEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create ensemble");
|
||||
title: _("_Create ensemble");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ template $MusicusInstrumentEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create instrument");
|
||||
title: _("_Create instrument");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ template $MusicusPersonEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create person");
|
||||
title: _("_Create person");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow work_row {
|
||||
title: _("Select work");
|
||||
title: _("Select _work");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $select_work() swapped;
|
||||
|
||||
|
|
@ -48,7 +49,8 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
}
|
||||
|
||||
Adw.SpinRow year_row {
|
||||
title: _("Year");
|
||||
title: _("_Year");
|
||||
use-underline: true;
|
||||
|
||||
adjustment: Gtk.Adjustment {
|
||||
lower: 0;
|
||||
|
|
@ -79,7 +81,8 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add performer");
|
||||
title: _("Add _performer");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $select_person() swapped;
|
||||
|
||||
|
|
@ -111,7 +114,8 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add ensemble");
|
||||
title: _("Add _ensemble");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $select_ensemble() swapped;
|
||||
|
||||
|
|
@ -133,7 +137,8 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create recording");
|
||||
title: _("_Create recording");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ template $MusicusRoleEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create role");
|
||||
title: _("_Create role");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@ template $MusicusTracksEditor: Adw.NavigationPage {
|
|||
margin-end: 12;
|
||||
|
||||
Gtk.Label {
|
||||
label: _("Recording");
|
||||
label: _("_Recording");
|
||||
use-underline: true;
|
||||
mnemonic-widget: recording_row;
|
||||
xalign: 0;
|
||||
margin-top: 24;
|
||||
|
||||
|
|
@ -69,7 +71,8 @@ template $MusicusTracksEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add files");
|
||||
title: _("Add _files");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $add_files() swapped;
|
||||
|
||||
|
|
@ -89,7 +92,8 @@ template $MusicusTracksEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Import tracks");
|
||||
title: _("_Import tracks");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ template $MusicusTranslationEditor: Adw.Bin {
|
|||
]
|
||||
|
||||
Adw.EntryRow entry_row {
|
||||
title: _("Name");
|
||||
title: _("_Name");
|
||||
use-underline: true;
|
||||
}
|
||||
|
||||
Adw.ActionRow {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,8 @@ template $MusicusWorkEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add composer");
|
||||
title: _("Add _composer");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $add_person() swapped;
|
||||
|
||||
|
|
@ -81,7 +82,8 @@ template $MusicusWorkEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add part");
|
||||
title: _("Add _part");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $add_part() swapped;
|
||||
|
||||
|
|
@ -112,7 +114,8 @@ template $MusicusWorkEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Add instrument");
|
||||
title: _("Add _instrument");
|
||||
use-underline: true;
|
||||
activatable: true;
|
||||
activated => $add_instrument() swapped;
|
||||
|
||||
|
|
@ -134,7 +137,8 @@ template $MusicusWorkEditor: Adw.NavigationPage {
|
|||
]
|
||||
|
||||
Adw.ButtonRow save_row {
|
||||
title: _("Create work");
|
||||
title: _("_Create work");
|
||||
use-underline: true;
|
||||
activated => $save() swapped;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ impl AlbumEditor {
|
|||
.build();
|
||||
|
||||
if let Some(album) = album {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp().album_id.set(album.album_id.clone()).unwrap();
|
||||
obj.imp().name_editor.set_translation(&album.name);
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ impl MusicusEnsembleEditor {
|
|||
obj.imp().library.set(library.to_owned()).unwrap();
|
||||
|
||||
if let Some(ensemble) = ensemble {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp()
|
||||
.ensemble_id
|
||||
.set(ensemble.ensemble_id.clone())
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ impl MusicusInstrumentEditor {
|
|||
obj.imp().library.set(library.to_owned()).unwrap();
|
||||
|
||||
if let Some(instrument) = instrument {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp()
|
||||
.instrument_id
|
||||
.set(instrument.instrument_id.clone())
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ impl MusicusPersonEditor {
|
|||
obj.imp().library.set(library.to_owned()).unwrap();
|
||||
|
||||
if let Some(person) = person {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp().person_id.set(person.person_id.clone()).unwrap();
|
||||
obj.imp().name_editor.set_translation(&person.name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ impl MusicusRecordingEditor {
|
|||
.build();
|
||||
|
||||
if let Some(recording) = recording {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp()
|
||||
.recording_id
|
||||
.set(recording.recording_id.clone())
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ impl MusicusRoleEditor {
|
|||
obj.imp().library.set(library.to_owned()).unwrap();
|
||||
|
||||
if let Some(role) = role {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp().role_id.set(role.role_id.clone()).unwrap();
|
||||
obj.imp().name_editor.set_translation(&role.name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ impl TracksEditor {
|
|||
.build();
|
||||
|
||||
if let Some(recording) = recording {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.set_recording(recording);
|
||||
}
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ impl TracksEditor {
|
|||
.unwrap();
|
||||
|
||||
if !tracks.is_empty() {
|
||||
self.imp().save_row.set_title(&gettext("Save changes"));
|
||||
self.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
|
||||
for track in tracks {
|
||||
self.add_track_row(
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ impl MusicusWorkEditor {
|
|||
}
|
||||
|
||||
if let Some(work) = work {
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("_Save changes"));
|
||||
obj.imp().work_id.set(work.work_id.clone()).unwrap();
|
||||
|
||||
obj.imp().name_editor.set_translation(&work.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue