mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
localize user-facing text into string resources
Move every exposed UI string into res/values/strings.xml (+ plurals) and read it via stringResource/pluralStringResource or getString, with 27 locale files carried over from the Flutter app's Weblate translations. Only strings whose English is unchanged reuse an old translation; reworded ones get fresh keys. Persisted download failures become a DownloadError enum mapped to string resources (stored by name, unknown legacy values degrade to Failed), the per-app locale config is generated by AGP, and StringResourcesTest guards locale keys and placeholders.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="actions_cancel">Cancelar</string>
|
||||
<string name="actions_delete">Deletar</string>
|
||||
<string name="actions_download">Download</string>
|
||||
<string name="actions_download_cancel">Cancelar download</string>
|
||||
<string name="actions_star">Estrela</string>
|
||||
<string name="actions_unstar">Sem estrela</string>
|
||||
<string name="controls_shuffle">Misturar</string>
|
||||
<string name="navigation_tabs_library">Biblioteca</string>
|
||||
<string name="navigation_tabs_settings">Configurações</string>
|
||||
<plurals name="resources_album_count">
|
||||
<item quantity="one">%1$d album</item>
|
||||
<item quantity="other">%1$d albums</item>
|
||||
</plurals>
|
||||
<string name="resources_filter_album">Álbum</string>
|
||||
<string name="resources_filter_artist">Artista</string>
|
||||
<string name="resources_filter_genre">Gênero</string>
|
||||
<string name="resources_filter_starred">Estrelado por</string>
|
||||
<string name="resources_filter_year">Ano</string>
|
||||
<plurals name="resources_song_count">
|
||||
<item quantity="one">%1$d song</item>
|
||||
<item quantity="other">%1$d songs</item>
|
||||
</plurals>
|
||||
<string name="resources_sort_by_artist">Artista</string>
|
||||
<string name="resources_sort_by_frequently_played">Mais tocados</string>
|
||||
<string name="resources_sort_by_name">Nome</string>
|
||||
<string name="resources_sort_by_recently_played">Tocado recentemente</string>
|
||||
<string name="resources_sort_by_title">Título</string>
|
||||
<string name="resources_sort_by_year">Ano</string>
|
||||
<string name="search_input_placeholder">Pesquisar</string>
|
||||
<string name="settings_about_actions_licenses">Licenças</string>
|
||||
<string name="settings_about_name">Sobre</string>
|
||||
<string name="settings_network_name">Rede</string>
|
||||
<string name="settings_network_options_offline_mode">Modo off-line</string>
|
||||
<string name="settings_network_options_offline_mode_off">Usar a internet para sincronizar as músicas.</string>
|
||||
<string name="settings_network_options_offline_mode_on">Não usar a Internet para sincronizar ou tocar músicas.</string>
|
||||
<string name="settings_network_options_stream_format_server_default">Usar servidor padrão</string>
|
||||
<string name="settings_network_values_kbps">%1$skbps</string>
|
||||
<string name="settings_network_values_unlimited_kbps">Ilimitado</string>
|
||||
<string name="settings_servers_actions_test_connection">Testar conexão</string>
|
||||
<string name="settings_servers_fields_name">Nome</string>
|
||||
<string name="settings_servers_fields_password">Senha</string>
|
||||
<string name="settings_servers_fields_username">Usuário</string>
|
||||
<string name="navigation_tabs_home">Home</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user