Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
my app works on (en-us) language. when the language is English Africa in windows phone, my application should not work.
how to stop opening the application when the language is not present.
Posted
Comments
Suvendu Shekhar Giri 22-Dec-15 9:20am    
What have you tried so far?
Where is the problem?
Member 11183856 22-Dec-15 9:24am    
my problem is , the application is opened with empty data when the language of windows phone set in english africa
[no name] 22-Dec-15 9:48am    
Maybe you should correct this? I mean the Thing with "empty data" instead of "not allow start the app"....?
Suvendu Shekhar Giri 22-Dec-15 9:48am    
true
Sergey Alexandrovich Kryukov 22-Dec-15 10:19am    
True. "Stop opening the application" is the worse possible decision. By the way, nearly nothing depends on "language set". The application should work in all cases.
—SA

1 solution

Read the current culture: CultureInfo.CurrentCulture property[^] and compare it with your "target" culture - the LCID property[^] should do it.
 
Share this answer
 
Comments
[no name] 22-Dec-15 11:53am    
Again no real influence with my 5.
OriginalGriff 22-Dec-15 12:03pm    
As I said, don't worry about it - I don't. It's just an idiot...
[no name] 22-Dec-15 12:27pm    
I take care of it, even if you think it is good or not.

I do many times vote an answer without Comment if my vote is > 3.
But every time I do vote <= 3, I give a comment! I don't like this stupid/hidden/devious/anonymous votes. Only my mind.
Bruno

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900