Skip to content

Commit a40dea4

Browse files
committed
Merge pull request mattt#16 from glwithu06/master
Add traditional chinese plural rule
2 parents 9bdb7a3 + c1452ef commit a40dea4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TTTLocalizedPluralString.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
return kTTTOtherPluralRule;
5858
}
5959

60+
static NSString * TTTTraditionalChinesePluralRuleForCount(NSUInteger count) {
61+
return kTTTOtherPluralRule;
62+
}
63+
6064
static NSString * TTTCzechPluralRuleForCount(NSUInteger count) {
6165
switch (count) {
6266
case 1:
@@ -209,6 +213,8 @@
209213
pluralRule = TTTArabicPluralRuleForCount(count);
210214
} else if ([languageCode hasPrefix:@"zh-Hans"]) {
211215
pluralRule = TTTSimplifiedChinesePluralRuleForCount(count);
216+
} else if ([languageCode hasPrefix:@"zh-Hant"]) {
217+
pluralRule = TTTTraditionalChinesePluralRuleForCount(count);
212218
} else if ([languageCode hasPrefix:@"cs"]) {
213219
pluralRule = TTTCzechPluralRuleForCount(count);
214220
} else if ([languageCode hasPrefix:@"en"]) {

0 commit comments

Comments
 (0)