Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use NSLocalizedString to be able to translate to our languages.

  • Loading branch information...
commit 4823c708470127cb57f621bf2ef0828c5372a42f 1 parent 4585178
@jum authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Appirater.h
View
10 Appirater.h
@@ -57,27 +57,27 @@ extern NSString *const kAppiraterDeclinedToRate;
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!", @"enjoyappmsg"), 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 %@", @"rateapptitle"), 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", @"nothanksbutton")
/*
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(@"Yes, rate %@", @"rateappbutton"), 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", @"remindbutton")
/*
Users will need to have the same version of your app installed for this many
Please sign in to comment.
Something went wrong with that request. Please try again.