Chintan has given good suggestion,but keep in mond that even you are fetching culture rom web service but keep hook on your hand like in db we have hindi but we need to set genrally prefer to see in english en-GB, so it overrides service else it will display
hindi for tamil or telgu person. Please let me know if you need more info. Hope I am not confusing :)
Please let me know if you need more help.
Please give us feedback no matter whether you get your answer.
Please "Mark as Answer" if it's useful for you.
So may be u can try to set language according User's Browser language.
But If u want to get lan. code from Ip Address.Than i can suggest some sites.
Also i found some Web service that convert Ip 2 LOcation and so by use of it u can convert it in a lan. code.
I dont no these service are free or not. But Check it out your self.
http://www.fraudlabs.com/ip2location.aspx
http://www.ip2location.com/webservices.aspx
http://ws.ip2location.com/ip2locationwebservice.asmx?op=IP2Location
Google Search:
ip2location web service
Reverse DNS Lookup
http://www.ipaddresslocation.org/dns-ipaddress-lookup.php
Thanks
Chintan Dave.
Thank you for your links:)
Although all of this links is to get the country code.
Here is a data example that this webservices returnes:
Input Data
IP
68.142.197.65
LICENSE
(Your License Key)
Result
COUNTRYCODE
US
COUNTRYNAME
UNITED STATES
REGION
CALIFORNIA
CITY
SUNNYVALE
IP2LATITUDE
37
IP2LONGITUDE
-122
ZIPCODE
94089
ISPNAME
INKTOMI CORPORATION
DOMAINNAME
YAHOO.COM
CREDITSAVAILABLE
(Your Credit Available)
MESSAGE
How can I create a CultureInfo object from that? CultureInfo using such codes EN-US EN-GB and so on.
If there is a tables that will do the connection between country code (US) to "EN" language, then the problem solved. untill I cannot doing the conversion and get "EN" value I cannot create CultureInfo object, which is the object needed to work multilangual
with ASP.NET
Das.Sandeep
Star
10652 Points
1897 Posts
Re: How to get the main cultur's language from Country Code?
Apr 08, 2010 06:57 AM|LINK
Chintan has given good suggestion,but keep in mond that even you are fetching culture rom web service but keep hook on your hand like in db we have hindi but we need to set genrally prefer to see in english en-GB, so it overrides service else it will display hindi for tamil or telgu person. Please let me know if you need more info. Hope I am not confusing :)
Please give us feedback no matter whether you get your answer.
Please "Mark as Answer" if it's useful for you.
Regards,
Sandeep
megetron
Member
520 Points
921 Posts
Re: How to get the main cultur's language from Country Code?
Apr 08, 2010 10:51 AM|LINK
Thank you for your links:)
Although all of this links is to get the country code.
Here is a data example that this webservices returnes:
How can I create a CultureInfo object from that? CultureInfo using such codes EN-US EN-GB and so on.
If there is a tables that will do the connection between country code (US) to "EN" language, then the problem solved. untill I cannot doing the conversion and get "EN" value I cannot create CultureInfo object, which is the object needed to work multilangual with ASP.NET
I hope I am clear.
Das.Sandeep
Star
10652 Points
1897 Posts
Re: How to get the main cultur's language from Country Code?
Apr 08, 2010 10:55 AM|LINK
create base page and have to use connection table as I mentioned above, go through below forum
http://forums.asp.net/t/1514920.aspx
Mark as answer if it helps.
Please give us feedback no matter whether you get your answer.
Please "Mark as Answer" if it's useful for you.
Regards,
Sandeep
Chintan Dave
Contributor
3687 Points
742 Posts
Re: How to get the main cultur's language from Country Code?
Apr 08, 2010 11:51 AM|LINK
ye.
check this page to implement Localisation.
http://forums.asp.net/t/1514920.aspx
http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx
Mark as Answer if u get
http://napsterchintan.blogspot.com/
megetron
Member
520 Points
921 Posts
Re: How to get the main cultur's language from Country Code?
Apr 09, 2010 03:08 AM|LINK
Thanks!