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

Side by Side Diff: app/l10n_util_mac.h

Issue 597042: Translate: Move label parsing logic into common code. (Closed)
Patch Set: Fix indentation. Created 10 years, 10 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
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 #ifndef APP_L10N_UTIL_MAC_H_ 5 #ifndef APP_L10N_UTIL_MAC_H_
6 #define APP_L10N_UTIL_MAC_H_ 6 #define APP_L10N_UTIL_MAC_H_
7 7
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 24 matching lines...) Expand all
35 NSString* GetNSStringF(int message_id, 35 NSString* GetNSStringF(int message_id,
36 const string16& a, 36 const string16& a,
37 const string16& b, 37 const string16& b,
38 const string16& c); 38 const string16& c);
39 NSString* GetNSStringF(int message_id, 39 NSString* GetNSStringF(int message_id,
40 const string16& a, 40 const string16& a,
41 const string16& b, 41 const string16& b,
42 const string16& c, 42 const string16& c,
43 const string16& d); 43 const string16& d);
44 44
45 // Variants that return the offset(s) of the replaced parameters. The
46 // vector based version returns offsets ordered by parameter. For example if
47 // invoked with a and b offsets[0] gives the offset for a and offsets[1] the
48 // offset of b regardless of where the parameters end up in the string.
49 NSString* GetNSStringF(int message_id,
50 const string16& a,
51 const string16& b,
52 std::vector<size_t>* offsets);
53
45 // Same as GetNSString, but runs the result through FixUpWindowsStyleLabel 54 // Same as GetNSString, but runs the result through FixUpWindowsStyleLabel
46 // before returning it. 55 // before returning it.
47 NSString* GetNSStringWithFixup(int message_id); 56 NSString* GetNSStringWithFixup(int message_id);
48 57
49 // Same as GetNSStringF, but runs the result through FixUpWindowsStyleLabel 58 // Same as GetNSStringF, but runs the result through FixUpWindowsStyleLabel
50 // before returning it. 59 // before returning it.
51 NSString* GetNSStringFWithFixup(int message_id, 60 NSString* GetNSStringFWithFixup(int message_id,
52 const string16& a); 61 const string16& a);
53 NSString* GetNSStringFWithFixup(int message_id, 62 NSString* GetNSStringFWithFixup(int message_id,
54 const string16& a, 63 const string16& a,
55 const string16& b); 64 const string16& b);
56 NSString* GetNSStringFWithFixup(int message_id, 65 NSString* GetNSStringFWithFixup(int message_id,
57 const string16& a, 66 const string16& a,
58 const string16& b, 67 const string16& b,
59 const string16& c); 68 const string16& c);
60 NSString* GetNSStringFWithFixup(int message_id, 69 NSString* GetNSStringFWithFixup(int message_id,
61 const string16& a, 70 const string16& a,
62 const string16& b, 71 const string16& b,
63 const string16& c, 72 const string16& c,
64 const string16& d); 73 const string16& d);
65 74
66 // Support the override of the locale with the value from Cocoa. 75 // Support the override of the locale with the value from Cocoa.
67 void OverrideLocaleWithCocoaLocale(); 76 void OverrideLocaleWithCocoaLocale();
68 const std::string& GetLocaleOverride(); 77 const std::string& GetLocaleOverride();
69 78
70 } // namespace l10n_util 79 } // namespace l10n_util
71 80
72 #endif // APP_L10N_UTIL_MAC_H_ 81 #endif // APP_L10N_UTIL_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698