diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 22:55:00 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 22:55:00 +0000 |
commit | 40f42682afc1bd543f9fde452f7f1f20fcf55492 (patch) | |
tree | 41ff092c71006e5f7b78d4001d2bf5dba791579c /remoting/host/ui_strings.h | |
parent | 8d9ba45e32071d98ef12d279071cacc09a09f35c (diff) | |
download | chromium_src-40f42682afc1bd543f9fde452f7f1f20fcf55492.zip chromium_src-40f42682afc1bd543f9fde452f7f1f20fcf55492.tar.gz chromium_src-40f42682afc1bd543f9fde452f7f1f20fcf55492.tar.bz2 |
Localized Chromoting Host on Mac and Linux.
This CL implements generation of localizable strings from remoting_strings.grd file. Depending on the platform the localized resources are placed to:
- Mac: localized .string and .pak resources are added to each application bundle under 'Resources/<locale>.lproj'
- Linux: localized .pak files are placed under 'remoting_locales' directory next to the binary locading them.
- Windows: .rc resources are generated from .jinja2 templates and embedded into a relevant binary.
Chrome l10n and i18n APIs are used to retrieve the current locale and RTL flag (Mac & Linux). The it2me plugin sets the locale to match the locale of the browser.
Collateral changes:
- UiString is not used any more.
- Increased width of disconnect window message on Mac.
- The host plugin version is correctly reported on Mac.
- Dialogs use RTL templates in case of RTL languages. No more updating the templates dynamically (Windows).
- remoting_unittests.ResourcesTest row runs on Mac, LInux and Windows.
- '@' is used for variable substitutions by remoting_localize.py.
- HOST_PLUGIN_MIME_TYPE is defined in one place now.
- Deleted unused commong_resources.grd.
Mac installer and preference panel are not localized yet.
BUG=155204
Review URL: https://chromiumcodereview.appspot.com/19803010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/ui_strings.h')
-rw-r--r-- | remoting/host/ui_strings.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/remoting/host/ui_strings.h b/remoting/host/ui_strings.h deleted file mode 100644 index 356c27a..0000000 --- a/remoting/host/ui_strings.h +++ /dev/null @@ -1,50 +0,0 @@ -// 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_HOST_UI_STRINGS_H_ -#define REMOTING_HOST_UI_STRINGS_H_ - -#include "base/strings/string16.h" - -// This struct 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 { - -struct UiStrings { - UiStrings(); - ~UiStrings(); - - // The direction (left-to-right or right-to-left) for the current language. - enum Direction { RTL, LTR }; - Direction direction; - - // The product name (Chromoting or Chrome Remote Desktop). - string16 product_name; - - // The message in the disconnect dialog. - string16 disconnect_message; - - // The label on the disconnect dialog button, without the keyboard shortcut. - string16 disconnect_button_text; - - // The confirmation prompt displayed by the continue window. - string16 continue_prompt; - - // The label on the 'Continue' button of the continue window. - string16 continue_button_text; - - // The label on the 'Stop Sharing' button of the continue window. - string16 stop_sharing_button_text; -}; - -} - -#endif // REMOTING_HOST_UI_STRINGS_H_ |