Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows Phone localization , +
Hi,
 
I'm building a Windows Phone application and my client has given me a list of languages that he would like the App to be localized for.
 
The problem is that some of those languages are not supported by Windows Phone and I then decided to check out the list of supported langauges which is available
here. I noticed that there are two OS option for Windows Phone, i.e. 7.0 and 7.1 but during development I am not sure of how to check for which OS the phone is running so that I know which list of languages to supply to the user.
 
I'd like to know how to check if the Windows Phone OS is 7.0 or 7.1 (I'm assuming that his caters for later OS versions that might have come after the list was created)
 
Many thanks,
Bankole
Posted 23-Jun-12 20:56pm
banxman274

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can get the Windows Phone Operating System Version number from Environment.OSVersion. Here is C# code:
string OSVersion = Environment.OSVersion.Version.ToString();
  Permalink  
v2
Comments
banxman at 24-Jun-12 2:20am
   
Thanks a lot.
I did that initailly but maybe I'm confused about what the OS version is versus the emulator version versus the SDK version because when I started development, I was asked to choose between targeting 7.0 and 7.5 and I chose 7.5 but after executing the code you asked, the OS version returned was 7.10.xxxx
 
I am quite confused. Any ideas please?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 431
1 Afzaal Ahmad Zeeshan 184
2 /\jmot 176
3 Sergey Alexandrovich Kryukov 175
4 Marcin Kozub 175
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,634
3 Maciej Los 5,024
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 24 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100