From 5be0b17ebd9accacc0bdafd87fffade9e0b00517 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 31 Jul 2016 01:43:21 +0200 Subject: [PATCH] heure de rendez-vous + bugfix en/fr Win vs Gnu/Linux --- Yavsc/Startup/Startup.cs | 10 +- Yavsc/Views/Command/Create.cshtml | 52 +- Yavsc/bower.json | 3 +- .../bootstrap-datetimepicker-standalone.css | 103 +++ .../css/bootstrap-datetimepicker.css | 373 ++++++++++ .../css/bootstrap-datetimepicker.min.css | 5 + .../js/bootstrap-datetimepicker.min.js | 9 + Yavsc/wwwroot/lib/moment/locales.min.js | 253 +++++++ .../lib/moment/moment-with-locales.min.js | 673 ++++++++++++++++++ Yavsc/wwwroot/lib/moment/moment.min.js | 492 +++++++++++++ 10 files changed, 1956 insertions(+), 17 deletions(-) create mode 100644 Yavsc/wwwroot/lib/eonasdan-bootstrap-datetimepicker/css/bootstrap-datetimepicker-standalone.css create mode 100644 Yavsc/wwwroot/lib/eonasdan-bootstrap-datetimepicker/css/bootstrap-datetimepicker.css create mode 100644 Yavsc/wwwroot/lib/eonasdan-bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css create mode 100644 Yavsc/wwwroot/lib/eonasdan-bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js create mode 100644 Yavsc/wwwroot/lib/moment/locales.min.js create mode 100644 Yavsc/wwwroot/lib/moment/moment-with-locales.min.js create mode 100644 Yavsc/wwwroot/lib/moment/moment.min.js diff --git a/Yavsc/Startup/Startup.cs b/Yavsc/Startup/Startup.cs index 3e004880..5ccf9dae 100755 --- a/Yavsc/Startup/Startup.cs +++ b/Yavsc/Startup/Startup.cs @@ -83,7 +83,11 @@ namespace Yavsc { var supportedCultures = new[] { - new CultureInfo("en-US"), + new CultureInfo("en") + }; + var supportedUICultures = new[] + { + new CultureInfo("en"), new CultureInfo("fr") }; @@ -92,7 +96,7 @@ namespace Yavsc options.SupportedCultures = supportedCultures; // These are the cultures the app supports for UI strings, i.e. we have localized resources for. - options.SupportedUICultures = supportedCultures; + options.SupportedUICultures = supportedUICultures; // You can change which providers are configured to determine the culture for requests, or even add a custom // provider with your own logic. The providers will be asked in order to provide a culture for each request, @@ -289,7 +293,7 @@ namespace Yavsc app.UseWebSockets(); - app.UseRequestLocalization(localizationOptions.Value, (RequestCulture)new RequestCulture((string)"fr")); + app.UseRequestLocalization(localizationOptions.Value, (RequestCulture) new RequestCulture((string)"en")); app.UseMvc(routes => { diff --git a/Yavsc/Views/Command/Create.cshtml b/Yavsc/Views/Command/Create.cshtml index 29df65f8..51c570a1 100644 --- a/Yavsc/Views/Command/Create.cshtml +++ b/Yavsc/Views/Command/Create.cshtml @@ -4,12 +4,13 @@ } @section header{ @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } - - + + + + - -