Skip to content

Commit

Permalink
Fix capitalization of some menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jul 11, 2024
1 parent 9bb02f0 commit fd83013
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions psst-gui/src/ui/album.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ fn album_menu(album: &Arc<Album>, library: &Arc<Library>) -> Menu<AppState> {
let more_than_one_artist = album.artists.len() > 1;
let title = if more_than_one_artist {
LocalizedString::new("menu-item-show-artist-name")
.with_placeholder(format!("Go To Artist “{}”", artist_link.name))
.with_placeholder(format!("Go to Artist “{}”", artist_link.name))
} else {
LocalizedString::new("menu-item-show-artist").with_placeholder("Go To Artist")
LocalizedString::new("menu-item-show-artist").with_placeholder("Go to Artist")
};
menu = menu.entry(
MenuItem::new(title)
Expand Down
2 changes: 1 addition & 1 deletion psst-gui/src/ui/episode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn episode_menu(episode: &Episode, _library: &Arc<Library>) -> Menu<AppState
let mut menu = Menu::empty();

menu = menu.entry(
MenuItem::new(LocalizedString::new("menu-item-show-show").with_placeholder("Go To Show"))
MenuItem::new(LocalizedString::new("menu-item-show-show").with_placeholder("Go to Show"))
.command(cmd::NAVIGATE.with(Nav::ShowDetail(episode.show.clone()))),
);

Expand Down
5 changes: 4 additions & 1 deletion psst-gui/src/ui/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ use crate::{
AppState, AudioAnalysis, Episode, NowPlaying, Playable, PlayableMatcher, Playback,
PlaybackOrigin, PlaybackState, QueueBehavior, ShowLink, Track,
},
widget::{icons::{self, SvgIcon}, Empty, Maybe, MyWidgetExt, RemoteImage},
widget::{
icons::{self, SvgIcon},
Empty, Maybe, MyWidgetExt, RemoteImage,
},
};

use super::{episode, library, theme, track, utils};
Expand Down
10 changes: 5 additions & 5 deletions psst-gui/src/ui/track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ pub fn track_menu(
let more_than_one_artist = track.artists.len() > 1;
let title = if more_than_one_artist {
LocalizedString::new("menu-item-show-artist-name")
.with_placeholder(format!("Go To Artist “{}”", artist_link.name))
.with_placeholder(format!("Go to Artist “{}”", artist_link.name))
} else {
LocalizedString::new("menu-item-show-artist").with_placeholder("Go To Artist")
LocalizedString::new("menu-item-show-artist").with_placeholder("Go to Artist")
};
menu = menu.entry(
MenuItem::new(title)
Expand All @@ -246,7 +246,7 @@ pub fn track_menu(
if let Some(album_link) = track.album.as_ref() {
menu = menu.entry(
MenuItem::new(
LocalizedString::new("menu-item-show-album").with_placeholder("Go To Album"),
LocalizedString::new("menu-item-show-album").with_placeholder("Go to Album"),
)
.command(cmd::NAVIGATE.with(Nav::AlbumDetail(album_link.to_owned()))),
);
Expand Down Expand Up @@ -322,7 +322,7 @@ pub fn track_menu(
menu = menu.entry(
MenuItem::new(
LocalizedString::new("menu-item-remove-from-playlist")
.with_placeholder("Remove from this playlist"),
.with_placeholder("Remove from This Playlist"),
)
.command(playlist::REMOVE_TRACK.with(PlaylistRemoveTrack {
link: playlist.to_owned(),
Expand All @@ -334,7 +334,7 @@ pub fn track_menu(

menu = menu.entry(
MenuItem::new(
LocalizedString::new("menu-item-add-to-queue").with_placeholder("Add Track To Queue"),
LocalizedString::new("menu-item-add-to-queue").with_placeholder("Add Track to Queue"),
)
//PlayerCommand
.command(cmd::ADD_TO_QUEUE.with((
Expand Down

0 comments on commit fd83013

Please sign in to comment.