Programatically changing the User Locale
-
How to programatically change the User Locale? In the NLS documentation it is mentioned that it is not possible, is there any way around for this? Thanks!
a.mulay wrote:
How to programatically change the User Locale?
How about
setlocale()
?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
a.mulay wrote:
How to programatically change the User Locale?
How about
setlocale()
?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Thanks but this is not enough.:( setLocale() is specific to the current program, I need to modify User Local which we modify through the Control Panel --> Regional and Language Options --> Regional Settings. One way I found out is modifying the registry at the following location HKEY_CURRENT_USER --> Control Panel --> International --> Locale But I need an elegent solution.
-
Thanks but this is not enough.:( setLocale() is specific to the current program, I need to modify User Local which we modify through the Control Panel --> Regional and Language Options --> Regional Settings. One way I found out is modifying the registry at the following location HKEY_CURRENT_USER --> Control Panel --> International --> Locale But I need an elegent solution.
a.mulay wrote:
setLocale() is specific to the current program...
It helps to specify all of your requirements up front.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
a.mulay wrote:
setLocale() is specific to the current program...
It helps to specify all of your requirements up front.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
DavidCrow wrote:
It helps to specify all of your requirements up front.
Yes, but the MSDN documentation also refers it as User Locale. http://msdn2.microsoft.com/en-us/library/ms776246.aspx[^] See under the column Standards and formats and against the row Purpose.