Changeset 21841e84
- Timestamp:
- 08/19/2012 09:11:28 PM (10 months ago)
- Branches:
- master, stable
- Children:
- d132364
- Parents:
- f2035d7
- git-author:
- Thomas Goyne <plorkyeran@…> (08/18/2012 03:13:24 AM)
- git-committer:
- Thomas Goyne <plorkyeran@…> (08/19/2012 09:11:28 PM)
- File:
-
- 1 edited
-
aegisub/src/dialog_version_check.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aegisub/src/dialog_version_check.cpp
r8244271 r21841e84 82 82 #include <libaegisub/exception.h> 83 83 84 #ifdef __APPLE__ 85 #include <CoreFoundation/CoreFoundation.h> 86 #endif 87 84 88 /* *** Public API is implemented here *** */ 85 89 … … 306 310 return res; 307 311 } 312 #elif __APPLE__ 313 static wxString GetSystemLanguage() 314 { 315 CFLocaleRef locale = CFLocaleCopyCurrent(); 316 CFStringRef localeName = (CFStringRef)CFLocaleGetValue(locale, kCFLocaleIdentifier); 317 318 char buf[128]; 319 CFStringGetCString(localeName, buf, sizeof buf, kCFStringEncodingUTF8); 320 CFRelease(locale); 321 322 return wxString::FromUTF8(buf); 323 324 } 308 325 #else 309 326 static wxString GetSystemLanguage()
Note: See TracChangeset
for help on using the changeset viewer.
