Skip to content

Localisation #659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ObjectiveGit/GTRepository+RemoteOperations.m
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ - (BOOL)fetchRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error
__block git_strarray refspecs;
int gitError = git_remote_get_fetch_refspecs(&refspecs, remote.git_remote);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get fetch refspecs for remote"];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to get fetch refspecs for remote", @"")];
return NO;
}

@@ -104,7 +104,7 @@ - (BOOL)fetchRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error

gitError = git_remote_fetch(remote.git_remote, &refspecs, &fetchOptions, reflog_message.UTF8String);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to fetch from remote"];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to fetch from remote", @"error")];
return NO;
}

44 changes: 22 additions & 22 deletions ObjectiveGit/GTRepository.m
Original file line number Diff line number Diff line change
@@ -139,7 +139,7 @@ + (instancetype)initializeEmptyRepositoryAtFileURL:(NSURL *)localFileURL options
git_repository *repository = NULL;
int gitError = git_repository_init_ext(&repository, path, &options);
if (gitError != GIT_OK || repository == NULL) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to initialize empty repository at URL %@.", localFileURL];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to initialize empty repository at URL %@.", @"error"), localFileURL];
return nil;
}

@@ -175,7 +175,7 @@ - (instancetype)initWithURL:(NSURL *)localFileURL error:(NSError **)error {
git_repository *r;
int gitError = git_repository_open(&r, localFileURL.path.fileSystemRepresentation);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to open repository at URL %@.", localFileURL];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to open repository at URL %@.", @"error"), localFileURL];
return nil;
}

@@ -206,7 +206,7 @@ - (instancetype)initWithURL:(NSURL *)localFileURL flags:(NSInteger)flags ceiling
git_repository *r;
int gitError = git_repository_open_ext(&r, localFileURL.path.fileSystemRepresentation, (unsigned int)flags, ceilingDirsString.fileSystemRepresentation);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to open repository at URL %@.", localFileURL];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to open repository at URL %@.", @"error"), localFileURL];
return nil;
}

@@ -291,7 +291,7 @@ + (instancetype _Nullable)cloneFromURL:(NSURL *)originURL toWorkingDirectory:(NS
if (serverCertificateURL) {
int gitError = git_libgit2_opts(GIT_OPT_SET_SSL_CERT_LOCATIONS, serverCertificateURL.fileSystemRepresentation, NULL);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to configure the server certificate at %@", serverCertificateURL];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to configure the server certificate at %@", @"error"), serverCertificateURL];
return nil;
}
}
@@ -307,7 +307,7 @@ + (instancetype _Nullable)cloneFromURL:(NSURL *)originURL toWorkingDirectory:(NS
git_repository *repository;
int gitError = git_clone(&repository, remoteURL, workingDirectoryPath, &cloneOptions);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to clone repository from %@ to %@", originURL, workdirURL];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to clone repository from %@ to %@", @"error"), originURL, workdirURL];
return nil;
}

@@ -322,7 +322,7 @@ - (id)lookUpObjectByGitOid:(const git_oid *)oid objectType:(GTObjectType)type er
if (error != NULL) {
char oid_str[GIT_OID_HEXSZ+1];
git_oid_tostr(oid_str, sizeof(oid_str), oid);
*error = [NSError git_errorFor:gitError description:@"Failed to lookup object" userInfo:@{GTGitErrorOID: [GTOID oidWithGitOid:oid]} failureReason:@"The object %s couldn't be found in the repository.", oid_str];
*error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to lookup object", @"error") userInfo:@{GTGitErrorOID: [GTOID oidWithGitOid:oid]} failureReason:@"The object %s couldn't be found in the repository.", oid_str];
}
return nil;
}
@@ -357,7 +357,7 @@ - (id)lookUpObjectByRevParse:(NSString *)spec error:(NSError **)error {
git_object *obj;
int gitError = git_revparse_single(&obj, self.git_repository, spec.UTF8String);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Revision specifier lookup failed." failureReason:@"The revision specifier \"%@\" couldn't be parsed.", spec];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Revision specifier lookup failed.", @"error") failureReason:@"The revision specifier \"%@\" couldn't be parsed.", spec];
return nil;
}
return [GTObject objectWithObj:obj inRepository:self];
@@ -370,7 +370,7 @@ - (GTBranch *)lookUpBranchWithName:(NSString *)branchName type:(GTBranchType)bra
int gitError = git_branch_lookup(&ref, self.git_repository, branchName.UTF8String, (git_branch_t)branchType);
if (gitError < GIT_OK && gitError != GIT_ENOTFOUND) {
if (success != NULL) *success = NO;
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Branch lookup failed"];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Branch lookup failed", @"error")];

return nil;
}
@@ -390,7 +390,7 @@ - (GTReference *)headReferenceWithError:(NSError **)error {
if (gitError == GIT_EUNBORNBRANCH) {
unborn = @" (unborn)";
}
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get HEAD%@", unborn];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to get HEAD%@", @"error"), unborn];
return nil;
}

@@ -404,7 +404,7 @@ - (BOOL)enumerateBranchesWithType:(GTBranchType)type error:(NSError **)error usi
git_reference *gitRef = NULL;
int gitError = git_branch_iterator_new(&iter, self.git_repository, (git_branch_t)type);
if (gitError != GIT_OK) {
if (error) *error = [NSError git_errorFor:gitError description:@"Branch enumeration failed"];
if (error) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Branch enumeration failed", @"error")];
return NO;
}

@@ -418,7 +418,7 @@ - (BOOL)enumerateBranchesWithType:(GTBranchType)type error:(NSError **)error usi
}

if (gitError != GIT_OK && gitError != GIT_ITEROVER) {
if (error) *error = [NSError git_errorFor:gitError description:@"Branch enumeration failed"];
if (error) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Branch enumeration failed", @"error")];
return NO;
}

@@ -491,7 +491,7 @@ - (NSArray *)remoteNamesWithError:(NSError **)error {
git_strarray array;
int gitError = git_remote_list(&array, self.git_repository);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to list all remotes."];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to list all remotes.", @"error")];
return nil;
}

@@ -505,7 +505,7 @@ - (NSArray *)remoteNamesWithError:(NSError **)error {
- (BOOL)deleteRemoteNamed:(NSString *)remoteName error:(NSError **)error {
int gitError = git_remote_delete(self.git_repository, [remoteName cStringUsingEncoding:NSUTF8StringEncoding]);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to delete remote."];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to delete remote.", @"error")];
return NO;
}

@@ -538,7 +538,7 @@ - (BOOL)enumerateTags:(NSError **)error block:(GTRepositoryTagEnumerationBlock)b
};
int gitError = git_tag_foreach(self.git_repository, GTRepositoryForeachTagCallback, &payload);
if (gitError != GIT_OK && gitError != GIT_EUSER) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to enumerate tags"];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to enumerate tags", @"error")];
return NO;
}

@@ -567,7 +567,7 @@ - (GTReference *)createReferenceNamed:(NSString *)name fromOID:(GTOID *)targetOI
git_reference *ref;
int gitError = git_reference_create(&ref, self.git_repository, name.UTF8String, targetOID.git_oid, 0, message.UTF8String);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to create direct reference to %@", targetOID];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to create direct reference to %@", @"error"), targetOID];
return nil;
}

@@ -582,7 +582,7 @@ - (GTReference *)createReferenceNamed:(NSString *)name fromReference:(GTReferenc
git_reference *ref;
int gitError = git_reference_symbolic_create(&ref, self.git_repository, name.UTF8String, targetRef.name.UTF8String, 0, message.UTF8String);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to create symbolic reference to %@", targetRef];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to create symbolic reference to %@", @"error"), targetRef];
return nil;
}

@@ -621,7 +621,7 @@ - (NSArray *)referenceNamesWithError:(NSError **)error {
git_strarray array;
int gitError = git_reference_list(&array, self.git_repository);
if (gitError < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to list all references."];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to list all references.", @"error")];
return nil;
}

@@ -667,7 +667,7 @@ - (NSString *)preparedMessageWithError:(NSError * __autoreleasing *)error {
}

if (error != NULL) {
*error = [NSError git_errorFor:errorCode description:@"Failed to read prepared message."];
*error = [NSError git_errorFor:errorCode description:NSLocalizedString(@"Failed to read prepared message.", @"error")];
}
};

@@ -693,7 +693,7 @@ - (GTCommit *)mergeBaseBetweenFirstOID:(GTOID *)firstOID secondOID:(GTOID *)seco
git_oid mergeBase;
int errorCode = git_merge_base(&mergeBase, self.git_repository, firstOID.git_oid, secondOID.git_oid);
if (errorCode < GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:errorCode description:@"Failed to find merge base between commits %@ and %@.", firstOID.SHA, secondOID.SHA];
if (error != NULL) *error = [NSError git_errorFor:errorCode description:NSLocalizedString(@"Failed to find merge base between commits %@ and %@.", @"error"), firstOID.SHA, secondOID.SHA];
return nil;
}

@@ -708,7 +708,7 @@ - (GTConfiguration *)configurationWithError:(NSError **)error {
git_config *config = NULL;
int gitError = git_repository_config(&config, self.git_repository);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get config for repository."];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to get config for repository.", @"error")];
return nil;
}

@@ -719,7 +719,7 @@ - (GTIndex *)indexWithError:(NSError **)error {
git_index *index = NULL;
int gitError = git_repository_index(&index, self.git_repository);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get index for repository."];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to get index for repository.", @"error")];
return nil;
}

@@ -766,7 +766,7 @@ - (GTSubmodule *)submoduleWithName:(NSString *)name error:(NSError **)error {
git_submodule *submodule;
int gitError = git_submodule_lookup(&submodule, self.git_repository, name.UTF8String);
if (gitError != GIT_OK) {
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to look up submodule %@.", name];
if (error != NULL) *error = [NSError git_errorFor:gitError description:NSLocalizedString(@"Failed to look up submodule %@.", @"error"), name];
return nil;
}

File renamed without changes.
90 changes: 90 additions & 0 deletions ObjectiveGit/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/* No comment provided by engineer. */
"A filter named \"%@\" has already been registered" = "A filter named \"%@\" has already been registered";

/* error */
"Branch enumeration failed" = "Branch enumeration failed";

/* error */
"Branch lookup failed" = "Branch lookup failed";

/* No comment provided by engineer. */
"Could not create git index iterator." = "Could not create git index iterator.";

/* No comment provided by engineer. */
"Could not create status list." = "Could not create status list.";

/* No comment provided by engineer. */
"Could not iterate conflict." = "Could not iterate conflict.";

/* No comment provided by engineer. */
"Could not update index." = "Could not update index.";

/* error */
"Failed to clone repository from %@ to %@" = "Failed to clone repository from %1$@ to %2$@";

/* error */
"Failed to configure the server certificate at %@" = "Failed to configure the server certificate at %@";

/* error */
"Failed to create direct reference to %@" = "Failed to create direct reference to %@";

/* error */
"Failed to create symbolic reference to %@" = "Failed to create symbolic reference to %@";

/* error */
"Failed to delete remote." = "Failed to delete remote.";

/* error */
"Failed to enumerate tags" = "Failed to enumerate tags";

/* error */
"Failed to fetch from remote" = "Fetch von Remote ist fehlgeschlagen";

/* error */
"Failed to find merge base between commits %@ and %@." = "Failed to find merge base between commits %1$@ and %2$@.";

/* error */
"Failed to get config for repository." = "Failed to get config for repository.";

/* No comment provided by engineer. */
"Failed to get fetch refspecs for remote" = "Failed to get fetch refspecs for remote";

/* error */
"Failed to get HEAD%@" = "Failed to get HEAD%@";

/* error */
"Failed to get index for repository." = "Failed to get index for repository.";

/* error */
"Failed to initialize empty repository at URL %@." = "Failed to initialize empty repository at URL %@.";

/* error */
"Failed to list all references." = "Failed to list all references.";

/* error */
"Failed to list all remotes." = "Failed to list all remotes.";

/* error */
"Failed to look up submodule %@." = "Failed to look up submodule %@.";

/* error */
"Failed to lookup object" = "Failed to lookup object";

/* error */
"Failed to open repository at URL %@." = "Failed to open repository at URL %@.";

/* error */
"Failed to read prepared message." = "Failed to read prepared message.";

/* No comment provided by engineer. */
"Invalid file path URL to initialize repository." = "Invalid file path URL to initialize repository.";

/* No comment provided by engineer. */
"Invalid file path URL to open." = "Invalid file path URL to open.";

/* error */
"Revision specifier lookup failed." = "Revision specifier lookup failed.";

/* No comment provided by engineer. */
"Unregister the existing filter first." = "Unregister the existing filter first.";

2 changes: 2 additions & 0 deletions ObjectiveGit/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

90 changes: 90 additions & 0 deletions ObjectiveGit/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/* No comment provided by engineer. */
"A filter named \"%@\" has already been registered" = "A filter named \"%@\" has already been registered";

/* error */
"Branch enumeration failed" = "Branch enumeration failed";

/* error */
"Branch lookup failed" = "Branch lookup failed";

/* No comment provided by engineer. */
"Could not create git index iterator." = "Could not create git index iterator.";

/* No comment provided by engineer. */
"Could not create status list." = "Could not create status list.";

/* No comment provided by engineer. */
"Could not iterate conflict." = "Could not iterate conflict.";

/* No comment provided by engineer. */
"Could not update index." = "Could not update index.";

/* error */
"Failed to clone repository from %@ to %@" = "Failed to clone repository from %1$@ to %2$@";

/* error */
"Failed to configure the server certificate at %@" = "Failed to configure the server certificate at %@";

/* error */
"Failed to create direct reference to %@" = "Failed to create direct reference to %@";

/* error */
"Failed to create symbolic reference to %@" = "Failed to create symbolic reference to %@";

/* error */
"Failed to delete remote." = "Failed to delete remote.";

/* error */
"Failed to enumerate tags" = "Failed to enumerate tags";

/* error */
"Failed to fetch from remote" = "Fetch von Remote ist fehlgeschlagen";

/* error */
"Failed to find merge base between commits %@ and %@." = "Failed to find merge base between commits %1$@ and %2$@.";

/* error */
"Failed to get config for repository." = "Failed to get config for repository.";

/* No comment provided by engineer. */
"Failed to get fetch refspecs for remote" = "Failed to get fetch refspecs for remote";

/* error */
"Failed to get HEAD%@" = "Failed to get HEAD%@";

/* error */
"Failed to get index for repository." = "Failed to get index for repository.";

/* error */
"Failed to initialize empty repository at URL %@." = "Failed to initialize empty repository at URL %@.";

/* error */
"Failed to list all references." = "Failed to list all references.";

/* error */
"Failed to list all remotes." = "Failed to list all remotes.";

/* error */
"Failed to look up submodule %@." = "Failed to look up submodule %@.";

/* error */
"Failed to lookup object" = "Failed to lookup object";

/* error */
"Failed to open repository at URL %@." = "Failed to open repository at URL %@.";

/* error */
"Failed to read prepared message." = "Failed to read prepared message.";

/* No comment provided by engineer. */
"Invalid file path URL to initialize repository." = "Invalid file path URL to initialize repository.";

/* No comment provided by engineer. */
"Invalid file path URL to open." = "Invalid file path URL to open.";

/* error */
"Revision specifier lookup failed." = "Revision specifier lookup failed.";

/* No comment provided by engineer. */
"Unregister the existing filter first." = "Unregister the existing filter first.";

87 changes: 82 additions & 5 deletions ObjectiveGitFramework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -7,6 +7,17 @@
objects = {

/* Begin PBXAggregateTarget section */
562126272101D971009A787A /* genstrings */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 5621262C2101D971009A787A /* Build configuration list for PBXAggregateTarget "genstrings" */;
buildPhases = (
5621262D2101D978009A787A /* ShellScript */,
);
dependencies = (
);
name = genstrings;
productName = genstrings;
};
6A28265217C69CB400C6A948 /* OpenSSL-iOS */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 6A28265417C69CB400C6A948 /* Build configuration list for PBXAggregateTarget "OpenSSL-iOS" */;
@@ -105,6 +116,7 @@
55C8057A13875578004DCB0F /* NSString+Git.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C8057313874CDF004DCB0F /* NSString+Git.m */; };
55C8057D13875C11004DCB0F /* NSData+Git.h in Headers */ = {isa = PBXBuildFile; fileRef = BD6C2266131459E700992935 /* NSData+Git.h */; settings = {ATTRIBUTES = (Public, ); }; };
55C8057E13875C1B004DCB0F /* NSString+Git.h in Headers */ = {isa = PBXBuildFile; fileRef = 55C8057213874CDF004DCB0F /* NSString+Git.h */; settings = {ATTRIBUTES = (Public, ); }; };
562126302101DD06009A787A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5621262E2101DD06009A787A /* Localizable.strings */; };
5BE612881745EE3400266D8C /* GTTreeBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 5BE612861745EE3300266D8C /* GTTreeBuilder.h */; settings = {ATTRIBUTES = (Public, ); }; };
5BE6128A1745EE3400266D8C /* GTTreeBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BE612871745EE3300266D8C /* GTTreeBuilder.m */; };
5BE612931745EEBC00266D8C /* GTTreeBuilderSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BE612921745EEBC00266D8C /* GTTreeBuilderSpec.m */; };
@@ -454,7 +466,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = ObjectiveGit/en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
200578C418932A82001C06C3 /* GTBlameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTBlameSpec.m; sourceTree = "<group>"; };
2089E43B17D9A58000F451DA /* GTTagSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTTagSpec.m; sourceTree = "<group>"; };
@@ -504,6 +516,8 @@
55C8054D13861F34004DCB0F /* GTObjectDatabase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = GTObjectDatabase.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
55C8057213874CDF004DCB0F /* NSString+Git.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+Git.h"; sourceTree = "<group>"; };
55C8057313874CDF004DCB0F /* NSString+Git.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+Git.m"; sourceTree = "<group>"; };
5621262F2101DD06009A787A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = ObjectiveGit/en.lproj/Localizable.strings; sourceTree = "<group>"; };
562126312101DD25009A787A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = ObjectiveGit/de.lproj/Localizable.strings; sourceTree = "<group>"; };
5BE612861745EE3300266D8C /* GTTreeBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTTreeBuilder.h; sourceTree = "<group>"; };
5BE612871745EE3300266D8C /* GTTreeBuilder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTTreeBuilder.m; sourceTree = "<group>"; };
5BE612921745EEBC00266D8C /* GTTreeBuilderSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTTreeBuilderSpec.m; sourceTree = "<group>"; };
@@ -780,6 +794,7 @@
children = (
8DC2EF5A0486A6940098B216 /* Info.plist */,
089C1666FE841158C02AAC07 /* InfoPlist.strings */,
5621262E2101DD06009A787A /* Localizable.strings */,
);
name = Resources;
sourceTree = "<group>";
@@ -1307,11 +1322,10 @@
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
en,
ja,
fr,
de,
);
mainGroup = 0867D691FE84028FC02AAC07 /* ObjectiveGitFramework */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
@@ -1326,6 +1340,7 @@
D0A330F216027F3600A616FA /* libgit2-iOS */,
6A28265217C69CB400C6A948 /* OpenSSL-iOS */,
6A3C609017D5963700382DFF /* libssh2-iOS */,
562126272101D971009A787A /* genstrings */,
);
};
/* End PBXProject section */
@@ -1344,6 +1359,7 @@
buildActionMask = 2147483647;
files = (
8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */,
562126302101DD06009A787A /* Localizable.strings in Resources */,
F8D6384B207A618D00D1FD32 /* script in Resources */,
F81B6B55207B0A9F00AB0836 /* Mac-XCTest.xcconfig in Resources */,
);
@@ -1360,6 +1376,19 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
5621262D2101D978009A787A /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /usr/bin/python;
shellScript = "# encoding=utf-8\n\nimport os, time, codecs\nroot = os.getenv('SRCROOT')\nprint \"update localisation in\", root\nfor (dirpath, dirnames, filenames) in os.walk(root):\n if \"en.lproj\" in dirnames:\n os.chdir(dirpath)\n os.system(\"find ./ -name '*.mm' -o -name '*.m' | xargs genstrings -u -q -o en.lproj\")\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you split that into ./script/update-localization ? That would be ❤️, as that would save my soul from Xcode make it much easier to edit.

};
6A28265317C69CB400C6A948 /* OpenSSL-iOS */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -1678,6 +1707,15 @@
name = InfoPlist.strings;
sourceTree = "<group>";
};
5621262E2101DD06009A787A /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
5621262F2101DD06009A787A /* en */,
562126312101DD25009A787A /* de */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
@@ -1817,6 +1855,34 @@
};
name = Release;
};
562126282101D971009A787A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
562126292101D971009A787A /* Test */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Test;
};
5621262A2101D971009A787A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
5621262B2101D971009A787A /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Profile;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hunk should be left out — that's codesigning configuration.

6A28265517C69CB400C6A948 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D0D81865174421EB00995A2E /* iOS-StaticLibrary.xcconfig */;
@@ -2481,6 +2547,17 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5621262C2101D971009A787A /* Build configuration list for PBXAggregateTarget "genstrings" */ = {
isa = XCConfigurationList;
buildConfigurations = (
562126282101D971009A787A /* Debug */,
562126292101D971009A787A /* Test */,
5621262A2101D971009A787A /* Release */,
5621262B2101D971009A787A /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6A28265417C69CB400C6A948 /* Build configuration list for PBXAggregateTarget "OpenSSL-iOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (