From 95613bd7dde7c15669022f69b7f9e611054873c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Sun, 24 Apr 2016 09:45:00 -0700 Subject: [ios, osx] Made OS X SDK localizable Replaced the iOS-specific ilocalize make rule with a genstrings make rule that creates iOS, OS X, and shared strings files. Moved the override English .stringsdict file under darwin/resources/. Made the default OS X callout view XIB localizable. Made some hard-coded strings in the OS X SDK source localizable. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 96598011a9..6c2e58ff94 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,14 @@ test-osx: osx node_modules/express -configuration $(BUILDTYPE) \ -workspace $(OSX_WORK_PATH) -scheme CI test | xcpretty +genstrings: + genstrings -u -o platform/osx/sdk/Base.lproj platform/darwin/src/*.{m,mm} + genstrings -u -o platform/osx/sdk/Base.lproj platform/osx/src/*.{m,mm} + genstrings -u -o platform/ios/resources/Base.lproj platform/ios/src/*.{m,mm} + mv platform/osx/sdk/Base.lproj/Foundation.strings platform/darwin/resources/Base.lproj/ + -find platform/{darwin,ios,osx}/ -path '*/Base.lproj/*.strings' -exec \ + textutil -convert txt -extension strings -inputencoding UTF-16 -encoding UTF-8 {} \; + #### iOS targets ############################################################## IOS_OUTPUT_PATH = build/ios @@ -125,12 +133,6 @@ ifabric: $(IOS_PROJ_PATH) idocument: OUTPUT=$(OUTPUT) ./platform/ios/scripts/document.sh -ilocalize: - genstrings -u -o platform/ios/resources/Base.lproj platform/darwin/src/*.{m,mm} - genstrings -u -o platform/ios/resources/Base.lproj platform/ios/src/*.{m,mm} - -find platform/ios/ -path '*/Base.lproj/*.strings' -exec \ - textutil -convert txt -extension strings -inputencoding UTF-16 -encoding UTF-8 {} \; - #### Android targets ##################################################### # Builds a particular android architecture. -- cgit v1.2.1