summaryrefslogtreecommitdiffstats
path: root/remoting/host/continue_window_mac.mm
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-12 19:34:44 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-12 19:34:44 +0000
commit2bffdc8da6974843565a680713b851ac2c8de7be (patch)
treeabc115c70c2b42825d8efc052bee04f563a21f40 /remoting/host/continue_window_mac.mm
parenta1c2f8f87f4d4ba6b5fb1dc22ee0d46f6d1e50d9 (diff)
downloadchromium_src-2bffdc8da6974843565a680713b851ac2c8de7be.zip
chromium_src-2bffdc8da6974843565a680713b851ac2c8de7be.tar.gz
chromium_src-2bffdc8da6974843565a680713b851ac2c8de7be.tar.bz2
Added l10n support to Mac host dialogs.
The XIB changes involve unifying the 'connected' message and username field into a single text field and adding some links to we can access the button in order to set its text. BUG=93088 TEST=Manual Review URL: http://codereview.chromium.org/7796024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/continue_window_mac.mm')
-rw-r--r--remoting/host/continue_window_mac.mm12
1 files changed, 7 insertions, 5 deletions
diff --git a/remoting/host/continue_window_mac.mm b/remoting/host/continue_window_mac.mm
index 8793dd4..6567cc3 100644
--- a/remoting/host/continue_window_mac.mm
+++ b/remoting/host/continue_window_mac.mm
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/memory/scoped_nsobject.h"
+#include "base/sys_string_conversions.h"
#include "remoting/host/chromoting_host.h"
// As this is a plugin, there needs to be a way to find its bundle
@@ -65,11 +66,12 @@ void ContinueWindowMac::Show(remoting::ChromotingHost* host) {
}
// Put up alert
- NSString* message = [NSString stringWithUTF8String:kMessage];
- NSString* continue_button =
- [NSString stringWithUTF8String:kDefaultButtonText];
- NSString* cancel_button =
- [NSString stringWithUTF8String:kCancelButtonText];
+ const UiStrings& strings = host->ui_strings();
+ NSString* message = base::SysUTF16ToNSString(strings.continue_prompt);
+ NSString* continue_button = base::SysUTF16ToNSString(
+ strings.continue_button_text);
+ NSString* cancel_button = base::SysUTF16ToNSString(
+ strings.stop_sharing_button_text);
scoped_nsobject<NSAlert> continue_alert([[NSAlert alloc] init]);
[continue_alert setMessageText:message];
[continue_alert addButtonWithTitle:continue_button];