From 0c574b20545cbc19667f04ce5ff9b9803c2906df Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 7 Oct 2016 23:15:19 +0200 Subject: [PATCH] Rating texts a in french, for now --- BookAStar/BookAStar/Converters/RatingText.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/BookAStar/BookAStar/Converters/RatingText.cs b/BookAStar/BookAStar/Converters/RatingText.cs index 3351fb77..53153cb8 100644 --- a/BookAStar/BookAStar/Converters/RatingText.cs +++ b/BookAStar/BookAStar/Converters/RatingText.cs @@ -12,16 +12,18 @@ namespace BookAStar.Converters public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var rating = (int)value; + if (rating == 0) + return "Nul!"; if (rating == 1) - return "Disappointed!"; + return "Décevant!"; if (rating == 2) - return "Not a fan!"; + return "Pas terrible!"; if (rating == 3) - return "It's Ok!"; + return "Bien!"; if (rating == 4) - return "Like it!"; + return "J'aime!"; if (rating == 5) - return "Love it!"; + return "J'adore"; return string.Empty; }