OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 declares extension specific l10n utils. | 5 // This file declares extension specific l10n utils. |
6 | 6 |
7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // locale doesn't have to exist). | 48 // locale doesn't have to exist). |
49 // It creates simplified in-memory representation of name-value pairs, where | 49 // It creates simplified in-memory representation of name-value pairs, where |
50 // value part is actual message with placeholders resolved. | 50 // value part is actual message with placeholders resolved. |
51 // Returns message bundle if it can load default locale messages file, and all | 51 // Returns message bundle if it can load default locale messages file, and all |
52 // messages are valid, else returns NULL and sets error. | 52 // messages are valid, else returns NULL and sets error. |
53 ExtensionMessageBundle* LoadMessageCatalogs(const FilePath& locale_path, | 53 ExtensionMessageBundle* LoadMessageCatalogs(const FilePath& locale_path, |
54 const std::string& default_locale, | 54 const std::string& default_locale, |
55 const std::string& app_locale, | 55 const std::string& app_locale, |
56 std::string* error); | 56 std::string* error); |
57 | 57 |
| 58 // Returns relative l10n path to the resource. |
| 59 FilePath GetL10nRelativePath(const FilePath& relative_resource_path); |
| 60 |
58 } // namespace extension_l10n_util | 61 } // namespace extension_l10n_util |
59 | 62 |
60 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 63 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
OLD | NEW |