diff options
Diffstat (limited to 'cocoa/utils.m')
-rw-r--r-- | cocoa/utils.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cocoa/utils.m b/cocoa/utils.m index cd7ce7bfe..cc8b29f81 100644 --- a/cocoa/utils.m +++ b/cocoa/utils.m @@ -30,7 +30,11 @@ void die(const char * const error) void warn_user(const char *warning, const char *detail) { - NSRunAlertPanel( @"Warning", @"Warning %s: %s", @"OK", nil, nil, warning, detail ); + NSRunAlertPanel( NSLocalizedString( @"Warning", @"Warning title" ), + NSLocalizedString( @"Warning %s%s%s", @"Warning message" ), + NSLocalizedString( @"OK", @"" ), nil, nil, + warning, detail != NULL ? ": " : "", + detail != NULL ? detail : "" ); } void PDF_Password(char **owner_pass, char **user_pass, char *path) |