summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-23 18:44:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-23 18:44:16 +0000
commitbc2523c2495f87cc0df0f3496c96cf0fef4d746d (patch)
tree72c5a9bb766ed9fcc87304ab6ef32a5ecdb272b2 /gtk2_ardour/rc_option_editor.cc
parentf08f3acbacfbbe23b2aa7c1720043eb37d3ee6b9 (diff)
new logic for enabling translation in bundled releases of ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@13980 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index b4c348bf1a..859eedb822 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -1684,6 +1684,17 @@ RCOptionEditor::RCOptionEditor ()
/* USER INTERACTION */
+ if (getenv ("ARDOUR_BUNDLED")) {
+ add_option (_("User interaction"),
+ new BoolOption (
+ "enable-translation",
+ string_compose (_("Use translations of %1 messages\n"
+ " <i>(requires a restart of %1 to take effect)</i>\n"
+ " <i>(if available for your language preferences)</i>"), PROGRAM_NAME),
+ sigc::ptr_fun (ARDOUR::translations_are_enabled),
+ sigc::ptr_fun (ARDOUR::set_translations_enabled)));
+ }
+
add_option (_("User interaction"), new OptionEditorHeading (_("Keyboard")));
add_option (_("User interaction"), new KeyboardOptions);