Questions tagged [currentuiculture]

69 questions
1
vote
1 answer

PowerShell scope of changes in lines with multiple commands - UICulture

During my tinkering with PS 5.1 related to the objective of question Fully change language for the current PowerShell session I observed a "strange" behavior: > [system.threading.thread]::currentthread.currentculture ;…
1
vote
1 answer

resourcemanager uses wrong UICulture to serve content! Always returns neutral culture

Possible Duplicate: CurrentThread.CurrentUICulture is set correctly but seems to be ignored by asp.net I've asked on many forums, but no one seems to be able to help me! default.aspx:
Peter
  • 59
  • 3
  • 11
1
vote
1 answer

Xamarin Forms Globalization

I have looked over this article regarding globalization in Xamarin Forms. The article indicates I need to create an interface in order to access the language on each platform. However, in my last App, I was able to simply put this line of code in…
1
vote
2 answers

Specify thousands separator in CurrentUICulture

I am trying to set the culture information for my Thread Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("de-DE"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE"); Above is the culture I have set, this…
Kirit Chandran
  • 679
  • 7
  • 13
1
vote
1 answer

.NET Globalization: Set Culture/UICulture on a Page or a Thread? What's the difference?

Question title is basically the entire question. In ASP.NET you can set the Culture/UICulture properties of a page by overriding the InitializeCulture method, or you can set the properties of the current thread. What are the differences? What are…
Liggi
  • 744
  • 8
  • 22
1
vote
2 answers

Get uiculture using server expression tag in aspx page

Can I get uiculture of a page using server expression in aspx page defined in globalization tag? <%= Page.Uiculture %>
Nishantha
  • 6,065
  • 6
  • 33
  • 51
1
vote
1 answer

When should I use Neutral culture? What is the necessary for it? why not force using Specific Culture?

When should I use Neutral culture? What is the necessary for it? why not force using Specific Culture? Can someone tell me a real time scenario, where Neutral cultures are used than Specific Culture?
Rajes
  • 1,036
  • 10
  • 15
1
vote
1 answer

number format based on user culture php

I am using php. I am trying to format a number based on the user culture. what I ideally would love would be a function to which I could give the culture and the number as parameters and it would automatically format the number based on the culture…
martin
  • 30
  • 6
1
vote
1 answer

All of a sudden, CultureInfo.CurrentUICulture does not reflect IE9 language preference in view?

Previously, I had no problem with this code in my view, and, it always properly reflected the user's language preference set in IE9: @using (Html.BeginForm("Edit", "Revision", FormMethod.Post, new { id = "RevisionMain" })) { …
gangelo
  • 3,034
  • 4
  • 29
  • 43
1
vote
1 answer

Validation error messages don't change after culture change

I'm currently working on a MVC4 application that needs to support 2 languages. I'm using DataAnnotations with resources in the form: public class SignupModel { [Required(ErrorMessageResourceName = "Registration_ValidEmailRequired",…
1
vote
2 answers

Why is my language switching automatically in ASP.NET 2.0?

I am working on an ASP.NET 2.0 web solution which currently runs en-GB and zh-HK languages as the 2 current languages for the site. Others will be added at a later date. One of the requirements is that the user can choose to override the language…
0
votes
1 answer

WCF service gets wrong culture

I have a service method that accepts CultureInfo object as a parameter. I want to use it to get correct strings from Resources by the language that was specified. So I have a method on the service like: public string GetTranslatedString(CultureInfo…
Bogdan Verbenets
  • 25,686
  • 13
  • 66
  • 119
0
votes
2 answers

Localized website, 1 bug: postback event doesn't work

I've almost finished localizing a major website in ASP.NET. I'm using the CurrentUICulture to influence my localization. All goes well, except for the situation where I have a postback event. If I trigger this postback event, from the page that had…
Rickjaah
  • 581
  • 1
  • 6
  • 16
0
votes
0 answers

how to change current culture of class library (dll)

i have a dll that it have a form and this form support two language (with loacalizable,language property). and after that i add our dll to the main project and call the form from dll. the language of the form still in the default mode. I must say…
0
votes
1 answer

How to set the value of main thread's CultureInfo.CurrentUICulture from a child thread in .NET Core 3.1?

Background: I have an async await function that gets a language and locale parameters from an external source and this will be used to set to the CurrentUICulture. My web application is built in .NET Core 3.1 using C# Problem: The CurrentUICulture…