From 2bb6987d39ad1bb199b3e990cc7260a1b3e80160 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Fri, 25 Feb 2011 16:20:10 +0000 Subject: Prepared for localizing string literals in source code. svn path=/trunk/netsurf/; revision=11795 --- cocoa/utils.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cocoa/utils.m') 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) -- cgit v1.2.3