Permalink
Browse files

using NSLocalizedString() for user facing text

  • Loading branch information...
1 parent b782956 commit 2e8821228303d3508b121103608ff0ceca9d09c4 @Machx committed Feb 1, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/CWExceptionUtilities.m
@@ -36,7 +36,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
#if Z_OS_IS_OSX
void CWShowExceptionAsAlertPanel(NSException *exception) {
- NSAlert *alert = [NSAlert alertWithMessageText:@"Application Error Occurred"
+ NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Application Error Occurred", "title alert to show to user")
defaultButton:@"Quit" alternateButton:@"Continue" otherButton:nil informativeTextWithFormat:@"Uncaught Exception: %@\n%@\n%@",
exception.name, exception.reason, [exception cw_stackTrace]];
NSInteger response = [alert runModal];

0 comments on commit 2e88212

Please sign in to comment.