From 910f68a5d4dfc1f9375f39ed3d19b40aeeb3ba7d Mon Sep 17 00:00:00 2001 From: "stuart.morgan" Date: Fri, 1 Jan 2010 00:21:18 +0000 Subject: Make Mac comment and email text field placeholders localizable. r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@475 4c0a9323-5329-0410-9bdc-e9ce6186880e --- .../mac/sender/English.lproj/Localizable.strings | Bin 2270 -> 2428 bytes src/client/mac/sender/crash_report_sender.m | 6 ++++++ 2 files changed, 6 insertions(+) (limited to 'src/client/mac') diff --git a/src/client/mac/sender/English.lproj/Localizable.strings b/src/client/mac/sender/English.lproj/Localizable.strings index 70626567..5f1cc826 100644 Binary files a/src/client/mac/sender/English.lproj/Localizable.strings and b/src/client/mac/sender/English.lproj/Localizable.strings differ diff --git a/src/client/mac/sender/crash_report_sender.m b/src/client/mac/sender/crash_report_sender.m index b6576933..6aa8887d 100644 --- a/src/client/mac/sender/crash_report_sender.m +++ b/src/client/mac/sender/crash_report_sender.m @@ -612,6 +612,12 @@ NSString *const kDefaultServerType = @"google"; float emailLabelWidthDelta = [emailLabel_ breakpad_adjustWidthToFit]; [emailEntryField_ breakpad_shiftHorizontally:emailLabelWidthDelta]; + // Localize the placeholder text. + [[commentsEntryField_ cell] + setPlaceholderString:NSLocalizedString(@"commentsPlaceholder", @"")]; + [[emailEntryField_ cell] + setPlaceholderString:NSLocalizedString(@"emailPlaceholder", @"")]; + // Localize the privacy policy label, and keep it right-aligned to the arrow. [privacyLinkLabel_ setStringValue:NSLocalizedString(@"privacyLabel", @"")]; float privacyLabelWidthDelta = [privacyLinkLabel_ breakpad_adjustWidthToFit]; -- cgit v1.2.1