Questions tagged [uiculture]

The UICulture is a property used to determine the localized resource file from which page resources are loaded. The UICulture is not to be confused with the Culture property which affects the results of functions such as date, number, and currency formatting. This property is mainly used within ASP.NET based web applications but similar features exist in other languages.

Wisdom from the Stack

Useful links

49 questions
136
votes
4 answers

What is the difference between Culture and UICulture?

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?
Niklas
  • 13,005
  • 23
  • 79
  • 119
32
votes
10 answers

CurrentCulture incorrectly defaulting to en-US in ASP.net

I have just migrated around 100 ASP.net sites from IIS 6 on Windows Sever 2003 to IIS 7 on Windows 2008. I've just noticed that various pieces of code that use things like DateTime.Parse have started kicking up errors "String was not recognized as a…
Siegemos
  • 385
  • 1
  • 3
  • 10
8
votes
1 answer

Change UI culture in WinRT

Is it possible to change the UI Culture in WinRT on-the-fly? I've found ApplicationLanguages.PrimaryLanguageOverride = "en";, but this only works before showing the app UI and not afterwards (e.g. I want to change the UI language through the…
Matthias
  • 3,403
  • 8
  • 37
  • 50
5
votes
1 answer

How to really change MSBuild output/messages language?

TL;DR : Is it possible with Visual Studio 2015's MSBuild to change the messages language of MSBuild on the command line using a direct approach instead of messing with system settings? And how? We have a question from "way back then" that is…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
4
votes
2 answers

Setting culture for session

Each user of my application will choose their country, after which it will be stored in a cookie and stored for later requests. Everything is working OK, but I need to set the culture at the start of a session. I'm currently experimenting by setting…
Paul
  • 3,072
  • 6
  • 37
  • 58
4
votes
0 answers

How to Implement globalization for date, zip, and phone masks using C#?

i am working to globalize items using C# i have tried to use UICulture property to convert some items format like number format , Currency format ... to a different cultures using the code below. actually working fine but now, i need to add phone…
Abdessamad Jadid
  • 381
  • 1
  • 4
  • 16
4
votes
2 answers

Wrong month shows for July when culture is set to ar-AE in asp.net webform

Website show wrong month for julyin arabic, this is Arabic website developed in asp.net webform and culture is set properly to 'ar-AE' and event date shows correct month on local machine but on productions it show month which belongs to Egyptian…
Learning
  • 19,469
  • 39
  • 180
  • 373
4
votes
0 answers

how to override Windows current culture in order to start an application?

I had a .NET application with resources in French, Deutsche and Spanish. Native resources of the application are in English. My computer's UI culture is set at "en-US" therefore when I run the application, the UI is in English. I want to execute…
XtianGIS
  • 967
  • 16
  • 39
4
votes
2 answers

How to properly detect user browser culture in asp.net mvc

I see that there are similar questions to this one but I haven't found an answer to my question there and therefore, I decided to ask a question to my own. The situation: I want to get the user's browser language so that I can set his session…
A.Sideris
  • 530
  • 3
  • 18
4
votes
1 answer

WPF application with different CurrentCulture and CurrentUICulture

Our goal is to offer to user setting up different application language and formatting (e.g. texts in English but Date/Number formats in German). So far I have tried different ways and most promising is this one (of course simplified hardcoded…
3
votes
1 answer

Fully change language (including Culture) for the current PowerShell session

My Win 10 system has Spanish language. I mean to fully operate a PowerShell session in English. Across everything I tried (see below), I managed to change the UICulture to en-US for the current session, but not the Culture. Is there any way I can…
2
votes
4 answers

MVC 3 building dynamic meta keywords meta description functionality for multi-culture site

I need to create db driven meta keywords/description. I would store these records in a database, xml format i presume; since it would be per culture. How would i go about doing this? any feedback, suggestions, help, greatly appreciated. thanks
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
2
votes
0 answers

Same Culture settings on local machine and server produce different AMDesignators

Overview Consistent Culture settings have been made on both local machine and server, yet they produce differently formatted DateTime strings: local: "22/11/2016 12:00:00 AM" server: "22/11/2016 12:00:00 a.m." Context Language: C# 6 Platform:…
2
votes
1 answer

How to stay with "." at decimal ToString after culture changes

I have a web site with different languages. Inside a model, I have the following member declaration: [Required(ErrorMessageResourceType = typeof(ViewRes.GlobalResource), ErrorMessageResourceName = "awr1")] [Range(typeof(decimal), "0.00100001",…
Haddar Macdasi
  • 3,477
  • 8
  • 37
  • 59
1
vote
2 answers

PowerShell UICulture vs. Windows setting

During my tinkering with PS 5.1 under Win 10, related to the objective of question Fully change language (including Culture) for the current PowerShell session, I came across a couple of related questions. Where is the Windows setting associated…
1
2 3 4