mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
GUI: U32: encode and use c strings for translations in macos dialogs
This commit is contained in:
parent
8cfa8a5589
commit
e91f968992
@ -82,7 +82,7 @@
|
||||
#else
|
||||
CFStringEncoding stringEncoding = kCFStringEncodingASCII;
|
||||
#endif
|
||||
CFStringRef hiddenFilesString = CFStringCreateWithCString(0, _("Show hidden files"), stringEncoding);
|
||||
CFStringRef hiddenFilesString = CFStringCreateWithCString(0, _("Show hidden files").encode().c_str(), stringEncoding);
|
||||
[showHiddenFilesButton setTitle:(NSString*)hiddenFilesString];
|
||||
CFRelease(hiddenFilesString);
|
||||
|
||||
@ -143,7 +143,7 @@ Common::DialogManager::DialogResult MacOSXDialogManager::showFileBrowser(const c
|
||||
|
||||
// Convert labels to NSString
|
||||
CFStringRef titleRef = CFStringCreateWithCString(0, title, stringEncoding);
|
||||
CFStringRef chooseRef = CFStringCreateWithCString(0, _("Choose"), stringEncoding);
|
||||
CFStringRef chooseRef = CFStringCreateWithCString(0, _("Choose").encode().c_str(), stringEncoding);
|
||||
|
||||
beginDialog();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user