Skip to content
Browse files

Correctly chooses between the localized app name, if present, or the …

…default bundle name
  • Loading branch information...
1 parent 48ec39f commit 1d51c703e3256e6bf978b06627bf1ac8f4d1272e @marzapower committed May 12, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 Appirater.h
View
8 Appirater.h
@@ -49,9 +49,15 @@ extern NSString *const kAppiraterDeclinedToRate;
#define APPIRATER_APP_ID 0000000000
/*
+ Your localized app's name.
+ */
+
+#define APPIRATER_LOCALIZED_APP_NAME [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:(NSString *)kCFBundleNameKey]
+
+/*
Your app's name.
*/
-#define APPIRATER_APP_NAME [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:(NSString *)kCFBundleNameKey]
+#define APPIRATER_APP_NAME APPIRATER_LOCALIZED_APP_NAME ? APPIRATER_LOCALIZED_APP_NAME : [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleNameKey]
/*
The localized template message for displaying the rating request

0 comments on commit 1d51c70

Please sign in to comment.
Something went wrong with that request. Please try again.