Skip to content

Commit 155eea9

Browse files
committed
update to searchbar localization
1 parent 3c7530a commit 155eea9

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
/Examples/iOS_ObjectiveC_Cocoapods/Pods
1717
/Examples/iOS_ObjectiveC_Cocoapods/iOS_ObjectiveC_Cocoapods.xcworkspace
1818
/LocalizationKit.xcworkspace/xcuserdata/Keytree20.xcuserdatad/UserInterfaceState.xcuserstate
19+
/.DS_Store
20+
.DS_Store

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# LocalizationKit
22
Here is a complete log of what has been changed in each version. Currently this library it iterating quickly to add features and functionality.
3+
### 4.2.4 - upgrade to correct UISearchBar prompt setting to nil
34
### 4.2.0 - upgrade to swift 4.2
45
### 4.0.5 - removed force unwraps and resolved switching keys issue
56
### 4.0.4 - updated to fix initial localization and update the app

LocalizationKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'LocalizationKit'
3-
s.version = '4.2.3'
3+
s.version = '4.2.4'
44
s.summary = 'iOS Localization made easy. Localize texts and manage your translations in realtime to support multi lingual deployment.'
55

66
s.description = <<-DESC

Sources/iOSClasses/UISearchBar+Localization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extension UISearchBar {
8888
let promptKey = "\(localizeKey).Prompt";
8989
if let prompt = self.prompt {
9090
let languageString = Localization.get(promptKey, alternate:prompt)
91-
if !languageString.isEmpty {
91+
if !languageString.isEmpty, languageString != " ", languageString != promptKey {
9292
self.prompt = languageString
9393
}else{
9494
self.prompt = nil

0 commit comments

Comments
 (0)