Skip to content

Commit

Permalink
Initial support for iOS.
Browse files Browse the repository at this point in the history
Greenwich can generate strings files for iOS and can handle localizing items from nib and storyboard files.
It still needs a way of actually making localizations and restarting applications.

--HG--
rename : Framework/Resources/Localization.xib => Framework/Resources/Mac/Localization.xib
rename : Framework/Resources/de.lproj/Localizable.strings => Framework/Resources/Mac/de.lproj/Localizable.strings
rename : Framework/Resources/de.lproj/Localization.strings => Framework/Resources/Mac/de.lproj/Localization.strings
rename : Framework/Resources/en.lproj/Localizable.strings => Framework/Resources/Mac/en.lproj/Localizable.strings
rename : Framework/Resources/en.lproj/Localization.strings => Framework/Resources/Mac/en.lproj/Localization.strings
rename : Framework/Resources/es.lproj/Localizable.strings => Framework/Resources/Mac/es.lproj/Localizable.strings
rename : Framework/Resources/es.lproj/Localization.strings => Framework/Resources/Mac/es.lproj/Localization.strings
rename : Framework/Resources/fr.lproj/Localizable.strings => Framework/Resources/Mac/fr.lproj/Localizable.strings
rename : Framework/Resources/fr.lproj/Localization.strings => Framework/Resources/Mac/fr.lproj/Localization.strings
rename : Framework/Resources/it.lproj/Localizable.strings => Framework/Resources/Mac/it.lproj/Localizable.strings
rename : Framework/Resources/it.lproj/Localization.strings => Framework/Resources/Mac/it.lproj/Localization.strings
rename : Framework/Resources/ja.lproj/Localizable.strings => Framework/Resources/Mac/ja.lproj/Localizable.strings
rename : Framework/Resources/ja.lproj/Localization.strings => Framework/Resources/Mac/ja.lproj/Localization.strings
rename : Framework/Resources/nl.lproj/Localizable.strings => Framework/Resources/Mac/nl.lproj/Localizable.strings
rename : Framework/Resources/nl.lproj/Localization.strings => Framework/Resources/Mac/nl.lproj/Localization.strings
rename : Framework/Resources/no.lproj/Localizable.strings => Framework/Resources/Mac/no.lproj/Localizable.strings
rename : Framework/Resources/no.lproj/Localization.strings => Framework/Resources/Mac/no.lproj/Localization.strings
rename : Framework/Resources/pt.lproj/Localizable.strings => Framework/Resources/Mac/pt.lproj/Localizable.strings
rename : Framework/Resources/pt.lproj/Localization.strings => Framework/Resources/Mac/pt.lproj/Localization.strings
rename : Framework/Scripts/lib/scriptlib/i18n/xib.py => Framework/Scripts/lib/scriptlib/i18n/document.py
rename : Framework/Source/FRLocalizationManager.h => Framework/Source/Mac/FRLocalizationManager.h
rename : Framework/Source/FRLocalizationManager.m => Framework/Source/Mac/FRLocalizationManager.m
rename : Framework/Source/FRLocalizationWindowController.h => Framework/Source/Mac/FRLocalizationWindowController.h
rename : Framework/Source/FRLocalizationWindowController.m => Framework/Source/Mac/FRLocalizationWindowController.m
rename : Framework/Source/FRNibAutomaticLocalization.h => Framework/Source/Mac/FRNibAutomaticLocalization.h
rename : Framework/Source/FRNibAutomaticLocalization.m => Framework/Source/Mac/FRNibAutomaticLocalization.m
rename : Framework/Source/FRTranslationInfo.m => Framework/Source/Mac/FRTranslationInfo.m
rename : Framework/Source/FRTranslationInfo__.h => Framework/Source/Mac/FRTranslationInfo__.h
rename : Framework/Source/FRUntranslatedCountCell.h => Framework/Source/Mac/FRUntranslatedCountCell.h
rename : Framework/Source/FRUntranslatedCountCell.m => Framework/Source/Mac/FRUntranslatedCountCell.m
rename : Framework/Source/Greenwich.h => Framework/Source/Mac/Greenwich.h
  • Loading branch information
wbyoung committed Jan 27, 2012
1 parent 5d96b7f commit 2959adf
Show file tree
Hide file tree
Showing 63 changed files with 1,560 additions and 67 deletions.
30 changes: 30 additions & 0 deletions Configurations/iOS/Base.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// Copyright (c) 2012 FadingRed LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
// Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

// \brief Standard settings
// \details These settings are shared by all configurations. They
// are not dynamic.
// ------------------------------------------------------------------

SDKROOT = iphoneos
TARGETED_DEVICE_FAMILY = 1,2
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR)/usr/local/include/
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
VALIDATE_PRODUCT = YES
CLANG_ENABLE_OBJC_ARC = YES
STRIP_STYLE = debugging
36 changes: 36 additions & 0 deletions Configurations/iOS/Library.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// Copyright (c) 2012 FadingRed LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
// Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#include "Base.xcconfig"

EXECUTABLE_PREFIX =
EXECUTABLE_SUFFIX =
EXECUTABLE_PATH = $(WRAPPER_PATH)/$(EXECUTABLE_NAME)

WRAPPER_EXTENSION = framework
WRAPPER_SUFFIX = .$(WRAPPER_EXTENSION)
WRAPPER_PATH = $(PRODUCT_NAME)$(WRAPPER_SUFFIX)

FULL_PRODUCT_NAME = $(WRAPPER_PATH)

CONTENTS_FOLDER_PATH = $(WRAPPER_PATH)
PUBLIC_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Headers
PRIVATE_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/PrivateHeaders
UNLOCALIZED_RESOURCES_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)
DWARF_DSYM_FILE_NAME = $(FULL_PRODUCT_NAME).dSYM

OTHER_LDFLAGS = -ObjC
15 changes: 15 additions & 0 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
8BAB446614D343A900945E4E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 8BBFCBA914705003006CFFDE /* Greenwich.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 8BD5E23314D1E7C80021848F;
remoteInfo = "Greenwich (iOS)";
};
8BBFCBB014705003006CFFDE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 8BBFCBA914705003006CFFDE /* Greenwich.xcodeproj */;
Expand Down Expand Up @@ -94,6 +101,7 @@
isa = PBXGroup;
children = (
8BBFCBB114705003006CFFDE /* Greenwich.framework */,
8BAB446714D343A900945E4E /* Greenwich.framework */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -199,6 +207,13 @@
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
8BAB446714D343A900945E4E /* Greenwich.framework */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = Greenwich.framework;
remoteRef = 8BAB446614D343A900945E4E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
8BBFCBB114705003006CFFDE /* Greenwich.framework */ = {
isa = PBXReferenceProxy;
fileType = wrapper.framework;
Expand Down
Loading

0 comments on commit 2959adf

Please sign in to comment.