|
@@ -16,6 +16,7 @@
|
|
|
#import <objc/runtime.h>
|
|
|
#import <ComPDFKit/CPDFView+Utilities.h>
|
|
|
#import <PDF_Reader_Pro-Swift.h>
|
|
|
+#import "KMOCLanguage.h"
|
|
|
|
|
|
CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
|
|
|
|
|
@@ -871,9 +872,9 @@ CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
|
|
|
- (void)resetFormAnnotation {
|
|
|
NSAlert* alert = [[NSAlert alloc] init];
|
|
|
[alert setAlertStyle:NSAlertStyleCritical];
|
|
|
- [alert setMessageText:NSLocalizedString(@"Do you really want to reset the form?", nil)];
|
|
|
- [alert addButtonWithTitle:NSLocalizedString(@"Yes", nil)];
|
|
|
- [alert addButtonWithTitle:NSLocalizedString(@"No", nil)];
|
|
|
+ [alert setMessageText:KMLocalizedString(@"Do you really want to reset the form?", nil)];
|
|
|
+ [alert addButtonWithTitle:KMLocalizedString(@"Yes", nil)];
|
|
|
+ [alert addButtonWithTitle:KMLocalizedString(@"No", nil)];
|
|
|
|
|
|
NSModalResponse response = [alert runModal];
|
|
|
if (response == NSAlertFirstButtonReturn) {
|
|
@@ -887,9 +888,9 @@ CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
|
|
|
- (void)removeAllAnnotation {
|
|
|
NSAlert* alert = [[NSAlert alloc] init];
|
|
|
[alert setAlertStyle:NSAlertStyleCritical];
|
|
|
- [alert setMessageText:NSLocalizedString(@"This will permanently remove all annotations. Are you sure to continue?", nil)];
|
|
|
- [alert addButtonWithTitle:NSLocalizedString(@"Yes", nil)];
|
|
|
- [alert addButtonWithTitle:NSLocalizedString(@"No", nil)];
|
|
|
+ [alert setMessageText:KMLocalizedString(@"This will permanently remove all annotations. Are you sure to continue?", nil)];
|
|
|
+ [alert addButtonWithTitle:KMLocalizedString(@"Yes", nil)];
|
|
|
+ [alert addButtonWithTitle:KMLocalizedString(@"No", nil)];
|
|
|
|
|
|
NSModalResponse response = [alert runModal];
|
|
|
if (response == NSAlertFirstButtonReturn) {
|