Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit bba093f

Browse files
committed
Add PFLocalization.h to use all localizable strings from our custom table.
1 parent 6aa4a35 commit bba093f

File tree

11 files changed

+40
-0
lines changed

11 files changed

+40
-0
lines changed

ParseUI/Classes/Cells/PFPurchaseTableViewCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#import "PFPurchaseTableViewCell.h"
2323

24+
#import "PFLocalization.h"
2425
#import "PFRect.h"
2526

2627
@interface PFPurchaseTableViewCell ()

ParseUI/Classes/Internal/Extensions/PFAlertView.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#import "PFAlertView.h"
2323

24+
#import "PFLocalization.h"
25+
2426
@implementation PFUIAlertView
2527

2628
+ (void)showAlertViewWithTitle:(NSString *)title
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2014, Parse, LLC. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Parse.
7+
*
8+
* As with any software that integrates with the Parse platform, your use of
9+
* this software is subject to the Parse Terms of Service
10+
* [https://www.parse.com/about/terms]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*
20+
*/
21+
22+
#ifndef ParseUI_PFLocalization_h
23+
#define ParseUI_PFLocalization_h
24+
25+
#undef NSLocalizedString
26+
#define NSLocalizedString(key, comment) \
27+
[[NSBundle mainBundle] localizedStringForKey:key value:nil table:@"ParseUI"]
28+
29+
#endif

ParseUI/Classes/Internal/Views/PFLoadingView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#import "PFLoadingView.h"
2323

2424
#import "PFRect.h"
25+
#import "PFLocalization.h"
2526

2627
@interface PFLoadingView ()
2728

ParseUI/Classes/LogInViewController/PFLogInView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#import "PFColor.h"
2626
#import "PFDismissButton.h"
2727
#import "PFImage.h"
28+
#import "PFLocalization.h"
2829
#import "PFPrimaryButton.h"
2930
#import "PFRect.h"
3031
#import "PFTextButton.h"

ParseUI/Classes/LogInViewController/PFLogInViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#import "PFActionButton.h"
2727
#import "PFAlertView.h"
28+
#import "PFLocalization.h"
2829
#import "PFPrimaryButton.h"
2930
#import "PFSignUpViewController.h"
3031
#import "PFTextField.h"

ParseUI/Classes/ProductTableViewController/PFProductTableViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#import <Parse/PFQuery.h>
2727

2828
#import "PFAlertView.h"
29+
#import "PFLocalization.h"
2930
#import "PFPurchaseTableViewCell.h"
3031

3132
static NSString *const PFProductMetadataPriceKey = @"price";

ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#import "PFCollectionViewCell.h"
2828
#import "PFImageView.h"
2929
#import "PFLoadingView.h"
30+
#import "PFLocalization.h"
3031

3132
static NSString *const PFQueryCollectionViewCellIdentifier = @"cell";
3233
static NSString *const PFQueryCollectionViewNextPageReusableViewIdentifier = @"nextPageView";

ParseUI/Classes/QueryTableViewController/PFQueryTableViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#import "PFActivityIndicatorTableViewCell.h"
2727
#import "PFImageView.h"
2828
#import "PFLoadingView.h"
29+
#import "PFLocalization.h"
2930
#import "PFTableViewCell.h"
3031

3132
// Add headers to kill any warnings.

ParseUI/Classes/SignUpViewController/PFSignUpView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#import "PFColor.h"
2525
#import "PFDismissButton.h"
2626
#import "PFImage.h"
27+
#import "PFLocalization.h"
2728
#import "PFPrimaryButton.h"
2829
#import "PFRect.h"
2930
#import "PFTextButton.h"

0 commit comments

Comments
 (0)