Skip to content

Commit

Permalink
added czech translation
Browse files Browse the repository at this point in the history
  • Loading branch information
icefields committed May 7, 2024
1 parent 51e1f0a commit 5644198
Show file tree
Hide file tree
Showing 21 changed files with 198 additions and 31 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,34 @@ F-Droid releases can not upgrade to other releases and it is compiled, signed an
You can select a demo instance from the login screen or login into your own server.
* * *

## Translations coming soon
## Translations
The app is currently translated in the following languages:
- English
- Czech
<br>
Work in progress:
- French
- Italian
- Japanese
<br>
I will automate translation contributions in the future, but for now you have 3 options.
- If you're an Android developer just create the resource directories and files and open a PR (`strings.xml` is where translatable strings are located).
- If you're not familiar with Android development and don't know how to create translation resources, but you are able to edit XML files: you can just grab `strings.xml`, edit it and send it back to me. I'll review it and will include it in the app in the next release.
Example (italian translation):

```
<resources>
...
<string name="albumDetailScreen_infoSection_year">Anno</string>
<string name="albumDetailScreen_infoSection_songs">Canzoni</string>
<string name="albumDetailScreen_infoSection_time">Tempo Totale</string>
<string name="playlistDetailScreen_infoSection_avgRating">Voto Medio</string>
<string name="playlistItem_songCount">%s Canzoni</string>
<string name="topBar_search_hint">Search Canzoni, Album, Artisti, Playlist</string>
...
```
- If you're not familiar with Android development and also not sure how to edit xml files, just send me a text document with the translations and I will take care of it.

* * *

## Ending Note
Expand Down
Binary file modified app/FDroid/release/app-FDroid-release.apk
Binary file not shown.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ android {
applicationId = "luci.sixsixsix.powerampache2"
minSdk = 28
targetSdk = 34
versionCode = 53
versionName = "1.00-53"
val versionQuote = "This version is powered by the beginning of the music revolution"
versionCode = 54
versionName = "1.00-54"
val versionQuote = "This version is powered by the beginning of the music revolution (FDroid first release)"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down
5 changes: 5 additions & 0 deletions app/src/FDroid/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="settings_enableDebugLogging_title">Register debug logs</string>
<string name="settings_enableDebugLogging_subtitle">Will save debug logs in the debug view accessible from Settings -> Debug Logs.\nUseful for reporting errors</string>
</resources>
4 changes: 2 additions & 2 deletions app/src/FDroid/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sharing_provider_authority_release">luci.sixsixsix.powerampache2.provider.FDroid</string>
<string name="sharing_provider_authority_debug">luci.sixsixsix.powerampache2.provider.debug.FDroid</string>
<string name="sharing_provider_authority_release" translatable="false">luci.sixsixsix.powerampache2.provider.FDroid</string>
<string name="sharing_provider_authority_debug" translatable="false">luci.sixsixsix.powerampache2.provider.debug.FDroid</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/Github/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>
4 changes: 2 additions & 2 deletions app/src/Github/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sharing_provider_authority_release">luci.sixsixsix.powerampache2.provider</string>
<string name="sharing_provider_authority_debug">luci.sixsixsix.powerampache2.provider.debug</string>
<string name="sharing_provider_authority_release" translatable="false">luci.sixsixsix.powerampache2.provider</string>
<string name="sharing_provider_authority_debug" translatable="false">luci.sixsixsix.powerampache2.provider.debug</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/PlayStore/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>
4 changes: 2 additions & 2 deletions app/src/PlayStore/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sharing_provider_authority_release">luci.sixsixsix.powerampache2.provider.playstore</string>
<string name="sharing_provider_authority_debug">luci.sixsixsix.powerampache2.provider.debug.playstore</string>
<string name="sharing_provider_authority_release" translatable="false">luci.sixsixsix.powerampache2.provider.playstore</string>
<string name="sharing_provider_authority_debug" translatable="false">luci.sixsixsix.powerampache2.provider.debug.playstore</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/debug/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sharing_provider_authority">@string/sharing_provider_authority_debug</string>
<string name="sharing_provider_authority" translatable="false">@string/sharing_provider_authority_debug</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import luci.sixsixsix.powerampache2.presentation.screens_detail.song_detail.comp
@OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class)
@Composable
fun SongDetailScreen(
// navigator: DestinationsNavigator,
mainScaffoldState: BottomSheetScaffoldState,
modifier: Modifier = Modifier,
viewModel: MainViewModel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.media3.common.util.UnstableApi
import coil.compose.AsyncImage
import luci.sixsixsix.mrlog.L
import luci.sixsixsix.powerampache2.R
import luci.sixsixsix.powerampache2.common.WeakContext
import luci.sixsixsix.powerampache2.domain.models.Song
Expand Down Expand Up @@ -238,7 +237,6 @@ fun MiniPlayerContent(
.widthIn(min = 20.dp, max = 40.dp)
.combinedClickable(
onClick = {
L.e("CLICK")
weakContext.get()?.let { context ->
Toast.makeText(context, R.string.miniPlayer_reset_alert_message, Toast.LENGTH_LONG).show()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ fun PlayerControls(
Icon(
tint = tint,
modifier = Modifier
//.fillMaxSize()
.pointerInput(Unit) {
detectTapGestures(
onLongPress = { onEvent(MainEvent.Backwards) },
Expand Down Expand Up @@ -167,7 +166,6 @@ fun PlayerControls(
}) {
Icon(
tint = tint,
//modifier = Modifier.fillMaxSize(),
imageVector = Icons.Outlined.SkipNext,
contentDescription = "SkipNext"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ fun TabbedSongDetailView(
mainViewModel: MainViewModel
) {
Column {
//SongHandleTabRow(pagerState)
HorizontalPager(
state = pagerState,
modifier = modifier
Expand Down Expand Up @@ -269,7 +268,6 @@ fun SongHandleTabRow(
text = {
Text(
text = stringResource(id = R.string.player_queue_upNext),
//color = MaterialTheme.colorScheme.onSecondary,
fontWeight = FontWeight.SemiBold,
fontSize = 15.sp,
maxLines = 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ fun SongDetailTopBar(
modifier = Modifier
.fillMaxHeight()
.padding(dimensionResource(id = R.dimen.close_handle_icon_padding)),
//contentScale = ContentScale.FillHeight,
imageVector = Icons.Default.KeyboardArrowDown,
contentDescription = "close song detail screen",
tint = MaterialTheme.colorScheme.onSurfaceVariant
Expand Down
134 changes: 134 additions & 0 deletions app/src/main/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This file contains all the translatable strings -->
<resources>
<string name="notification_channel_description">Zobrazí právě přehrávanou hudbu</string>
<string name="coming_soon">Již brzy</string>
<string name="albumDetailScreen_infoSection_songs">Písně</string>
<string name="albumDetailScreen_infoSection_time">Čas celkem</string>
<string name="playlistDetailScreen_infoSection_avgRating">Průměrné hodnocení</string>
<string name="playlistItem_songCount">%s písně</string>
<string name="topBar_search_hint">Hledat písně, alba, umělce, playlisty</string>
<string name="main_tab_title_albums">Alba</string>
<string name="main_tab_title_home">Domů</string>
<string name="main_tab_title_songs">Písně</string>
<string name="main_tab_title_artists">Umělci</string>
<string name="main_tab_title_playlists">Playlisty</string>
<string name="loginScreen_username">Uživatelské jméno</string>
<string name="loginScreen_signUp_email">Email</string>
<string name="loginScreen_fullname">Celé jméno (volitelné)</string>
<string name="loginScreen_password">Heslo</string>
<string name="loginScreen_password_repeat">Potvrzení hesla</string>
<string name="loginScreen_register_success">Uživatel úspěšně registrován</string>
<string name="loginScreen_server_url">URL serveru</string>
<string name="loginScreen_signUp_requiredField">Toto políčko je poovinné</string>
<string name="loginScreen_auth_token">Autorizační token</string>
<string name="loginScreen_login">Přihlásit</string>
<string name="loginScreen_signup">Registrovat</string>
<string name="loginScreen_demo_server">Ukázka</string>
<string name="home_section_title_recent">Nedávo hrané</string>
<string name="home_section_title_flagged">Oblíbené</string>
<string name="home_section_title_frequent">Často hrané</string>
<string name="home_section_title_highest">Nejlepší hodnocené</string>
<string name="home_section_title_newest">Nově přidáno</string>
<string name="home_section_title_playlists">Playlisty</string>
<string name="home_section_title_moreAlbums">Více albumů</string>
<string name="home_section_title_loading">Načítám</string>
<string name="home_artist_subtitle_item">Umělec</string>
<string name="back_content_description">Zpět</string>
<string name="search_content_description">Hledat</string>
<string name="menu_content_description">Rozbalovací menu</string>
<string name="error_io_exception">Nelze načíst data. Funguje připojeni k internetu? Pokud problém přetrvává, zkuste aplikaci ukončit a spustit znovu</string>
<string name="error_http_exception">Nelze načíst data. Funguje připojeni k internetu? Pokud problém přetrvává, zkuste aplikaci ukončit a spustit znovu</string>
<string name="error_empty_result">Žádné výsledky k zobrazení. Nebo se snažíte přidat/odebrat něco, co není na serveru</string>
<string name="error_duplicate">Duplicitní položka</string>
<string name="error_user_fetch">Vyskytl se problém při načítání uživatele ze serveru</string>
<string name="error_offline">Nelze se připojit k internetu</string>
<string name="offlineMode_switch_title">Offline režim</string>
<string name="quality_veryHigh_title">Velmi vysoká kvalita</string>
<string name="quality_veryHigh_subtitle">320kbps nebo flac (žádné překódování)</string>
<string name="quality_high_title">Vysoká kvalita</string>
<string name="quality_medium_title">Střední kvalita</string>
<string name="quality_mediumLow_title">Střední-nízká kvalita</string>
<string name="quality_low_title">Nízká kvalita</string>
<string name="theme_system_title">Systémové téma</string>
<string name="theme_dark_title">Tmavé</string>
<string name="theme_light_title">Světlé</string>
<string name="theme_system_materialYou_title">MaterialYou systémové</string>
<string name="theme_dark_materialYou_title">MaterialYou tmavé</string>
<string name="theme_light_materialYou_title">MaterialYou světlé</string>
<string name="settings_equalizer">Ekvalizér</string>
<string name="settings_normalizeVolume_title">Vyrovnávání hlasitosti</string>
<string name="settings_offlineMode_title">Offline režim</string>
<string name="settings_offlineMode_subtitle">Zapnout offline režim</string>
<string name="settings_normalizeVolume_subtitle">Vynutit stejnou hlasitost pro všechny stopy</string>
<string name="settings_monoAudio_title">Mono zvuk</string>
<string name="settings_monoAudio_subtitle">Levý a pravý reproduktor budou hrát stejný zvuk</string>
<string name="settings_smartDownloads_title">Chytré stahování</string>
<string name="settings_smartDownloads_subtitle">Automaticky stahovat nejhranější písně, když je telefon nečinný</string>
<string name="settings_checkUpdatesNow_title">Kontrola dostupných aktualizací</string>
<string name="settings_autoCheckUpdates_title">Aktualizace kontrolovat automaticky</string>
<string name="settings_deleteDownloads_title">Smazat všechno stažené</string>
<string name="settings_deleteDownloads_subtitle">Toto smaže všechny stažené písně</string>
<string name="settings_deleteDownloads_success">Všechna offline hudba byla smazáná</string>
<string name="settings_deleteDownloads_fail">Vyskytl se problém při mazání offline hudby. Pokud problém přetrvává, kontaktujte vývojáře, aby opravil chybu.</string>
<string name="settings_hideDonationButtonsMenu_title">Skrýt v menu tlačítka k přispění na aplikaci</string>
<string name="settings_serverInfo_title">Server</string>
<string name="settings_serverInfo_version">Verze</string>
<string name="settings_serverInfo_compatible">Kompatibilní</string>
<string name="settings_userInfo_username">Uživatelské jméno</string>
<string name="settings_userInfo_fullName">Celé jméno</string>
<string name="settings_userInfo_email">E-mail</string>
<string name="settings_userInfo_website">Webová stránka</string>
<string name="settings_userInfo_state">Stát</string>
<string name="settings_userInfo_city">Město</string>
<string name="settings_userInfo_id">ID</string>
<string name="player_buttonText_artist">Umělec</string>
<string name="player_buttonText_album">Album</string>
<string name="player_buttonText_add">Přidat</string>
<string name="player_buttonText_download">Stažené</string>
<string name="player_buttonText_share">Sdílet</string>
<string name="player_buttonText_info">Info</string>
<string name="player_queue_upNext">Následující</string>
<string name="player_queue_lyrics">Texty</string>
<string name="logout_offline_warning">Prosím, před odhlášením vypněte Offline režim</string>
<string name="offline_noData_warning">Žádné písně nejsou ještě staženy</string>
<string name="miniPlayer_reset_alert_message">DLOUHÝ STISK tlačítka zastaví přehrávání hudby a obnoví frontu</string>
<string name="miniPlayer_reset_alert_title">ZASTAVIT/RESETOVAT</string>
<string name="dialog_create">VYTVOŘIT</string>
<string name="warning_playlist_download">Před stahováním prosím počkejte na načtení celého playlistu</string>
<string name="warning_playlist_server">Přidání písní, pokud je verze serveru nižší než 6.3, může to trvat i minutu nebo déle</string>
<string name="warning_playlist_adding">Písničky se přidávají do seznamu skladeb. Opustěním obrazovky se to přeruší</string>
<string name="warning_playlist_adding_title">Opustit obrazovku?</string>
<string name="warning_playlist_adding_stay">Zůstat</string>
<string name="warning_playlist_adding_leave">Přeci odejít</string>
<string name="warning_song_remove_title">ODEBRAT PÍSEŇ</string>
<string name="dropdownMenu_item_download">Stáhnout</string>
<string name="dropdownMenu_item_export">Export stažené písně</string>
<string name="dropdownMenu_item_playNext">Přehrát další</string>
<string name="dropdownMenu_item_addToQueue">Přidat do fronty</string>
<string name="dropdownMenu_item_addToPlaylist">Přidat do playlistu</string>
<string name="dropdownMenu_item_goToAlbum">Jít na album</string>
<string name="dropdownMenu_item_goToArtist">Jít na umělce</string>
<string name="dropdownMenu_item_share">Sdílet</string>
<string name="version_quote_title">Citát dané verze</string>
<string name="about_appVersion_title">Verze aplikace</string>
<string name="about_license_title">Licence</string>
<string name="about_contact_title">Kontakt přes Telegram a Mastodon</string>
<string name="about_sourceCode_title">Zdrojový kód</string>
<string name="albumDetailScreen_infoSection_year">Rok</string>

<!-- untranslated strings that might be translatable in other languages,
ie. in italian: Server Musicale Dogmazic -->
<string name="loginScreen_dogmazic_server">Dogmazic Music Server</string>
<string name="crash_mail_subject">Crash Report</string>
<string name="crash_mail_body">Crash Report Data. Thanks</string>
<string name="quality_high_subtitle">256kbps</string>
<string name="quality_medium_subtitle">192kbps</string>
<string name="quality_mediumLow_subtitle">128kbps</string>
<string name="quality_low_subtitle">96kbps</string>
<string name="settings_debugLogs_title">Debug Logs</string>
<string name="settings_enableDebugLogging_title">Enable anonymous debug logging</string>
<string name="settings_enableDebugLogging_subtitle">Will send crash and error stack-traces to the developer to fix issues with the app</string>
<string name="about_flavour">Flavor</string>

</resources>
9 changes: 7 additions & 2 deletions app/src/main/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- <string name="sharing_provider_authority" translatable="false">luci.sixsixsix.powerampache2.provider</string>-->
</resources>
<string name="app_name" translatable="false">Power Ampache 2</string>
<string name="notification_channel_name" translatable="false">Music Channel</string>

<!-- Debug String, only used for development -->
<string name="loginScreen_local_server" translatable="false">Local Development Server</string>
<string name="loginScreen_remote_server" translatable="false">Remote Debug Server</string>
</resources>
4 changes: 0 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<resources>
<string name="app_name">Power Ampache 2</string>
<string name="notification_channel_name">Music Channel</string>
<string name="notification_channel_description">Shows the currently playing music</string>
<string name="coming_soon">Coming Soon</string>

Expand All @@ -27,8 +25,6 @@
<string name="loginScreen_login">Login</string>
<string name="loginScreen_signup">Sign Up</string>
<string name="loginScreen_demo_server">Demo</string>
<string name="loginScreen_local_server">Local Development Server</string>
<string name="loginScreen_remote_server">Remote Debug Server</string>
<string name="loginScreen_dogmazic_server">Dogmazic Music Server</string>
<string name="home_section_title_recent">Recently Played</string>
<string name="home_section_title_flagged">Favourites</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/release/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sharing_provider_authority">@string/sharing_provider_authority_release</string>
<string name="sharing_provider_authority" translatable="false">@string/sharing_provider_authority_release</string>
</resources>
5 changes: 5 additions & 0 deletions metadata/en-US/changelogs/54.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Czech translations
- fixed UX issue with play button
- updated jetpack library
- improved loading songs from albums and playlists
- prepared build for FDroid
Loading

0 comments on commit 5644198

Please sign in to comment.