From a1978133184ac43dd37f201fc352e793d29e4a88 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 20 May 2016 12:44:11 +0200 Subject: [PATCH] devrait fixer les traductions --- ...ources.YavscLoc.en.resx => Yavsc.Resources.YavscLoc.en.resx} | 0 ...ources.YavscLoc.fr.resx => Yavsc.Resources.YavscLoc.fr.resx} | 0 Yavsc/Resources/{YavscLoc.cs => YavscLocalisation.cs} | 2 +- Yavsc/src/Controllers/CommandController.cs | 2 +- Yavsc/src/Controllers/ManageController.cs | 2 +- Yavsc/src/Controllers/OAuthController.cs | 1 + 6 files changed, 4 insertions(+), 3 deletions(-) rename Yavsc/Resources/{YavscWeb.Resources.YavscLoc.en.resx => Yavsc.Resources.YavscLoc.en.resx} (100%) rename Yavsc/Resources/{YavscWeb.Resources.YavscLoc.fr.resx => Yavsc.Resources.YavscLoc.fr.resx} (100%) rename Yavsc/Resources/{YavscLoc.cs => YavscLocalisation.cs} (88%) diff --git a/Yavsc/Resources/YavscWeb.Resources.YavscLoc.en.resx b/Yavsc/Resources/Yavsc.Resources.YavscLoc.en.resx similarity index 100% rename from Yavsc/Resources/YavscWeb.Resources.YavscLoc.en.resx rename to Yavsc/Resources/Yavsc.Resources.YavscLoc.en.resx diff --git a/Yavsc/Resources/YavscWeb.Resources.YavscLoc.fr.resx b/Yavsc/Resources/Yavsc.Resources.YavscLoc.fr.resx similarity index 100% rename from Yavsc/Resources/YavscWeb.Resources.YavscLoc.fr.resx rename to Yavsc/Resources/Yavsc.Resources.YavscLoc.fr.resx diff --git a/Yavsc/Resources/YavscLoc.cs b/Yavsc/Resources/YavscLocalisation.cs similarity index 88% rename from Yavsc/Resources/YavscLoc.cs rename to Yavsc/Resources/YavscLocalisation.cs index 48f2c448..1577cc33 100644 --- a/Yavsc/Resources/YavscLoc.cs +++ b/Yavsc/Resources/YavscLocalisation.cs @@ -4,7 +4,7 @@ namespace Yavsc.Resources /// /// Makes possible the code injection /// - public class YavscLoc + public class YavscLocalisation { public static string ChooseAnEventDate { get { diff --git a/Yavsc/src/Controllers/CommandController.cs b/Yavsc/src/Controllers/CommandController.cs index 30184f6b..a6e7d32e 100644 --- a/Yavsc/src/Controllers/CommandController.cs +++ b/Yavsc/src/Controllers/CommandController.cs @@ -33,7 +33,7 @@ namespace Yavsc.Controllers public CommandController(ApplicationDbContext context,IOptions googleSettings, IGoogleCloudMessageSender GCMSender, UserManager userManager, - IStringLocalizer localizer, + IStringLocalizer localizer, IEmailSender emailSender, IOptions smtpSettings, IOptions siteSettings, diff --git a/Yavsc/src/Controllers/ManageController.cs b/Yavsc/src/Controllers/ManageController.cs index 491935c1..2a6b3b57 100644 --- a/Yavsc/src/Controllers/ManageController.cs +++ b/Yavsc/src/Controllers/ManageController.cs @@ -51,7 +51,7 @@ namespace Yavsc.Controllers IOptions googleSettings, IOptions paypalSettings, IOptions cinfoSettings, - IStringLocalizer SR, + IStringLocalizer SR, ILoggerFactory loggerFactory) { _dbContext = context; diff --git a/Yavsc/src/Controllers/OAuthController.cs b/Yavsc/src/Controllers/OAuthController.cs index dd4f81a7..c9aa47a3 100644 --- a/Yavsc/src/Controllers/OAuthController.cs +++ b/Yavsc/src/Controllers/OAuthController.cs @@ -323,6 +323,7 @@ ILogger _logger; protected virtual Task GetApplicationAsync(string identifier, CancellationToken cancellationToken) { // Retrieve the application details corresponding to the requested client_id. + _logger.LogWarning($"Ap count : {_context.Applications.Count()}"); return (from application in _context.Applications where application.ApplicationID == identifier select application).SingleOrDefaultAsync(cancellationToken);