Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/ui_strings.h" | 5 #include "remoting/host/ui_strings.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | |
| 8 | |
| 7 namespace remoting { | 9 namespace remoting { |
| 8 | 10 |
| 9 UiStrings::UiStrings() : | 11 UiStrings::UiStrings() : |
| 10 direction(LTR), | 12 direction(LTR), |
| 11 product_name("Chromoting"), | 13 product_name(ASCIIToUTF16("Chromoting")), |
| 12 // The default string doesn't include the user name, so this will be | 14 // The default string doesn't include the user name, so this will be |
| 13 // missing for remoting_simple_host | 15 // missing for remoting_simple_host |
|
Jamie
2011/08/18 18:44:26
This comment can be removed now.
| |
| 14 disconnect_message("Your desktop is currently being shared."), | 16 disconnect_message( |
| 15 disconnect_button_text("Disconnect"), | 17 ASCIIToUTF16("Your desktop is currently being shared with $1.")), |
| 18 disconnect_button_text(ASCIIToUTF16("Disconnect")), | |
| 16 // This is the wrong shortcut on Mac OS X, but remoting_simple_host | 19 // This is the wrong shortcut on Mac OS X, but remoting_simple_host |
| 17 // doesn't have a bundle (and hence no dialog) on that platform and | 20 // doesn't have a bundle (and hence no dialog) on that platform and |
| 18 // the web-app will provide the correct localization for this string. | 21 // the web-app will provide the correct localization for this string. |
| 19 disconnect_button_shortcut("Ctrl+Alt+Esc"), | 22 disconnect_button_text_plus_shortcut( |
| 20 continue_prompt( | 23 ASCIIToUTF16("Disconnect (Ctrl+Alt+Esc)")), |
| 24 continue_prompt(ASCIIToUTF16( | |
| 21 "You are currently sharing this machine with another user. " | 25 "You are currently sharing this machine with another user. " |
| 22 "Please confirm that you want to continue sharing."), | 26 "Please confirm that you want to continue sharing.")), |
| 23 continue_button_text("Continue"), | 27 continue_button_text(ASCIIToUTF16("Continue")), |
| 24 stop_sharing_button_text("Stop Sharing") { | 28 stop_sharing_button_text(ASCIIToUTF16("Stop Sharing")) { |
| 25 } | 29 } |
| 26 | 30 |
| 27 UiStrings::~UiStrings() { } | 31 UiStrings::~UiStrings() { } |
| 28 | 32 |
| 29 } | 33 } |
| OLD | NEW |