Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get "region & language" settings in WP7 via code?

Is it possible to get following settings via the API?

  • First day of week
  • Region format
  • Display language
  • System locate
like image 363
Maku Avatar asked Jan 11 '11 11:01

Maku


People also ask

How do I find my AWS region?

To find your Regions using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . From the navigation bar, choose the Regions selector. Your EC2 resources for this Region are displayed on the EC2 Dashboard in the Resources section.

What is my default AWS region?

If you signed up for an AWS account on or after May 17, 2017, the default Region when you access a resource from the AWS Management Console is US East (Ohio) (us-east-2); for older accounts, the default Region is either US West (Oregon) (us-west-2) or US East (N. Virginia) (us-east-1).

How do I specify AWS region?

In the navigation bar choose your account name and then choose Settings to navigate to the Unified Settings page. Choose Edit next to Localization and default Region. Select your default Region, then choose Save changes.


1 Answers

You can use CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture to find the system culture and language settings respectively. The rest of the information (first day of week etc) is within there, I believe - for example:

DayOfWeek firstDayOfWeek = CultureInfo.CurrentCulture
                                      .DateTimeFormat
                                      .FirstDayOfWeek;
like image 50
Jon Skeet Avatar answered Oct 09 '22 04:10

Jon Skeet