Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1155)

Unified Diff: remoting/host/ui_strings.cc

Issue 7669045: Make ChromotingHost::ui_strings() immutable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/ui_strings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ui_strings.cc
diff --git a/remoting/host/ui_strings.cc b/remoting/host/ui_strings.cc
index 760643f6b38d26922d566c702a1ecc85dfe09b69..99c59b32f87349e05feb84069ea3e5974acb9efd 100644
--- a/remoting/host/ui_strings.cc
+++ b/remoting/host/ui_strings.cc
@@ -4,24 +4,26 @@
#include "remoting/host/ui_strings.h"
+#include "base/utf_string_conversions.h"
+
namespace remoting {
UiStrings::UiStrings() :
direction(LTR),
- product_name("Chromoting"),
- // The default string doesn't include the user name, so this will be
- // missing for remoting_simple_host
- disconnect_message("Your desktop is currently being shared."),
- disconnect_button_text("Disconnect"),
+ product_name(ASCIIToUTF16("Chromoting")),
+ disconnect_message(
+ ASCIIToUTF16("Your desktop is currently being shared with $1.")),
+ disconnect_button_text(ASCIIToUTF16("Disconnect")),
// This is the wrong shortcut on Mac OS X, but remoting_simple_host
// doesn't have a bundle (and hence no dialog) on that platform and
// the web-app will provide the correct localization for this string.
- disconnect_button_shortcut("Ctrl+Alt+Esc"),
- continue_prompt(
+ disconnect_button_text_plus_shortcut(
+ ASCIIToUTF16("Disconnect (Ctrl+Alt+Esc)")),
+ continue_prompt(ASCIIToUTF16(
"You are currently sharing this machine with another user. "
- "Please confirm that you want to continue sharing."),
- continue_button_text("Continue"),
- stop_sharing_button_text("Stop Sharing") {
+ "Please confirm that you want to continue sharing.")),
+ continue_button_text(ASCIIToUTF16("Continue")),
+ stop_sharing_button_text(ASCIIToUTF16("Stop Sharing")) {
}
UiStrings::~UiStrings() { }
« no previous file with comments | « remoting/host/ui_strings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698