This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static NSString * BCP47LanguageCodeFromISO681LanguageCode(NSString *ISO681LanguageCode) { | |
| if ([ISO681LanguageCode isEqualToString:@"ar"]) { | |
| return @"ar-SA"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"cs"]) { | |
| return @"cs-CZ"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"da"]) { | |
| return @"da-DK"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"de"]) { | |
| return @"de-DE"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"el"]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
NewerOlder