eliotfowler / BritishInvasion

Localise Your .m Files, For Queen And Country

Home Page:http://www.bbc.co.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Mattt Thompson @mattt

License

British Invasion is available under the MIT license. See the LICENSE file for more info.

About

Localise Your .m Files, For Queen And Country

http://www.bbc.co.uk

License:MIT License


Languages

Language:Objective-C 100.0%