Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_UI_STRINGS_H_ | |
| 6 #define REMOTING_UI_STRINGS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 // This file contains localized strings to be displayed in host dialogs. | |
| 11 // For the web-app, these are loaded from the appropriate messages.json | |
| 12 // file when the plugin is created. For remoting_simple_host, they are | |
| 13 // left set to the default (English) values. | |
| 14 // | |
| 15 // Since we don't anticipate having a significant host-side UI presented | |
| 16 // in this way, a namespace containing all available strings should be | |
| 17 // a reasonable way to implement this. | |
| 18 | |
| 19 namespace remoting { | |
| 20 namespace ui_strings { | |
| 21 | |
| 22 // The direction (left-to-right or right-to-left) for the current language. | |
| 23 enum Direction { RTL, LTR }; | |
| 24 extern Direction direction; | |
| 25 | |
| 26 // The product name (Chromoting or Chrome Remote Desktop). | |
| 27 extern std::string productName; | |
| 28 | |
| 29 // The message in the disconnect dialog. This includes the connected username | |
| 30 // and so changes each time the disconnect dialog is displayed. | |
| 31 extern std::string disconnectMessage; | |
|
Lambros
2011/08/12 17:20:36
This won't work for multiple plugin instances (whe
Jamie
2011/08/12 23:09:54
Good point. Please take a look at the new approach
| |
| 32 | |
| 33 // The label on the disconnect dialog button, without the keyboard shortcut. | |
| 34 extern std::string disconnectButtonText; | |
| 35 | |
| 36 // The keyboard shortcut for disconnecting clients, in parentheses with a | |
| 37 // leading space. | |
| 38 extern std::string disconnectButtonShortcut; | |
| 39 | |
| 40 // The confirmation prompt displayed by the continue window. | |
| 41 extern std::string continuePrompt; | |
| 42 | |
| 43 // The label on the 'Continue' button of the continue window. | |
| 44 extern std::string continueButtonText; | |
| 45 | |
| 46 // The label on the 'Stop Sharing' button of the continue window. | |
| 47 extern std::string stopSharingButtonText; | |
| 48 | |
| 49 } | |
| 50 } | |
| 51 | |
| 52 #endif // REMOTING_UI_STRINGS_H_ | |
| OLD | NEW |