From 0fa9cf0d4cf09dfdf78f961769468e983fc7c299 Mon Sep 17 00:00:00 2001 From: Daltro Augusto Date: Fri, 11 Apr 2025 02:22:37 -0300 Subject: [PATCH] improved pt_br and a bit more of i18n cause why not --- res/translations/en.json | 5 +++++ res/translations/pt_BR.json | 9 ++++++++- ui/dialogs/settingsdialog.go | 6 +++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/res/translations/en.json b/res/translations/en.json index 262c0b5..22617a8 100644 --- a/res/translations/en.json +++ b/res/translations/en.json @@ -38,6 +38,7 @@ "Autoselect device": "Autoselect device", "Back": "Back", "Bit rate": "Bit rate", + "Bold font": "Bold font", "BPM": "BPM", "Broadcast": "Broadcast", "Cancel": "Cancel", @@ -105,6 +106,7 @@ "Is favorite": "Is favorite", "Is not favorite": "Is not favorite", "Language": "Language", + "Larger": "Larger", "Last played": "Last played", "Live": "Live", "Locally": "Locally", @@ -123,6 +125,8 @@ "Name (A-Z)": "Name (A-Z)", "Next": "Next", "Nickname": "Nickname", + "Normal": "Normal", + "Normal font": "Normal font", "Now Playing": "Now Playing", "No new version found": "No new version found", "No radio stations available": "No radio stations available", @@ -197,6 +201,7 @@ "Skip duplicate tracks": "Skip duplicate tracks", "Skip SSL certificate verification": "Skip SSL certificate verification", "Skip this version": "Skip this version", + "Smaller": "Smaller", "Sort": "Sort", "Soundtrack": "Soundtrack", "Spoken Word": "Spoken Word", diff --git a/res/translations/pt_BR.json b/res/translations/pt_BR.json index 05632fe..4f337cc 100644 --- a/res/translations/pt_BR.json +++ b/res/translations/pt_BR.json @@ -38,6 +38,7 @@ "Autoselect device": "Selecionar dispositivo automaticamente", "Back": "Voltar", "Bit rate": "Taxa de bits", + "Bold font": "Fonte em negrito", "BPM": "BPM", "Broadcast": "Transmissão", "Cancel": "Cancelar", @@ -62,6 +63,7 @@ "Demo": "Demo", "_Description": "Descrição", "Disable server transcoding": "Desabilitar transcodificação no servidor", + "Disable automatic DPI adjustment": "Desabilitar ajuste automático de DPI", "Disc number": "Número do disco", "Discography": "Discografia", "discs": "discos", @@ -103,6 +105,7 @@ "Is favorite": "É favorito", "Is not favorite": "Não é favorito", "Language": "Linguagem", + "Larger": "Grande", "Last played": "Tocados recentemente", "Live": "Ao Vivo", "Locally": "Localmente", @@ -115,12 +118,15 @@ "min": "min", "minutes of track have been played": "minutos da faixa foram tocados", "Mixtape": "Mixtape", + "Mode": "Modo", "Mute": "Mudo", "My Server": "Meu Servidor", "Name": "Nome", "Name (A-Z)": "Nome (A-Z)", "Next": "Próximo", "Nickname": "Apelido", + "Normal": "Regular", + "Normal font": "Fonte regular", "Now Playing": "Tocando agora", "No new version found": "Nenhuma versão nova encontrada", "No radio stations available": "Nenhuma estação de rádio disponível", @@ -142,7 +148,7 @@ "Play next": "Reproduzir próximo", "Play Queue": "Reproduzir fila", "Play random": "Reproduzir aleatoriamente", - "Playback": "Playback", + "Playback": "Reprodução", "Playing": "Tocando", "Playlist": "Lista de reprodução", "Playlists": "Listas de reprodução", @@ -194,6 +200,7 @@ "Skip duplicate tracks": "Pular faixas duplicadas", "Skip SSL certificate verification": "Pular verificação do certificado SSL", "Skip this version": "Pular esta versão", + "Smaller": "Pequena", "Soundtrack": "Trilha Sonora", "Spoken Word": "Palavra Falada", "Startup page": "Página ao iniciar", diff --git a/ui/dialogs/settingsdialog.go b/ui/dialogs/settingsdialog.go index cffce9f..7a37247 100644 --- a/ui/dialogs/settingsdialog.go +++ b/ui/dialogs/settingsdialog.go @@ -501,7 +501,7 @@ func (s *SettingsDialog) createAppearanceTab(window fyne.Window) *container.TabI s.doChooseTTFFile(window, boldFontEntry) }) - uiScaleRadio := widget.NewRadioGroup([]string{"Smaller", "Normal", "Larger"}, func(choice string) { + uiScaleRadio := widget.NewRadioGroup([]string{lang.L("Smaller"), lang.L("Normal"), lang.L("Larger")}, func(choice string) { s.config.Application.UIScaleSize = choice s.setRestartRequired() }) @@ -531,8 +531,8 @@ func (s *SettingsDialog) createAppearanceTab(window fyne.Window) *container.TabI s.newSectionSeparator(), widget.NewRichText(&widget.TextSegment{Text: lang.L("Application font"), Style: util.BoldRichTextStyle}), container.New(layout.NewFormLayout(), - widget.NewLabel("Normal font"), container.NewBorder(nil, nil, nil, normalFontBrowse, normalFontEntry), - widget.NewLabel("Bold font"), container.NewBorder(nil, nil, nil, boldFontBrowse, boldFontEntry), + widget.NewLabel(lang.L("Normal font")), container.NewBorder(nil, nil, nil, normalFontBrowse, normalFontEntry), + widget.NewLabel(lang.L("Bold font")), container.NewBorder(nil, nil, nil, boldFontBrowse, boldFontEntry), ), )) }