Permalink
Browse files

Fixed up localization stuff for new strings and restored compatibilit…

…y with the make localizable-strings task.
  • Loading branch information...
1 parent daaccd1 commit 482be20c1f1a8e90565a5d573956185b0039c208 andym committed Dec 19, 2007
Showing with 5 additions and 8 deletions.
  1. +3 −3 Makefile
  2. +2 −1 SUUtilities.h
  3. +0 −4 SUUtilities.m
  4. BIN en.lproj/Sparkle.strings
View
6 Makefile
@@ -1,7 +1,7 @@
.PHONY: all localizable-strings
localizable-strings:
- rm English.lproj/Sparkle.strings || TRUE
- genstrings -o English.lproj -s SULocalizedString *.m *.h
- mv English.lproj/Localizable.strings English.lproj/Sparkle.strings
+ rm en.lproj/Sparkle.strings || TRUE
+ genstrings -o en.lproj -s SULocalizedString *.m *.h
+ mv en.lproj/Localizable.strings en.lproj/Sparkle.strings
View
3 SUUtilities.h
@@ -7,6 +7,7 @@
//
#import <Cocoa/Cocoa.h>
+#define SULocalizedString(key,comment) [SUUtilities localizedStringForKey:key withComment:comment]
@class SUUpdater, SUBundleDefaults;
@interface SUUtilities : NSObject {
@@ -34,4 +35,4 @@
NSComparisonResult SUStandardVersionComparison(NSString * versionA, NSString * versionB);
// If running make localizable-strings for genstrings, ignore the error on this line.
-NSString *SULocalizedString(NSString *key, NSString *comment);
+//NSString *SULocalizedString(NSString *key, NSString *comment);
View
4 SUUtilities.m
@@ -127,10 +127,6 @@ - (BOOL)isRunningFromDiskImage
@end
-NSString *SULocalizedString(NSString *key, NSString *comment) {
- return [SUUtilities localizedStringForKey:key withComment:comment];
-}
-
enum {
kNumberType,
kStringType,
View
BIN en.lproj/Sparkle.strings
Binary file not shown.

0 comments on commit 482be20

Please sign in to comment.