diff --git a/GCCountryPickerDemo.xcodeproj/project.pbxproj b/GCCountryPickerDemo.xcodeproj/project.pbxproj index 2fd4ad7..03bb49e 100644 --- a/GCCountryPickerDemo.xcodeproj/project.pbxproj +++ b/GCCountryPickerDemo.xcodeproj/project.pbxproj @@ -13,6 +13,7 @@ E2644B5A1F7D93260034EA06 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E2644B591F7D93260034EA06 /* Assets.xcassets */; }; E2644B5D1F7D93260034EA06 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E2644B5B1F7D93260034EA06 /* LaunchScreen.storyboard */; }; E2F9BFAF1F7D962200131AF8 /* GCCountryPicker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2644B661F7D93450034EA06 /* GCCountryPicker.framework */; }; + E2FDD8481F86C27200C1595A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = E2FDD84A1F86C27200C1595A /* Localizable.strings */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -24,6 +25,10 @@ E2644B5C1F7D93260034EA06 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; E2644B5E1F7D93260034EA06 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; E2644B661F7D93450034EA06 /* GCCountryPicker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = GCCountryPicker.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + E2FDD8491F86C27200C1595A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + E2FDD84B1F86C2A400C1595A /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = ""; }; + E2FDD84D1F86C32800C1595A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; + E2FDD84E1F86C33B00C1595A /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -63,6 +68,7 @@ E2644B591F7D93260034EA06 /* Assets.xcassets */, E2644B561F7D93260034EA06 /* Main.storyboard */, E2644B5B1F7D93260034EA06 /* LaunchScreen.storyboard */, + E2FDD84A1F86C27200C1595A /* Localizable.strings */, E2644B5E1F7D93260034EA06 /* Info.plist */, ); path = GCCountryPickerDemo; @@ -119,6 +125,9 @@ knownRegions = ( en, Base, + "zh-Hans", + de, + ja, ); mainGroup = E2644B461F7D93260034EA06; productRefGroup = E2644B501F7D93260034EA06 /* Products */; @@ -136,6 +145,7 @@ buildActionMask = 2147483647; files = ( E2644B5D1F7D93260034EA06 /* LaunchScreen.storyboard in Resources */, + E2FDD8481F86C27200C1595A /* Localizable.strings in Resources */, E2644B5A1F7D93260034EA06 /* Assets.xcassets in Resources */, E2644B581F7D93260034EA06 /* Main.storyboard in Resources */, ); @@ -172,6 +182,17 @@ name = LaunchScreen.storyboard; sourceTree = ""; }; + E2FDD84A1F86C27200C1595A /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + E2FDD8491F86C27200C1595A /* en */, + E2FDD84B1F86C2A400C1595A /* zh-Hans */, + E2FDD84D1F86C32800C1595A /* de */, + E2FDD84E1F86C33B00C1595A /* ja */, + ); + name = Localizable.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -179,6 +200,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; @@ -236,6 +258,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; diff --git a/GCCountryPickerDemo/ViewController.swift b/GCCountryPickerDemo/ViewController.swift index 97b07ee..0a68a6d 100644 --- a/GCCountryPickerDemo/ViewController.swift +++ b/GCCountryPickerDemo/ViewController.swift @@ -44,7 +44,7 @@ extension ViewController { let countryPickerViewController = GCCountryPickerViewController() countryPickerViewController.delegate = self - countryPickerViewController.navigationItem.title = "Countries" + countryPickerViewController.navigationItem.title = NSLocalizedString("Countries", comment: "") let navigationController = UINavigationController(rootViewController: countryPickerViewController) diff --git a/GCCountryPickerDemo/de.lproj/Localizable.strings b/GCCountryPickerDemo/de.lproj/Localizable.strings new file mode 100644 index 0000000..deaca0e --- /dev/null +++ b/GCCountryPickerDemo/de.lproj/Localizable.strings @@ -0,0 +1,8 @@ +// +// Localizable.strings +// GCCountryPickerDemo +// +// Created by Gray Campbell on 10/5/17. +// + +Countries = "Länder"; diff --git a/GCCountryPickerDemo/en.lproj/Localizable.strings b/GCCountryPickerDemo/en.lproj/Localizable.strings new file mode 100644 index 0000000..9536ecb --- /dev/null +++ b/GCCountryPickerDemo/en.lproj/Localizable.strings @@ -0,0 +1,8 @@ +// +// Localizable.strings +// GCCountryPickerDemo +// +// Created by Gray Campbell on 10/5/17. +// + +Countries = "Countries"; diff --git a/GCCountryPickerDemo/fr.lproj/Localizable.strings b/GCCountryPickerDemo/fr.lproj/Localizable.strings new file mode 100644 index 0000000..f5ee3ab --- /dev/null +++ b/GCCountryPickerDemo/fr.lproj/Localizable.strings @@ -0,0 +1,7 @@ +/* + Localizable.strings + GCCountryPickerDemo + + Created by MacBook Pro on 10/5/17. + Copyright © 2017 Gray Campbell. All rights reserved. +*/ diff --git a/GCCountryPickerDemo/ja.lproj/Localizable.strings b/GCCountryPickerDemo/ja.lproj/Localizable.strings new file mode 100644 index 0000000..aaccd37 --- /dev/null +++ b/GCCountryPickerDemo/ja.lproj/Localizable.strings @@ -0,0 +1,8 @@ +// +// Localizable.strings +// GCCountryPickerDemo +// +// Created by Gray Campbell on 10/5/17. +// + +Countries = "国々"; diff --git a/GCCountryPickerDemo/zh-Hans.lproj/Localizable.strings b/GCCountryPickerDemo/zh-Hans.lproj/Localizable.strings new file mode 100644 index 0000000..85922cf --- /dev/null +++ b/GCCountryPickerDemo/zh-Hans.lproj/Localizable.strings @@ -0,0 +1,8 @@ +// +// Localizable.strings +// GCCountryPickerDemo +// +// Created by Gray Campbell on 10/5/17. +// + +Countries = "国家"; diff --git a/README.md b/README.md index 9facdcc..d35a1b4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![banner](Resources/README/Assets/Banner.png) + [![Release](https://img.shields.io/github/release/graycampbell/GCCountryPicker.svg)](https://github.com/graycampbell/GCCountryPicker/releases/latest) [![CocoaPods](https://img.shields.io/cocoapods/v/GCCountryPicker.svg)](https://cocoapods.org/pods/GCCountryPicker) [![CocoaDocs](https://img.shields.io/cocoapods/metrics/doc-percent/GCCountryPicker.svg)](http://cocoadocs.org/docsets/GCCountryPicker) diff --git a/Resources/README/Assets/Banner.png b/Resources/README/Assets/Banner.png new file mode 100644 index 0000000..8852b84 Binary files /dev/null and b/Resources/README/Assets/Banner.png differ diff --git a/Resources/README/Projects/Banner.sketch b/Resources/README/Projects/Banner.sketch index 5e27304..1b4a7ec 100644 Binary files a/Resources/README/Projects/Banner.sketch and b/Resources/README/Projects/Banner.sketch differ diff --git a/Resources/README/Screenshots/de.png b/Resources/README/Screenshots/de.png new file mode 100644 index 0000000..464f888 Binary files /dev/null and b/Resources/README/Screenshots/de.png differ diff --git a/Resources/README/Screenshots/en.png b/Resources/README/Screenshots/en.png new file mode 100644 index 0000000..caa5bfa Binary files /dev/null and b/Resources/README/Screenshots/en.png differ diff --git a/Resources/README/Screenshots/ja.png b/Resources/README/Screenshots/ja.png new file mode 100644 index 0000000..2209f6f Binary files /dev/null and b/Resources/README/Screenshots/ja.png differ diff --git a/Resources/README/Screenshots/zh-Hans.png b/Resources/README/Screenshots/zh-Hans.png new file mode 100644 index 0000000..50d72d7 Binary files /dev/null and b/Resources/README/Screenshots/zh-Hans.png differ