few translation fixes

This commit is contained in:
Drew Weymouth
2024-08-19 07:49:40 -07:00
parent d958e31cda
commit d1d958644a
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -88,7 +88,7 @@ func NewSettingsDialog(
} }
s.promptText = widget.NewRichTextWithText("") s.promptText = widget.NewRichTextWithText("")
s.content = container.NewVBox(tabs, widget.NewSeparator(), 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 { if s.OnDismiss != nil {
s.OnDismiss() s.OnDismiss()
} }
@@ -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) { replayGainSelect.OnChanged = func(_ string) {
switch replayGainSelect.SelectedIndex() { switch replayGainSelect.SelectedIndex() {
case 0: case 0:
+1 -1
View File
@@ -100,7 +100,7 @@ func (t *TrackInfoDialog) CreateRenderer() fyne.WidgetRenderer {
copyBtn.IconSize = widgets.IconButtonSizeSmaller copyBtn.IconSize = widgets.IconButtonSizeSmaller
btnCtr := container.New(layout.NewCustomPaddedLayout(8, 0, 10, 0), btnCtr := container.New(layout.NewCustomPaddedLayout(8, 0, 10, 0),
container.NewVBox(copyBtn, layout.NewSpacer())) 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)) c.Add(newFormText(t.track.FilePath, false))
addFormRow(c, lang.L("Content type"), t.track.ContentType) addFormRow(c, lang.L("Content type"), t.track.ContentType)