forked from mbogh/bemyeyes-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIButton+MKLocalization.h
53 lines (45 loc) · 1.47 KB
/
UIButton+MKLocalization.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// UIButton+RKLocalization.h
// MiawKit
//
// Created by Ulrik Damm on 21/01/14.
// Copyright (c) 2014 Robocat. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (MKLocalization)
/*!
* Localize the button using the current text of the button
* as the key value for the localized string lookup.
*/
- (void)mk_localize;
/*!
* Localize the button using the given localization key
* @param localization The localization key
*/
- (void)mk_localize:(NSString *)localization;
/*!
* Localize the button using the given localization key
* and format it with the given extra parameters.
* @param localization The localization key
* @param ... The extra parameters used to format the localized string
*/
- (void)mk_localizeWithFormat:(NSString *)localization, ...;
/*!
* Localize the button using the given localization key
* from the given table.
* @param localization The localization key
* @param table The table used for the localized string lookup
*/
- (void)mk_localize:(NSString *)localization
fromTable:(NSString *)table;
/*!
* Localize the button using the given localization key
* from the given table and format it using the given
* extra parameters.
* @param localization The localization key
* @param table The table used for the localized string lookup
* @param ... The extra parameters used to format the localized string
*/
- (void)mk_localizeFromTable:(NSString *)table
withFormat:(NSString *)localization, ...;
@end