mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Translating toast.
This commit is contained in:
@@ -171,7 +171,7 @@ namespace MusicApp
|
||||
}
|
||||
else
|
||||
{
|
||||
Toast.MakeText(this, "Can't play non youtube video.", ToastLength.Short).Show();
|
||||
Toast.MakeText(this, Resource.String.cant_play_non_youtube, ToastLength.Short).Show();
|
||||
Finish();
|
||||
}
|
||||
}
|
||||
@@ -930,7 +930,7 @@ namespace MusicApp
|
||||
snackBar.Show();
|
||||
}
|
||||
else
|
||||
Toast.MakeText(Application.Context, activity.GetString(Resource.String.update_no_internet), ToastLength.Short).Show();
|
||||
Toast.MakeText(Application.Context, Resource.String.update_no_internet, ToastLength.Short).Show();
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -985,7 +985,7 @@ namespace MusicApp
|
||||
snackBar.Show();
|
||||
}
|
||||
else
|
||||
Toast.MakeText(Application.Context, activity.GetString(Resource.String.up_to_date), ToastLength.Short).Show();
|
||||
Toast.MakeText(Application.Context, Resource.String.up_to_date, ToastLength.Short).Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1004,7 +1004,7 @@ namespace MusicApp
|
||||
snackBar.Show();
|
||||
}
|
||||
else
|
||||
Toast.MakeText(Application.Context, activity.GetString(Resource.String.beta_available), ToastLength.Short).Show();
|
||||
Toast.MakeText(Application.Context, Resource.String.beta_available, ToastLength.Short).Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
item = CompleteItem(item);
|
||||
if (item.YoutubeID == null)
|
||||
{
|
||||
Toast.MakeText(MainActivity.instance, "Song can't be found on youtube, can't add it to a youtube playlist.", ToastLength.Long).Show();
|
||||
Toast.MakeText(MainActivity.instance, Resource.String.playlist_add_song_not_found, ToastLength.Long).Show();
|
||||
Playlists.Remove(Loading);
|
||||
adapter.NotifyItemRemoved(Playlists.Count);
|
||||
return;
|
||||
@@ -473,7 +473,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
if (!await MainActivity.instance.WaitForYoutube())
|
||||
{
|
||||
Toast.MakeText(MainActivity.instance, "Error while loading.\nCheck your internet connection and check if your logged in.", ToastLength.Long).Show();
|
||||
Toast.MakeText(MainActivity.instance, Resource.String.youtube_loading_error, ToastLength.Long).Show();
|
||||
Playlists.Remove(Loading);
|
||||
adapter.NotifyItemRemoved(Playlists.Count);
|
||||
return;
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
}
|
||||
else
|
||||
{
|
||||
Android.Widget.Toast.MakeText(this, "Can't delete this file for now, try again later.", Android.Widget.ToastLength.Short).Show();
|
||||
Android.Widget.Toast.MakeText(this, Resource.String.cant_delete, Android.Widget.ToastLength.Short).Show();
|
||||
}
|
||||
ListView.GetAdapter().NotifyItemChanged(morePosition);
|
||||
morePosition = 0;
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
catch (DirectoryNotFoundException)
|
||||
{
|
||||
Handler handler = new Handler(Looper.MainLooper);
|
||||
handler.Post(() => { Toast.MakeText(Application.Context, "Download path do not exist anymore, please change it in the settings", ToastLength.Long).Show(); });
|
||||
handler.Post(() => { Toast.MakeText(Application.Context, Resource.String.download_path_error, ToastLength.Long).Show(); });
|
||||
Cancel();
|
||||
}
|
||||
catch
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
await Task.Delay(10);
|
||||
Android.Media.MediaScannerConnection.ScanFile(this, new string[] { song.Path }, null, null);
|
||||
|
||||
Toast.MakeText(this, "Changes saved.", ToastLength.Short).Show();
|
||||
Toast.MakeText(this, Resource.String.changes_saved, ToastLength.Short).Show();
|
||||
}
|
||||
|
||||
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
|
||||
@@ -264,7 +264,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
{
|
||||
if (song.YoutubeID == "")
|
||||
{
|
||||
Toast.MakeText(this, "Can't get meta data on youtube, youtubeID isn't set.", ToastLength.Short).Show();
|
||||
Toast.MakeText(this, Resource.String.metdata_error_noid, ToastLength.Short).Show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1435,7 +1435,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
showToast = true;
|
||||
|
||||
if(showToast)
|
||||
Toast.MakeText(MainActivity.instance, "Pushing current queue to the cast, please wait...", ToastLength.Long).Show();
|
||||
Toast.MakeText(MainActivity.instance, Resource.String.cast_queue_push, ToastLength.Long).Show();
|
||||
|
||||
for (int i = 0; i < queue.Count; i++)
|
||||
{
|
||||
@@ -1444,7 +1444,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
}
|
||||
|
||||
if(showToast)
|
||||
Toast.MakeText(MainActivity.instance, "Done, start playing!", ToastLength.Short).Show();
|
||||
Toast.MakeText(MainActivity.instance, Resource.String.cast_queue_pushed, ToastLength.Short).Show();
|
||||
RemotePlayer.QueueLoad(queue.ConvertAll(GetQueueItem).ToArray(), currentID, 0, CurrentPosition, null);
|
||||
|
||||
if (noisyRegistered)
|
||||
|
||||
@@ -631,7 +631,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
if (!await MainActivity.instance.WaitForYoutube())
|
||||
{
|
||||
Toast.MakeText(Android.App.Application.Context, "Error while loading.\nCheck your internet connection and check if your logged in.", ToastLength.Long).Show();
|
||||
Toast.MakeText(Android.App.Application.Context, Resource.String.youtube_loading_error, ToastLength.Long).Show();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
if (!await MainActivity.instance.WaitForYoutube())
|
||||
{
|
||||
Toast.MakeText(Android.App.Application.Context, "Error while loading.\nCheck your internet connection and check if your logged in.", ToastLength.Long).Show();
|
||||
Toast.MakeText(Android.App.Application.Context, Resource.String.youtube_loading_error, ToastLength.Long).Show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -645,7 +645,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
snackBar.Show();
|
||||
}
|
||||
|
||||
Toast.MakeText(Android.App.Application.Context, "Downloading...", ToastLength.Short).Show();
|
||||
Toast.MakeText(Android.App.Application.Context, Resource.String.downloading, ToastLength.Short).Show();
|
||||
Context context = Android.App.Application.Context;
|
||||
Intent intent = new Intent(context, typeof(Downloader));
|
||||
context.StartService(intent);
|
||||
@@ -1049,7 +1049,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
return;
|
||||
|
||||
if (showToast)
|
||||
Toast.MakeText(Android.App.Application.Context, "Syncing...", ToastLength.Short).Show();
|
||||
Toast.MakeText(Android.App.Application.Context, Resource.String.syncing, ToastLength.Short).Show();
|
||||
|
||||
List<string> names = new List<string>();
|
||||
List<string> videoIDs = new List<string>();
|
||||
|
||||
@@ -88,6 +88,17 @@
|
||||
<string name="playlist_already_saved">Cette playlist a déja été ajouté a votre bibliothèque.</string>
|
||||
<string name="playlist_not_found">Aucune playlist n\'existe avec cet id ou cet url.</string>
|
||||
|
||||
<!--Edit metadata-->
|
||||
<string name="title">Titre</string>
|
||||
<string name="artist">Artiste</string>
|
||||
<string name="album">Album</string>
|
||||
<string name="youtubeid">Youtube ID</string>
|
||||
<string name="change_albumart">Changer d\'image d\'album</string>
|
||||
<string name="pick_album_local">Choisir une image depuis le stockage interne</string>
|
||||
<string name="download_albumart">Télécharger la couverture depuis youtube</string>
|
||||
<string name="download_meta">Télécharger les metadata depuis youtube</string>
|
||||
<string name="undo_change">Annuler les modifications</string>
|
||||
|
||||
<!--Settings-->
|
||||
<string name="apply">Appliquer</string>
|
||||
<string name="cancel">Annuler</string>
|
||||
@@ -114,7 +125,7 @@
|
||||
<string name="log_in">CONNECTION</string>
|
||||
<string name="log_out">DECONNECTION</string>
|
||||
|
||||
<!--Snackbars-->
|
||||
<!--Snackbars and others-->
|
||||
<string name="undo">Annuler</string>
|
||||
|
||||
<string name="no_permission">Permission refusée, impossible de completer cette action.</string>
|
||||
@@ -130,15 +141,4 @@
|
||||
<string name="beta_available">Une version beta est disponible.</string>
|
||||
<string name="downloading_update">Téléchargement en cours, vous serez informer lorsque l\'installation sera prète.</string>
|
||||
<string name="updating">Mise a jour en cours...</string>
|
||||
|
||||
<!--Edit metadata-->
|
||||
<string name="title">Titre</string>
|
||||
<string name="artist">Artiste</string>
|
||||
<string name="album">Album</string>
|
||||
<string name="youtubeid">Youtube ID</string>
|
||||
<string name="change_albumart">Changer d\'image d\'album</string>
|
||||
<string name="pick_album_local">Choisir une image depuis le stockage interne</string>
|
||||
<string name="download_albumart">Télécharger la couverture depuis youtube</string>
|
||||
<string name="download_meta">Télécharger les metadata depuis youtube</string>
|
||||
<string name="undo_change">Annuler les modifications</string>
|
||||
</resources>
|
||||
@@ -72,7 +72,11 @@
|
||||
<string name="lives">Lives</string>
|
||||
<string name="channels">Channels</string>
|
||||
<string name="download_path_not_set">Download path not set, using default one.</string>
|
||||
<string name="download_path_error">Download path do not exist anymore, please change it in the settings.</string>
|
||||
<string name="set_path">Set path</string>
|
||||
<string name="downloading">Downloading...</string>
|
||||
<string name="syncing">Syncing...</string>
|
||||
<string name="cant_delete">Can\'t delete this file for now, try again later.</string>
|
||||
|
||||
<!--Playlists Screen-->
|
||||
<string name="local_playlists">Local playlists</string>
|
||||
@@ -87,6 +91,24 @@
|
||||
<string name="removed_from_playlist"> has been removed from the playlist.</string>
|
||||
<string name="playlist_already_saved">Playlist already added to your library.</string>
|
||||
<string name="playlist_not_found">No playlist exist with this id or link.</string>
|
||||
<string name="playlist_add_song_not_found">Song can't be found on youtube, can't add it to a youtube playlist.</string>
|
||||
|
||||
<!--Edit metadata-->
|
||||
<string name="title">Title</string>
|
||||
<string name="artist">Artist</string>
|
||||
<string name="album">Album</string>
|
||||
<string name="youtubeid">Youtube ID</string>
|
||||
<string name="change_albumart">Change Album Art</string>
|
||||
<string name="pick_album_local">Pick an album art from storage</string>
|
||||
<string name="download_albumart">Download album art on youtube</string>
|
||||
<string name="download_meta">Download metadata from youtube</string>
|
||||
<string name="undo_change">Undo changes</string>
|
||||
<string name="changes_saved">Changes saved.</string>
|
||||
<string name="metdata_error_noid">Can\'t get meta data on youtube, Youtube ID isn\'t set.</string>
|
||||
|
||||
<!--Chromecast-->
|
||||
<string name="cast_queue_push">Pushing current queue to the cast, please wait...</string>
|
||||
<string name="cast_queue_pushed">Done, start playing!</string>
|
||||
|
||||
<!--Settings-->
|
||||
<string name="apply">Apply</string>
|
||||
@@ -118,7 +140,7 @@
|
||||
<string name="log_in">LOG IN</string>
|
||||
<string name="log_out">LOG OUT</string>
|
||||
|
||||
<!--Snackbars-->
|
||||
<!--Snackbars and others-->
|
||||
<string name="undo">Undo</string>
|
||||
|
||||
<string name="no_permission">Permission denied, can\'t complete this action.</string>
|
||||
@@ -134,15 +156,5 @@
|
||||
<string name="beta_available">A beta version is available.</string>
|
||||
<string name="downloading_update">Downloading update, you will be prompt for the installation soon.</string>
|
||||
<string name="updating">Updating app...</string>
|
||||
|
||||
<!--Edit metadata-->
|
||||
<string name="title">Title</string>
|
||||
<string name="artist">Artist</string>
|
||||
<string name="album">Album</string>
|
||||
<string name="youtubeid">Youtube ID</string>
|
||||
<string name="change_albumart">Change Album Art</string>
|
||||
<string name="pick_album_local">Pick an album art from storage</string>
|
||||
<string name="download_albumart">Download album art on youtube</string>
|
||||
<string name="download_meta">Download metadata from youtube</string>
|
||||
<string name="undo_change">Undo changes</string>
|
||||
<string name="cant_play_non_youtube">Can't play non youtube video.</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user