mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
localize transient messages and the download notification
Route user-facing messages produced below the UI through a typed UiMessage (string-resource id plus format args) instead of pre-built English strings: showMessage, SyncStatus.Failed, playback errors and download toasts now resolve in the current locale at the UI edge. Subsonic and page-cap exceptions carry a UiMessage alongside their developer message, and the download progress notification is formatted from resources. Internal invariants and log tags stay plain strings.
This commit is contained in:
@@ -218,8 +218,10 @@
|
||||
<string name="download_notification_in_progress">In progress</string>
|
||||
<string name="playback_error_network">Can\'t reach the server. Check your connection.</string>
|
||||
<string name="playback_error_refused">The server refused to stream this track.</string>
|
||||
<string name="playback_error">Playback error: %1$s</string>
|
||||
<string name="star_update_failed">Could not update star</string>
|
||||
<string name="sync_offline">Offline mode is on</string>
|
||||
<string name="error_no_server">No server configured</string>
|
||||
<string name="sync_failed">Sync failed</string>
|
||||
<string name="sync_failed_detail">Sync failed: %1$s</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user