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

Side by Side Diff: app/l10n_util.h

Issue 113967: Add general options page. Options are working with the following exceptions: (Closed)
Patch Set: Created 11 years, 6 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
« no previous file with comments | « no previous file | app/l10n_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 utility functions for dealing with localized 5 // This file contains utility functions for dealing with localized
6 // content. 6 // content.
7 7
8 #ifndef APP_L10N_UTIL_H_ 8 #ifndef APP_L10N_UTIL_H_
9 #define APP_L10N_UTIL_H_ 9 #define APP_L10N_UTIL_H_
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // GetApplicationLocale(); 60 // GetApplicationLocale();
61 // If |is_for_ui| is true, U+200F is appended so that it can be 61 // If |is_for_ui| is true, U+200F is appended so that it can be
62 // rendered properly in a RTL Chrome. 62 // rendered properly in a RTL Chrome.
63 std::wstring GetLocalName(const std::string& locale_code_str, 63 std::wstring GetLocalName(const std::string& locale_code_str,
64 const std::wstring& app_locale_wstr, 64 const std::wstring& app_locale_wstr,
65 bool is_for_ui); 65 bool is_for_ui);
66 66
67 // Pulls resource string from the string bundle and returns it. 67 // Pulls resource string from the string bundle and returns it.
68 std::wstring GetString(int message_id); 68 std::wstring GetString(int message_id);
69 std::string GetStringUTF8(int message_id); 69 std::string GetStringUTF8(int message_id);
70 string16 GetStringUTF16(int message_id);
70 71
71 // Get a resource string and replace $1-$2-$3 with |a| and |b| 72 // Get a resource string and replace $1-$2-$3 with |a| and |b|
72 // respectively. Additionally, $$ is replaced by $. 73 // respectively. Additionally, $$ is replaced by $.
73 std::wstring GetStringF(int message_id, 74 std::wstring GetStringF(int message_id,
74 const std::wstring& a); 75 const std::wstring& a);
75 std::wstring GetStringF(int message_id, 76 std::wstring GetStringF(int message_id,
76 const std::wstring& a, 77 const std::wstring& a,
77 const std::wstring& b); 78 const std::wstring& b);
78 std::wstring GetStringF(int message_id, 79 std::wstring GetStringF(int message_id,
79 const std::wstring& a, 80 const std::wstring& a,
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 372
372 private: 373 private:
373 UBiDi* bidi_; 374 UBiDi* bidi_;
374 375
375 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); 376 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator);
376 }; 377 };
377 378
378 } 379 }
379 380
380 #endif // APP_L10N_UTIL_H_ 381 #endif // APP_L10N_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | app/l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698