Skip to content

Loading…

Don't clobber an app's existing Localizable.strings files. #64

Merged
merged 1 commit into from

2 participants

@amolloy

Renamed all of the Localizable.strings files to AppiraterLocalizable.strings, and modified Apirater.h to look for the newly named files. This allows the strings files to be included in the app along side the app's own Localizable.strings files.

@arashpayan arashpayan merged commit 09c8ea8 into arashpayan:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
View
10 Appirater.h
@@ -58,30 +58,30 @@ extern NSString *const kAppiraterReminderRequestDate;
This is the message your users will see once they've passed the day+launches
threshold.
*/
-#define APPIRATER_LOCALIZED_MESSAGE 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)
+#define APPIRATER_LOCALIZED_MESSAGE NSLocalizedStringFromTable(@"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!", @"AppiraterLocalizable", nil)
#define APPIRATER_MESSAGE [NSString stringWithFormat:APPIRATER_LOCALIZED_MESSAGE, APPIRATER_APP_NAME]
/*
This is the title of the message alert that users will see.
*/
-#define APPIRATER_LOCALIZED_MESSAGE_TITLE NSLocalizedString(@"Rate %@", nil)
+#define APPIRATER_LOCALIZED_MESSAGE_TITLE NSLocalizedStringFromTable(@"Rate %@", @"AppiraterLocalizable", nil)
#define APPIRATER_MESSAGE_TITLE [NSString stringWithFormat:APPIRATER_LOCALIZED_MESSAGE_TITLE, APPIRATER_APP_NAME]
/*
The text of the button that rejects reviewing the app.
*/
-#define APPIRATER_CANCEL_BUTTON NSLocalizedString(@"No, Thanks", nil)
+#define APPIRATER_CANCEL_BUTTON NSLocalizedStringFromTable(@"No, Thanks", @"AppiraterLocalizable", nil)
/*
Text of button that will send user to app review page.
*/
-#define APPIRATER_LOCALIZED_RATE_BUTTON NSLocalizedString(@"Rate %@", nil)
+#define APPIRATER_LOCALIZED_RATE_BUTTON NSLocalizedStringFromTable(@"Rate %@", @"AppiraterLocalizable", nil)
#define APPIRATER_RATE_BUTTON [NSString stringWithFormat:APPIRATER_LOCALIZED_RATE_BUTTON, APPIRATER_APP_NAME]
/*
Text for button to remind the user to review later.
*/
-#define APPIRATER_RATE_LATER NSLocalizedString(@"Remind me later", nil)
+#define APPIRATER_RATE_LATER NSLocalizedStringFromTable(@"Remind me later", @"AppiraterLocalizable", nil)
@interface Appirater : NSObject <UIAlertViewDelegate> {
View
0 da.lproj/Localizable.strings → da.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 de.lproj/Localizable.strings → de.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 en.lproj/Localizable.strings → en.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 es.lproj/Localizable.strings → es.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 fr.lproj/Localizable.strings → fr.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 it.lproj/Localizable.strings → it.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 ja.lproj/Localizable.strings → ja.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 ko.lproj/Localizable.strings → ko.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 nl.lproj/Localizable.strings → nl.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 pl.lproj/Localizable.strings → pl.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 pt.lproj/Localizable.strings → pt.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 ru.lproj/Localizable.strings → ru.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 sv.lproj/Localizable.strings → sv.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 zh-Hans.lproj/Localizable.strings → zh-Hans.lproj/AppiraterLocalizable.strings
File renamed without changes.
View
0 zh-Hant.lproj/Localizable.strings → zh-Hant.lproj/AppiraterLocalizable.strings
File renamed without changes.
Something went wrong with that request. Please try again.