OLD | NEW |
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 #pragma once | 15 #pragma once |
16 | 16 |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 namespace installer_util { | 19 namespace installer { |
20 | 20 |
21 // Given a string base id, return the localized version of the string based on | 21 // Given a string base id, return the localized version of the string based on |
22 // the system language. This is used for shortcuts placed on the user's | 22 // the system language. This is used for shortcuts placed on the user's |
23 // desktop. | 23 // desktop. |
24 std::wstring GetLocalizedString(int base_message_id); | 24 std::wstring GetLocalizedString(int base_message_id); |
25 | 25 |
26 // Given the system language, return a url that points to the localized eula. | 26 // Given the system language, return a url that points to the localized eula. |
27 // The empty string is returned on failure. | 27 // The empty string is returned on failure. |
28 std::wstring GetLocalizedEulaResource(); | 28 std::wstring GetLocalizedEulaResource(); |
29 | 29 |
30 } // namespace installer_util. | 30 } // namespace installer. |
31 | 31 |
32 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ | 32 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ |
OLD | NEW |