Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
00acc1fb
Commit
00acc1fb
authored
Nov 08, 2018
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to Fix ¤ Problem
parent
fda768c3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+0
-2
Startup.cs
Stratis.Guru/Startup.cs
+11
-6
Index.cshtml
Stratis.Guru/Views/Home/Index.cshtml
+1
-2
_ViewImports.cshtml
Stratis.Guru/Views/_ViewImports.cshtml
+1
-0
No files found.
Stratis.Guru/Controllers/HomeController.cs
View file @
00acc1fb
...
@@ -36,8 +36,6 @@ namespace Stratis.Guru.Controllers
...
@@ -36,8 +36,6 @@ namespace Stratis.Guru.Controllers
{
{
var
rqf
=
Request
.
HttpContext
.
Features
.
Get
<
IRequestCultureFeature
>();
var
rqf
=
Request
.
HttpContext
.
Features
.
Get
<
IRequestCultureFeature
>();
Console
.
WriteLine
(
JsonConvert
.
SerializeObject
(
rqf
.
RequestCulture
.
Culture
.
NumberFormat
,
Formatting
.
Indented
));
double
displayPrice
=
0
;
double
displayPrice
=
0
;
double
last24Change
=
0
;
double
last24Change
=
0
;
...
...
Stratis.Guru/Startup.cs
View file @
00acc1fb
...
@@ -29,6 +29,7 @@ namespace Stratis.Guru
...
@@ -29,6 +29,7 @@ namespace Stratis.Guru
public
Startup
(
IConfiguration
configuration
)
public
Startup
(
IConfiguration
configuration
)
{
{
CultureInfo
.
DefaultThreadCurrentCulture
=
new
CultureInfo
(
"en-US"
);
CultureInfo
.
DefaultThreadCurrentCulture
=
new
CultureInfo
(
"en-US"
);
CultureInfo
.
DefaultThreadCurrentUICulture
=
new
CultureInfo
(
"en-US"
);
Configuration
=
configuration
;
Configuration
=
configuration
;
}
}
...
@@ -98,17 +99,21 @@ namespace Stratis.Guru
...
@@ -98,17 +99,21 @@ namespace Stratis.Guru
var
supportedCultures
=
new
[]
var
supportedCultures
=
new
[]
{
{
new
CultureInfo
(
"en"
),
new
CultureInfo
(
"en-US"
),
new
CultureInfo
(
"en-GB"
),
new
CultureInfo
(
"fr-FR"
),
new
CultureInfo
(
"fr-FR"
),
new
CultureInfo
(
"ru"
),
new
CultureInfo
(
"ru
-RU
"
),
new
CultureInfo
(
"it"
),
new
CultureInfo
(
"it
-IT
"
),
new
CultureInfo
(
"de"
),
new
CultureInfo
(
"de
-DE
"
),
new
CultureInfo
(
"cn"
)
new
CultureInfo
(
"cn
-CN
"
)
};
};
var
defaultCulture
=
new
RequestCulture
(
"en-US"
);
defaultCulture
.
UICulture
.
NumberFormat
.
CurrencySymbol
=
"$"
;
app
.
UseRequestLocalization
(
new
RequestLocalizationOptions
app
.
UseRequestLocalization
(
new
RequestLocalizationOptions
{
{
DefaultRequestCulture
=
new
RequestCulture
(
"en-US"
)
,
DefaultRequestCulture
=
defaultCulture
,
SupportedCultures
=
supportedCultures
,
SupportedCultures
=
supportedCultures
,
SupportedUICultures
=
supportedCultures
SupportedUICultures
=
supportedCultures
});
});
...
...
Stratis.Guru/Views/Home/Index.cshtml
View file @
00acc1fb
@using System.Globalization
@model Ticker
@model Ticker
@{
@{
ViewBag.Title = "Online Stratis ($STRAT) price ticker";
ViewBag.Title = "Online Stratis ($STRAT) price ticker";
}
}
...
...
Stratis.Guru/Views/_ViewImports.cshtml
View file @
00acc1fb
@using Stratis.Guru
@using Stratis.Guru
@using Stratis.Guru.Models
@using Stratis.Guru.Models
@using System.Globalization
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment