culture Questions
2
Solved
I have a multi-tenant application in ASP.NET MVC. The instance of the application that will be served is function of the hostname alone (something along the lines of stackexchange, I suppose).
Eac...
Pneumo asked 6/1, 2010 at 9:55
5
Solved
I'm searching a way to construct a CultureInfo object from a ISO 639-3 language code. I didn't find anything in the MSDN about that and trying to get it from the list of all cultures didn't work......
Spancake asked 10/1, 2014 at 10:37
1
Solved
I want to set a culture for entire winform application.
How can i do that?
I changed my Program.cs file like this :
using System;
using System.Collections.Generic;
using System.Globalization;
usi...
Fashionable asked 30/7, 2018 at 22:9
1
I am developing a multi-lingual application allowing users to change language as well as keyboard layouts (through combobox). I am able to change the culture of application successfully but I'm una...
Uria asked 14/1, 2014 at 18:22
1
Solved
I am able to use Set-Culture (Powershell as Admin) to set the Current Culture to "en-DE" which is English (Germany). However, when I run the different PS commands to view the Current Culture, I am ...
Dingy asked 16/4, 2018 at 20:57
4
Solved
Is it possible to add the word "at" between a Date and Time format? I tried to add it just like this "dddd, d MMM, yyyy at HH:mm" but the webapp is tranforming it into "aA" or "aP" depending of reg...
4
Solved
I have a number like 202667.4. I want to convert this to number based on culture.
For Ex:
In "de"(German) the number should be in 202.667,40.
Any help will be greatly appreciated.
Thanks.
Oates asked 16/11, 2017 at 7:23
4
Solved
Could someone give me a bit more information on the difference between Culture and UICulture within the .NET framework? What they do and when to use what?
0
I am using Xamarin Forms (XAML) at a project where I need to show a price. To show the correctly formatted price I am using StringFormat like:
<Label Text="{Binding Price, StringFormat='{}{0:C}...
Keishakeisling asked 9/5, 2017 at 7:22
2
Solved
I have a breakpoint on the "return" line here:
[HttpGet]
[Route("api/Test/{id1}/{id2}")]
public NRBQEntity GetTestMessage(String id1, String id2)
{
return NRBQClient.GetTestMessage(id1, id2);
}
...
Legation asked 20/6, 2014 at 17:4
3
Solved
Given a specific country code, e.g. "CH", how can I get a CultureInfo object? The specific country code is dynamic (changes at runtime).
I only have the country code, and i want to know i...
4
Solved
I use ADO disconnected mode to get data from database by filling dataset ds.
All data come true except the date field
string strDate = ds.Tables[0].Rows[0]["H_DT"].ToString();
it throws an excep...
8
Solved
What is the best place to set the Culture/UI Culture in an ASP.net MVC app
Currently I have a CultureController class which looks like this:
public class CultureController : Controller
{
public ...
Sport asked 13/10, 2009 at 15:0
2
Solved
I'm having a nightmare of a time with Dates. Were based in the UK, so our date format is dd/MM/yyyy. This is what users will type into the form when they want a certain date. I have a form that acc...
Mortonmortuary asked 22/3, 2012 at 11:30
2
Solved
I am using DateTime.Now.ToString("d", new CultureInfo("nl-NL")).
In a local IIS web application, the output is correct:
22-7-2016
In a console application, the framework chooses the internation...
1
In my application I needed to display currency conversion.
For eg:
1 ₹= 0.015 $
Similarly I want to display the conversion from AED to USD . When I try, the conversion equation gets distorted.
...
Langobardic asked 4/7, 2016 at 7:46
4
Solved
Does anyone know how to obtain the browser culture from Firefox and Google Chrome using javascript? Note: This is an asp.net 3.5 web application.
The requirement is to try and set the application'...
Blastomere asked 20/4, 2010 at 20:2
9
Solved
When using globalization culture="da-DK" in the Web.config file, the jQuery validation does not work.
In Denmark, we use the notation 19,95 instead of the US way 19.95 when we write a price for at...
Morbid asked 4/3, 2011 at 22:7
3
Solved
If this exact question has been asked before, please point me to the relevant question.
tl;dr: How does one compare two strings in JavaScript while ignoring casing according to English rules?
My ...
Frequentative asked 21/8, 2013 at 14:5
3
Solved
I tried to use a ISO-3166 two letter country code to create my C# culture info object to format my datetime objects according to the locale.
If I try:
var cultureInfo = new CultureInfo("FR");
i...
6
Solved
I woudl like to set the culture for my whole application. I tried the following :
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(wantedCulture);
Thread.CurrentThread.Curr...
Demoniac asked 5/3, 2010 at 10:18
2
For multilingual asp.net mvc web site.
Where should i set thread's culture to default language (which is tr-TR for my case), in addition i need to save this in cookie if it does not exists. in Ap...
Aircondition asked 16/9, 2015 at 7:51
4
Solved
Globalize.js allows you to parse a date string based on the current culture applied
var date = Globalize.parseDate("17/07/2013"); //Wed Jul 17 00:00:00 PDT 2013
What I would like to do is parse ...
Rules asked 17/7, 2013 at 22:50
2
Solved
I have noted that when using the framework function string.Format to format currency values, in some cultures this function rounds the decimals by default. For example, when working with Malaysian ...
Hierocracy asked 17/8, 2015 at 8:31
2
Solved
I'm in the UK where we spell Cancelled with two L's. I want to use the Code Analysis rule "CA1726:UsePreferredTerms" but I don't want it to flag up "Cancelled" as a violation.
I have tried adding ...
Wiry asked 14/5, 2015 at 8:45
© 2022 - 2025 — McMap. All rights reserved.