Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char c[1024];
- GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO639LANGNAME,c,1024);
- if(c[0]!='\0'){
- locale=c;
- GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_SISO3166CTRYNAME,c,1024);
- if(c[0]!='\0') locale+=std::string("_")+c;
- }
Advertisement
Add Comment
Please, Sign In to add comment