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

Side by Side Diff: chrome/browser/extensions/extension_l10n_util.h

Issue 256022: Loads local resources from current locale subtree if available, if not it fal... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_file_util.cc ('k') | chrome/browser/extensions/extension_l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698