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

Commit

Permalink
Merge pull request #148 from ArtSabintsev/serbian-localizations
Browse files Browse the repository at this point in the history
Added Serbian localizations
  • Loading branch information
ArtSabintsev authored Nov 10, 2016
2 parents 1d5bb83 + b399416 commit bc91461
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 21 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@
- [Kristaps Grinbergs](https://github.com/fassko)
- **v4.0.7**
- [Luciano Nascimento](https://github.com/@lucianocn)
- **v4.0.8**
- [Vladislav Jevremović](https://github.com/VladislavJevremovic)
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# A sample Gemfile
source "https://rubygems.org"

gem "cocoapods", "1.1.0.rc.2"
gem "cocoapods", "1.1.1"
38 changes: 21 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,69 +1,73 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.3)
activesupport (4.2.7.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (1.0.0)
cocoapods (1.1.0.rc.2)
claide (1.0.1)
cocoapods (1.1.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.0, < 2.0)
cocoapods-core (= 1.1.0.rc.2)
claide (>= 1.0.1, < 2.0)
cocoapods-core (= 1.1.1)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.1, < 2.0)
cocoapods-downloader (>= 1.1.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.1.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored (~> 1.2)
escape (~> 0.0.4)
fourflusher (~> 1.0.1)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.1)
nap (~> 1.0)
xcodeproj (>= 1.3.1, < 2.0)
cocoapods-core (1.1.0.rc.2)
xcodeproj (>= 1.3.3, < 2.0)
cocoapods-core (1.1.1)
activesupport (>= 4.0.2, < 5)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.1)
cocoapods-downloader (1.1.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.0.0)
cocoapods-trunk (1.1.1)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.1.0)
colored (1.2)
escape (0.0.4)
fourflusher (1.0.1)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.2)
i18n (0.7.0)
json (1.8.3)
minitest (5.9.1)
molinillo (0.5.1)
molinillo (0.5.3)
nanaimo (0.2.2)
nap (1.1.0)
netrc (0.7.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
xcodeproj (1.3.1)
xcodeproj (1.4.1)
CFPropertyList (~> 2.3.3)
activesupport (>= 3)
claide (>= 1.0.0, < 2.0)
claide (>= 1.0.1, < 2.0)
colored (~> 1.2)
nanaimo (~> 0.2.0)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (= 1.1.0.rc.2)
cocoapods (= 1.1.1)

BUNDLED WITH
1.13.1
1.13.6
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.0.7"
s.version = "4.0.8"
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.
Binary file not shown.
2 changes: 2 additions & 0 deletions Harpy/Harpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ FOUNDATION_EXPORT NSString * const HarpyLanguagePolish;
FOUNDATION_EXPORT NSString * const HarpyLanguagePortugueseBrazil;
FOUNDATION_EXPORT NSString * const HarpyLanguagePortuguesePortugal;
FOUNDATION_EXPORT NSString * const HarpyLanguageRussian;
FOUNDATION_EXPORT NSString * const HarpyLanguageSerbianCyrillic;
FOUNDATION_EXPORT NSString * const HarpyLanguageSerbianLatin;
FOUNDATION_EXPORT NSString * const HarpyLanguageSlovenian;
FOUNDATION_EXPORT NSString * const HarpyLanguageSwedish;
FOUNDATION_EXPORT NSString * const HarpyLanguageSpanish;
Expand Down
2 changes: 2 additions & 0 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
NSString * const HarpyLanguagePortugueseBrazil = @"pt";
NSString * const HarpyLanguagePortuguesePortugal = @"pt-PT";
NSString * const HarpyLanguageRussian = @"ru";
NSString * const HarpyLanguageSerbianCyrillic = @"sr-Cyrl";
NSString * const HarpyLanguageSerbianLatin = @"sr-Latn";
NSString * const HarpyLanguageSlovenian = @"sl";
NSString * const HarpyLanguageSwedish = @"sv";
NSString * const HarpyLanguageSpanish = @"es";
Expand Down
22 changes: 20 additions & 2 deletions Sampe Project/HarpyTests/HarpyTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,29 @@ - (void)testRussianLocalization {
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Обновить"]);
}

- (void)testSerbianCyrillicLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageSerbianCyrillic];

XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Ажурирање доступно"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Следећи пут"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Skip this version"] isEqualToString:@"Прескочи ову верзију"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Ажурирај"]);
}

- (void)testSerbianLatinLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageSerbianLatin];

XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Ажурирање доступно"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Следећи пут"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Skip this version"] isEqualToString:@"Preskoči ovu verziju"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Ažuriraj"]);
}

- (void)testSlovenianLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageSlovenian];

XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Posodobitev aplikacije"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Naslednjič"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Ažuriranje dostupno"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Sledeći put"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Skip this version"] isEqualToString:@"Ne želim"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Namesti"]);
}
Expand Down

0 comments on commit bc91461

Please sign in to comment.