summaryrefslogtreecommitdiff
path: root/UICaboodle/UCLocalize.h
blob: ba66655a813470519844ec12febb13b7a29b3da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef UICABOODLE_UCLOCALIZE_H
#define UICABOODLE_UCLOCALIZE_H

#import <Foundation/Foundation.h>

static inline NSString *UCLocalizeEx(NSString *key, NSString *value = nil) {
    return [[NSBundle mainBundle] localizedStringForKey:key value:value table:nil];
}

#define UCLocalize(key) UCLocalizeEx(@ key)

#endif/*UICABOODLE_UCLOCALIZE_H*/