[music] translate strings
This commit is contained in:
@@ -46,8 +46,8 @@ public class MusicNotificationBuilder {
|
||||
public static NotificationCompat.Builder buildAllAudiosDownloadNotification(int id) {
|
||||
var notificationBuilder = new NotificationCompat.Builder(AndroidUtils.getGlobalContext(), NotificationChannels.MUSIC_PLAYLIST_DOWNLOAD_CHANNEL_ID)
|
||||
.setSmallIcon(android.R.drawable.stat_sys_download)
|
||||
.setContentTitle("Скачивание всех аудио пользователя " + AccountManagerUtils.getUsername())
|
||||
.setContentText("Все аудио")
|
||||
.setContentTitle(getString("notf_audio_dl_user") + " " + AccountManagerUtils.getUsername())
|
||||
.setContentText(getString("all_audio"))
|
||||
.setPriority(NotificationCompat.PRIORITY_LOW)
|
||||
.setCategory(NotificationCompat.CATEGORY_PROGRESS)
|
||||
.setAutoCancel(true)
|
||||
|
||||
@@ -98,7 +98,7 @@ public class MediaFragment extends MaterialPreferenceToolbarFragment {
|
||||
findPreference("cached_tracks").setSummary(String.format(AndroidUtils.getString("cached_tracks_counter"), CacheDatabaseDelegate.getTrackCount()));
|
||||
findPreference("cached_tracks").setOnPreferenceClickListener(preference -> {
|
||||
if (CacheDatabaseDelegate.getTrackCount() == 0){
|
||||
sendToast("У вас отсутствуют кешированные песни");
|
||||
sendToast(AndroidUtils.getString("no_cache_error"));
|
||||
} else {
|
||||
delcache(requireContext());
|
||||
}
|
||||
@@ -211,12 +211,12 @@ public class MediaFragment extends MaterialPreferenceToolbarFragment {
|
||||
|
||||
private void dlaudio(Context ctx) {
|
||||
VkAlertDialog.Builder alertDialog = new VkAlertDialog.Builder(ctx);
|
||||
alertDialog.setTitle("Способ скачивания");
|
||||
alertDialog.setMessage("Выберите способ скачивания всех своих аудио (без плейлистов)");
|
||||
alertDialog.setPositiveButton("В кеш", (dialog, which) -> {
|
||||
alertDialog.setTitle(AndroidUtils.getString("download_method"));
|
||||
alertDialog.setMessage(AndroidUtils.getString("download_method_desc"));
|
||||
alertDialog.setPositiveButton(AndroidUtils.getString("download_method_cache"), (dialog, which) -> {
|
||||
executor.submit(AudioDownloader::cacheAllAudios);
|
||||
});
|
||||
alertDialog.setNegativeButton("Как mp3", (dialog, which) -> {
|
||||
alertDialog.setNegativeButton(AndroidUtils.getString("download_method_mp3"), (dialog, which) -> {
|
||||
executor.submit(AudioDownloader::downloadAllAudios);
|
||||
});
|
||||
var alert = alertDialog.create();
|
||||
|
||||
Reference in New Issue
Block a user