Chromium Code Reviews| Index: remoting/host/ui_strings.h |
| diff --git a/remoting/host/ui_strings.h b/remoting/host/ui_strings.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f06256b5811fffd2a122228b67660c01dd9df65 |
| --- /dev/null |
| +++ b/remoting/host/ui_strings.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_UI_STRINGS_H_ |
| +#define REMOTING_UI_STRINGS_H_ |
| + |
| +#include <string> |
| + |
| +// This file contains localized strings to be displayed in host dialogs. |
| +// For the web-app, these are loaded from the appropriate messages.json |
| +// file when the plugin is created. For remoting_simple_host, they are |
| +// left set to the default (English) values. |
| +// |
| +// Since we don't anticipate having a significant host-side UI presented |
| +// in this way, a namespace containing all available strings should be |
| +// a reasonable way to implement this. |
| + |
| +namespace remoting { |
| +namespace ui_strings { |
| + |
| +// The direction (left-to-right or right-to-left) for the current language. |
| +enum Direction { RTL, LTR }; |
| +extern Direction direction; |
| + |
| +// The product name (Chromoting or Chrome Remote Desktop). |
| +extern std::string productName; |
| + |
| +// The message in the disconnect dialog. This includes the connected username |
| +// and so changes each time the disconnect dialog is displayed. |
| +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
|
| + |
| +// The label on the disconnect dialog button, without the keyboard shortcut. |
| +extern std::string disconnectButtonText; |
| + |
| +// The keyboard shortcut for disconnecting clients, in parentheses with a |
| +// leading space. |
| +extern std::string disconnectButtonShortcut; |
| + |
| +// The confirmation prompt displayed by the continue window. |
| +extern std::string continuePrompt; |
| + |
| +// The label on the 'Continue' button of the continue window. |
| +extern std::string continueButtonText; |
| + |
| +// The label on the 'Stop Sharing' button of the continue window. |
| +extern std::string stopSharingButtonText; |
| + |
| +} |
| +} |
| + |
| +#endif // REMOTING_UI_STRINGS_H_ |