Skip to content

Commit

Permalink
few translation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Aug 19, 2024
1 parent d958e31 commit d1d9586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ui/dialogs/settingsdialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewSettingsDialog(
}
s.promptText = widget.NewRichTextWithText("")
s.content = container.NewVBox(tabs, widget.NewSeparator(),
container.NewHBox(s.promptText, layout.NewSpacer(), widget.NewButton("Close", func() {
container.NewHBox(s.promptText, layout.NewSpacer(), widget.NewButton(lang.L("Close"), func() {
if s.OnDismiss != nil {
s.OnDismiss()
}
Expand Down Expand Up @@ -333,7 +333,8 @@ func (s *SettingsDialog) createPlaybackTab(isLocalPlayer, isReplayGainPlayer boo
}
}

replayGainSelect := widget.NewSelect([]string{lang.L("None"), lang.L("Album"), lang.L("Track"), lang.L("Auto")}, nil)
rGainOpts := []string{lang.L("None"), lang.L("Album"), lang.L("Track"), lang.L("Auto")}
replayGainSelect := widget.NewSelect(rGainOpts, nil)
replayGainSelect.OnChanged = func(_ string) {
switch replayGainSelect.SelectedIndex() {
case 0:
Expand Down
2 changes: 1 addition & 1 deletion ui/dialogs/trackinfodialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (t *TrackInfoDialog) CreateRenderer() fyne.WidgetRenderer {
copyBtn.IconSize = widgets.IconButtonSizeSmaller
btnCtr := container.New(layout.NewCustomPaddedLayout(8, 0, 10, 0),
container.NewVBox(copyBtn, layout.NewSpacer()))
c.Add(container.NewHBox(btnCtr, newFormText(lang.L("File path"), true)))
c.Add(container.NewHBox(layout.NewSpacer(), btnCtr, newFormText(lang.L("File path"), true)))
c.Add(newFormText(t.track.FilePath, false))

addFormRow(c, lang.L("Content type"), t.track.ContentType)
Expand Down

0 comments on commit d1d9586

Please sign in to comment.