Permalink
Browse files

Localize user-visible strings

  • Loading branch information...
1 parent 0f3776a commit 8cdc9899acb36f446e0c3a7fe5dbd2547b46bc2a @a2 a2 committed Oct 1, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 Appirater.h
View
12 Appirater.h
@@ -51,33 +51,33 @@ extern NSString *const kAppiraterDeclinedToRate;
/*
Your app's name.
*/
-#define APPIRATER_APP_NAME [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey]
+#define APPIRATER_APP_NAME [[[NSBundle mainBundle] infoDictionary] objectForKey: (NSString *) kCFBundleNameKey]
/*
This is the message your users will see once they've passed the day+launches
threshold.
*/
-#define APPIRATER_MESSAGE [NSString stringWithFormat:@"If you enjoy using %@, would you mind taking a moment to rate it? It won't take more than a minute. Thanks for your support!", APPIRATER_APP_NAME]
+#define APPIRATER_MESSAGE [NSString stringWithFormat: NSLocalizedString(@"If you enjoy using %@, would you mind taking a moment to rate it? It won't take more than a minute. Thanks for your support!", nil), APPIRATER_APP_NAME]
/*
This is the title of the message alert that users will see.
*/
-#define APPIRATER_MESSAGE_TITLE [NSString stringWithFormat:@"Rate %@", APPIRATER_APP_NAME]
+#define APPIRATER_MESSAGE_TITLE [NSString stringWithFormat: NSLocalizedString(@"Rate %@", nil), APPIRATER_APP_NAME]
/*
The text of the button that rejects reviewing the app.
*/
-#define APPIRATER_CANCEL_BUTTON @"No, Thanks"
+#define APPIRATER_CANCEL_BUTTON NSLocalizedString(@"No Thanks", nil)
/*
Text of button that will send user to app review page.
*/
-#define APPIRATER_RATE_BUTTON [NSString stringWithFormat:@"Rate %@", APPIRATER_APP_NAME]
+#define APPIRATER_RATE_BUTTON [NSString stringWithFormat: NSLocalizedString(@"Rate %@", nil), APPIRATER_APP_NAME]
/*
Text for button to remind the user to review later.
*/
-#define APPIRATER_RATE_LATER @"Remind me later"
+#define APPIRATER_RATE_LATER NSLocalizedString(@"Remind Me Later", nil)
/*
Users will need to have the same version of your app installed for this many

0 comments on commit 8cdc989

Please sign in to comment.