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

Side by Side Diff: chrome/installer/util/l10n_string_util.h

Issue 18732: Wire the eula and the dialog display code... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains helper functions for getting strings that are included in 5 // This file contains helper functions for getting strings that are included in
6 // our DLL for all languages (i.e., does not come from our language DLL). 6 // our DLL for all languages (i.e., does not come from our language DLL).
7 // 7 //
8 // These resource strings are organized such that we can get a localized string 8 // These resource strings are organized such that we can get a localized string
9 // by taking the base resource ID and adding a language offset. For example, 9 // by taking the base resource ID and adding a language offset. For example,
10 // to get the resource id for the localized product name in en-US, we take 10 // to get the resource id for the localized product name in en-US, we take
11 // IDS_PRODUCT_NAME_BASE + IDS_L10N_OFFSET_EN_US. 11 // IDS_PRODUCT_NAME_BASE + IDS_L10N_OFFSET_EN_US.
12 12
13 #ifndef CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 13 #ifndef CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
14 #define CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 14 #define CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
15 15
16 #include <string> 16 #include <string>
17 17
18 namespace installer_util { 18 namespace installer_util {
19 19
20 // Given a string base id, return the localized version of the string based on 20 // Given a string base id, return the localized version of the string based on
21 // the system language. This is used for shortcuts placed on the user's 21 // the system language. This is used for shortcuts placed on the user's
22 // desktop. 22 // desktop.
23 std::wstring GetLocalizedString(int base_message_id); 23 std::wstring GetLocalizedString(int base_message_id);
24 24
25 } 25 // Given the system language, return a url that points to the localized eula.
26 // The empty string is returned on failure.
27 std::wstring GetLocalizedEulaResource();
28
29 } // namespace installer_util.
26 30
27 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 31 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
28 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698