Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
Added Czech localization and tests. Updated Podspec and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed May 29, 2017
1 parent ac54bf2 commit a5200c3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Harpy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Harpy"
s.version = "4.1.1"
s.version = "4.1.2"
s.summary = "Notify users that a new version of your iOS app is available, and prompt them with the App Store link."
s.homepage = "https://github.com/ArtSabintsev/Harpy"
s.platform = :ios, '8.0'
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions Harpy/Harpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ FOUNDATION_EXPORT NSString * const HarpyLanguageBasque;
FOUNDATION_EXPORT NSString * const HarpyLanguageChineseSimplified;
FOUNDATION_EXPORT NSString * const HarpyLanguageChineseTraditional;
FOUNDATION_EXPORT NSString * const HarpyLanguageCroatian;
FOUNDATION_EXPORT NSString * const HarpyLanguageCzech;
FOUNDATION_EXPORT NSString * const HarpyLanguageDanish;
FOUNDATION_EXPORT NSString * const HarpyLanguageDutch;
FOUNDATION_EXPORT NSString * const HarpyLanguageEnglish;
Expand Down
1 change: 1 addition & 0 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
NSString * const HarpyLanguageChineseSimplified = @"zh-Hans";
NSString * const HarpyLanguageChineseTraditional = @"zh-Hant";
NSString * const HarpyLanguageCroatian = @"hr";
NSString * const HarpyLanguageCzech = @"cs";
NSString * const HarpyLanguageDanish = @"da";
NSString * const HarpyLanguageDutch = @"nl";
NSString * const HarpyLanguageEnglish = @"en";
Expand Down
9 changes: 9 additions & 0 deletions HarpyExample/HarpyExampleTests/HarpyTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ - (void)testCroationLocalization {
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Ažuriraj"]);
}

- (void)testCzechLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageCzech];

XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Aktualizace dostupná"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Příště"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Skip this version"] isEqualToString:@"Přeskočit tuto verzi"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Aktualizovat"]);
}

- (void)testDanishLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageDanish];

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ Harpy is localized for
- Armenian
- Basque
- Chinese (Simplified and Traditional)
- Croatian
- Czech
- Danish
- Dutch
- English
Expand All @@ -198,8 +200,8 @@ Harpy is localized for
- Russian
- Serbian (Cyrillic and Latin)
- Slovenian
- Swedish
- Spanish
- Swedish
- Thai
- Turkish
- Vietnamese
Expand Down

0 comments on commit a5200c3

Please sign in to comment.