diff --git a/Localize_Swift.xcodeproj/project.pbxproj b/Localize_Swift.xcodeproj/project.pbxproj index 27879c5..077e5a4 100644 --- a/Localize_Swift.xcodeproj/project.pbxproj +++ b/Localize_Swift.xcodeproj/project.pbxproj @@ -410,7 +410,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 9; + CURRENT_PROJECT_VERSION = 10; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -458,7 +458,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 9; + CURRENT_PROJECT_VERSION = 10; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -486,7 +486,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Localize_Swift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -506,7 +506,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Localize_Swift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -544,7 +544,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Localize_Swift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -565,7 +565,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Localize_Swift/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -584,7 +584,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "$(SRCROOT)/Localize_Swift-tvOS.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -605,7 +605,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "$(SRCROOT)/Localize_Swift-tvOS.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -624,7 +624,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "$(SRCROOT)/Localize_Swift/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -645,7 +645,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 9; + DYLIB_CURRENT_VERSION = 10; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "$(SRCROOT)/Localize_Swift/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; diff --git a/Localize_Swift/Info.plist b/Localize_Swift/Info.plist index 66241e5..0ab82ed 100644 --- a/Localize_Swift/Info.plist +++ b/Localize_Swift/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.2 + 1.5 CFBundleSignature ???? CFBundleVersion - 9 + 10 NSPrincipalClass diff --git a/Localize_SwiftTests/Info.plist b/Localize_SwiftTests/Info.plist index eaebb1d..19007b7 100644 --- a/Localize_SwiftTests/Info.plist +++ b/Localize_SwiftTests/Info.plist @@ -15,10 +15,10 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.1.2 + 1.5 CFBundleSignature ???? CFBundleVersion - 9 + 10 diff --git a/README.md b/README.md index 9e083b4..ef80de6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Platform](https://img.shields.io/cocoapods/p/Localize-Swift.svg?maxAge=2592000)](http://cocoapods.org/?q=Localize-Swift) [![Build Status](https://travis-ci.org/marmelroy/Localize-Swift.svg?branch=master)](https://travis-ci.org/marmelroy/Localize-Swift) [![Version](http://img.shields.io/cocoapods/v/Localize-Swift.svg)](http://cocoapods.org/?q=Localize-Swift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) @@ -49,9 +50,14 @@ Localize.resetCurrentLanguageToDefault() ## genstrings -To support this new i18n syntax, Localize-Swift includes a custom genstrings python script. +To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts. -Copy the genstrings.py file into your project's root folder and run with +Copy the genstrings file (either .swift or .py) into your project's root folder and run with + +``` +./genstrings.swift +``` +or ``` python genstrings.py @@ -59,6 +65,7 @@ python genstrings.py This will print the collected strings in the terminal. Select and copy to your default Localizable.strings. +The Swift genstrings includes the ability to specify excluded directories and files (edit the script). ### Setting up with Carthage