[music] translate notification text

This commit is contained in:
Erik Kiznov
2022-09-18 19:48:25 +05:00
parent c3a17ca4ca
commit 5448b2f27e
3 changed files with 7 additions and 3 deletions
@@ -136,7 +136,7 @@ public class AudioDownloader {
if (progress == playlistSize) {
onSuccess();
} else {
notification.setContentText("Downloaded " + progress + " of " + playlistSize + " tracks");
notification.setContentText(String.format(getString("playlist_download_notf"), progress, playlistSize));
notification.setProgress(playlistSize, progress, false);
}
notificationManager.notify(notificationId, notification.build());
@@ -144,7 +144,7 @@ public class AudioDownloader {
@Override
public void onSuccess() {
notification.setContentText("Download completed");
notification.setContentText(getString("player_download_finished"));
notification.setProgress(0, 0, false);
}
+2
View File
@@ -6286,4 +6286,6 @@
<string name="autocache_title">Автокеширование песен</string>
<string name="autocache_summ">Автоматически кешировать все воспроизведенные вами песни</string>
<string name="playlist_download_notf">Загружено песен: %1$d из %2$d</string>
</resources>
+3 -1
View File
@@ -2834,7 +2834,7 @@ or deleted"</string>
<string name="place">Map</string>
<string name="places">Places</string>
<string name="play_queue">Up next</string>
<string name="player_download_finished">Download complete</string>
<string name="player_download_finished">Download completed</string>
<string name="player_download_pause">Pause</string>
<string name="player_download_repeat">Repeat</string>
<string name="player_download_resume">Resume</string>
@@ -6424,4 +6424,6 @@ May look like a fake leaving the online"</string>
<string name="autocache_title">Autocache songs</string>
<string name="autocache_summ">Automatically cache all songs you have played</string>
<string name="playlist_download_notf">Downloaded %1$d of %2$d tracks</string>
</resources>