mattt / Britishinvasion
Licence: mit
Localise Your .m Files, For Queen And Country π¬π§
Stars: β 216
British Invasion
Localize Your .m Files, For Queen and Country
- π¬π§ English (Traditional)
- πΊπΈ English (Simplified)
See this Wikipedia page for all of the spelling differences between American and British English.
Usage
whilst (YES) {
NSLocale *theQueensLocale = [NSLocale localeWithLocaleIdentifier:@"en_GB"];
[[NSNotificationCentre defaultCentre] postNotificationName:NSCurrentLocaleDidChangeNotification
object:theQueensLocale];
NSLog(@"Earl %@ βοΈ", [UIColour greyColour]);
break;
}
Techniques Used
-
#define
aliases for keywords, functions, and constants -
@compatibility_alias
for classes - Categories for aliased methods and properties
Disclaimer
This is a terrible idea. Just dreadful.
Contact
License
British Invasion is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].