Finishing translations.

This commit is contained in:
Tristan Roux
2019-02-09 17:52:15 +01:00
parent 02a786e226
commit 48c94e51c2
3 changed files with 27 additions and 3 deletions

View File

@@ -15,12 +15,22 @@ namespace MusicApp.Resources.Portable_Class
{
DownloadHolder holder = (DownloadHolder)viewHolder;
holder.Title.Text = Downloader.queue[position].name;
holder.Status.Text = Downloader.queue[position].State.ToString();
switch (Downloader.queue[position].State)
{
case DownloadState.Initialization:
holder.Status.Text = Downloader.instance.GetString(Resource.String.initialization);
holder.Status.Visibility = ViewStates.Visible;
holder.Progress.Visibility = ViewStates.Visible;
holder.Progress.Indeterminate = true;
holder.Title.Alpha = 1f;
if (MainActivity.Theme == 1)
holder.Title.SetTextColor(Color.White);
else
holder.Title.SetTextColor(Color.Black);
break;
case DownloadState.MetaData:
holder.Status.Text = Downloader.instance.GetString(Resource.String.metadata);
holder.Status.Visibility = ViewStates.Visible;
holder.Progress.Visibility = ViewStates.Visible;
holder.Progress.Indeterminate = true;
@@ -31,6 +41,7 @@ namespace MusicApp.Resources.Portable_Class
holder.Title.SetTextColor(Color.Black);
break;
case DownloadState.Downloading:
holder.Status.Text = Downloader.instance.GetString(Resource.String.downloading_status);
holder.Status.Visibility = ViewStates.Visible;
holder.Progress.Visibility = ViewStates.Visible;
holder.Title.Alpha = 1f;
@@ -51,11 +62,13 @@ namespace MusicApp.Resources.Portable_Class
holder.Title.SetTextColor(Color.Black);
break;
case DownloadState.Completed:
holder.Status.Text = Downloader.instance.GetString(Resource.String.completed);
holder.Status.Visibility = ViewStates.Gone;
holder.Progress.Visibility = ViewStates.Invisible;
holder.Title.SetTextColor(Color.Argb(255, 117, 117, 117));
break;
case DownloadState.UpToDate:
holder.Status.Text = Downloader.instance.GetString(Resource.String.up_to_date_status);
holder.Status.Visibility = ViewStates.Visible;
holder.Progress.Visibility = ViewStates.Invisible;
holder.Title.SetTextColor(Color.Argb(255, 76, 175, 80));

View File

@@ -14,11 +14,12 @@
<!--Player-->
<string name="show_queue">AFFICHER LA LISTE DE LECTURE</string>
<string name="up_next">À suivre:</string>
<string name="up_next">À suivre :</string>
<string name="nothing">Rien.</string>
<string name="next_loading">Chargement en cours, veuillez patienter.</string>
<string name="sleep_timer">Arreter la musique dans</string>
<string name="off">Off</string>
<string name="minute">minute</string>
<string name="minutes">minutes</string>
<string name="hour">heure</string>
<string name="hours">heures</string>
@@ -36,7 +37,7 @@
<!--More menu (long clicks)-->
<string name="play">Lire</string>
<string name="play_next">Lire après</string>
<string name="play_last">Lire en dernier</string>
<string name="play_last">Ajouter a la fin de la liste de lecture</string>
<string name="create_mix_from_song">Créer un mix</string>
<string name="add_to_playlist">Ajouter a une playlist</string>
<string name="edit_metadata">Modifier les metadata</string>
@@ -136,6 +137,11 @@
<!--Download Queue-->
<string name="download_queue">Liste de téléchargement</string>
<string name="deleted_file">Fichier supprimé</string>
<string name="initialization">Initialisation</string>
<string name="metadata">Metdata</string>
<string name="downloading_status">Téléchargement</string>
<string name="up_to_date_status">Déja a jour</string>
<string name="completed">Completé</string>
<!--Chromecast-->
<string name="cast_queue_push">Votre liste de lecture est envoyée au chromecast, veuillez patienter...</string>

View File

@@ -137,6 +137,11 @@
<!--Download Queue-->
<string name="download_queue">Download Queue</string>
<string name="deleted_file">Deleted file</string>
<string name="initialization">Initialization</string>
<string name="metadata">Metdata</string>
<string name="downloading_status">Downloading</string>
<string name="up_to_date_status">Up to date</string>
<string name="completed">Completed</string>
<!--Chromecast-->
<string name="cast_queue_push">Pushing current queue to the cast, please wait...</string>