aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-06-01 22:32:03 +0000
committerstuconnolly <stuart02@gmail.com>2010-06-01 22:32:03 +0000
commitafa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c (patch)
tree20c0c9b9fe650a207f14df5c06ce541802a3b5e1 /Source
parentd99ae49a194fc4bfce874c535096e4f68ef70d6e (diff)
downloadsequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.tar.gz
sequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.tar.bz2
sequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.zip
Add a 'Translation Feedback' menuitem to the 'Help' menu (currently hidden). Implements issue #713. When the feedback page is available simply change the constant SPTranslationFeedbackURL to point to it.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.h1
-rw-r--r--Source/SPAppController.m8
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
4 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPAppController.h b/Source/SPAppController.h
index 23796e34..0ae75b90 100644
--- a/Source/SPAppController.h
+++ b/Source/SPAppController.h
@@ -57,6 +57,7 @@
- (IBAction)visitHelpWebsite:(id)sender;
- (IBAction)visitFAQWebsite:(id)sender;
- (IBAction)provideFeedback:(id)sender;
+- (IBAction)provideTranslationFeedback:(id)sender;
- (IBAction)viewKeyboardShortcuts:(id)sender;
// Getters
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index d3cbb8fb..37f79242 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -499,6 +499,14 @@
}
/**
+ * Opens the 'Translation Feedback' page in the default browser.
+ */
+- (IBAction)provideTranslationFeedback:(id)sender
+{
+ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPTranslationFeedbackURL]];
+}
+
+/**
* Opens the 'Keyboard Shortcuts' page in the default browser.
*/
- (IBAction)viewKeyboardShortcuts:(id)sender
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 1fdcf68a..10fd430f 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -297,6 +297,7 @@ extern NSString *SPKeyboardShortcutsURL;
extern NSString *SPMySQLSearchURL;
extern NSString *SPDevURL;
extern NSString *SPGettingConnectedDocURL;
+extern NSString *SPTranslationFeedbackURL;
// Toolbar constants
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 536d4cfb..d98daea7 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -176,6 +176,7 @@ NSString *SPKeyboardShortcutsURL = @"http://www.sequelpro.com/do
NSString *SPMySQLSearchURL = @"http://search.mysql.com/search?q=%@&site=refman-%@";
NSString *SPDevURL = @"http://code.google.com/p/sequel-pro/";
NSString *SPGettingConnectedDocURL = @"http://www.sequelpro.com/docs/Getting_Connected";
+NSString *SPTranslationFeedbackURL = @"http://dev.sequelpro.com/translate/";
// Toolbar constants