Index: chrome/browser/ui/webui/print_preview_data_source.cc |
diff --git a/chrome/browser/ui/webui/print_preview_data_source.cc b/chrome/browser/ui/webui/print_preview_data_source.cc |
index ed9bf950c9061b464b7df40d07fe7fcda7e30d81..c863390d9bfd1a93fb9c94b45cdf89ee1481ded9 100644 |
--- a/chrome/browser/ui/webui/print_preview_data_source.cc |
+++ b/chrome/browser/ui/webui/print_preview_data_source.cc |
@@ -23,6 +23,15 @@ |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/resource_bundle.h" |
+namespace{ |
+ |
+#if defined(OS_MACOSX) |
+// U+0028 U+21E7 U+2318 U+0050 U+0029 in UTF8 |
+const char kAdvancedPrintShortcut[] = "\x28\xE2\x8C\x98\xE2\x87\xA7\x50\x29"; |
+#endif |
+ |
+}; // namespace |
+ |
PrintPreviewDataSource::PrintPreviewDataSource() |
: ChromeWebUIDataSource(chrome::kChromeUIPrintHost) { |
@@ -77,8 +86,16 @@ PrintPreviewDataSource::PrintPreviewDataSource() |
IDS_PRINT_PREVIEW_PAGE_LABEL_SINGULAR); |
AddLocalizedString("printPreviewPageLabelPlural", |
IDS_PRINT_PREVIEW_PAGE_LABEL_PLURAL); |
- AddLocalizedString("systemDialogOption", |
- IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION); |
+#if defined(OS_MACOSX) |
+ const string16 shortcut_text = UTF8ToUTF16(kAdvancedPrintShortcut); |
+#else |
+ const string16 shortcut_text = |
+ l10n_util::GetStringUTF16(IDS_PRINT_PREVIEW_ADVANCED_SHORTCUT_KEY); |
Lei Zhang
2011/08/25 20:43:23
Since this doesn't need to be translated, just def
kmadhusu
2011/08/25 22:47:39
good catch.. Fixed.
|
+#endif |
+ AddString("systemDialogOption", l10n_util::GetStringFUTF16( |
+ IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION, |
+ shortcut_text)); |
+ |
AddLocalizedString("pageRangeInstruction", |
IDS_PRINT_PREVIEW_PAGE_RANGE_INSTRUCTION); |
AddLocalizedString("copiesInstruction", IDS_PRINT_PREVIEW_COPIES_INSTRUCTION); |