Consolidate more automation-mode texts
authorRobin Gareus <robin@gareus.org>
Thu, 31 Oct 2019 22:57:46 +0000 (23:57 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 31 Oct 2019 22:58:05 +0000 (23:58 +0100)
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/panner_ui.cc

index e18cdfd8890161ca76cf3a2926463b5d3670f1f5..bff75800e087f39550811fe7e5e62936e0394a59 100644 (file)
@@ -122,15 +122,15 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
        }
        smaller_hbox->pack_start (bypass_button, false, true, 4);
 
-       automation_manual_all_button.set_text(_("Manual"));
+       automation_manual_all_button.set_text (GainMeterBase::astate_string (ARDOUR::Off));
        automation_manual_all_button.set_name (X_("generic button"));
-       automation_play_all_button.set_text(_("Play"));
+       automation_play_all_button.set_text (GainMeterBase::astate_string (ARDOUR::Play));
        automation_play_all_button.set_name (X_("generic button"));
-       automation_write_all_button.set_text(_("Write"));
+       automation_write_all_button.set_text (GainMeterBase::astate_string (ARDOUR::Write));
        automation_write_all_button.set_name (X_("generic button"));
-       automation_touch_all_button.set_text(_("Touch"));
+       automation_touch_all_button.set_text (GainMeterBase::astate_string (ARDOUR::Touch));
        automation_touch_all_button.set_name (X_("generic button"));
-       automation_latch_all_button.set_text(_("Touch"));
+       automation_latch_all_button.set_text (GainMeterBase::astate_string (ARDOUR::Latch));
        automation_latch_all_button.set_name (X_("generic button"));
 
        constraint_hbox->set_spacing (5);
index 7b434a448c20347275573ab172069b8e71ed657f..a1dcb5264babe507b4fa445c325baa6bcb1df354 100644 (file)
@@ -151,21 +151,16 @@ PannerUI::build_astate_menu ()
        /** TRANSLATORS: this is `Manual' in the sense of automation not being played,
            so that changes to pan must be done by hand.
        */
-       pan_astate_menu->items().push_back (MenuElem (S_("Automation|Manual"), sigc::bind (
-                       sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
-                       (AutoState) ARDOUR::Off)));
-       pan_astate_menu->items().push_back (MenuElem (_("Play"), sigc::bind (
-                       sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
-                       (AutoState) Play)));
-       pan_astate_menu->items().push_back (MenuElem (_("Write"), sigc::bind (
-                       sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
-                       (AutoState) Write)));
-       pan_astate_menu->items().push_back (MenuElem (_("Touch"), sigc::bind (
-                       sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
-                       (AutoState) Touch)));
-       pan_astate_menu->items().push_back (MenuElem (_("Latch"), sigc::bind (
-                       sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
-                       (AutoState) Latch)));
+       pan_astate_menu->items().push_back (MenuElem (GainMeterBase::astate_string (ARDOUR::Off),
+                       sigc::bind ( sigc::mem_fun (_panner.get(), &Panner::set_automation_state), (AutoState) ARDOUR::Off)));
+       pan_astate_menu->items().push_back (MenuElem (GainMeterBase::astate_string (ARDOUR::Play),
+                       sigc::bind ( sigc::mem_fun (_panner.get(), &Panner::set_automation_state), (AutoState) Play)));
+       pan_astate_menu->items().push_back (MenuElem (GainMeterBase::astate_string (ARDOUR::Write),
+                       sigc::bind ( sigc::mem_fun (_panner.get(), &Panner::set_automation_state), (AutoState) Write)));
+       pan_astate_menu->items().push_back (MenuElem (GainMeterBase::astate_string (ARDOUR::Touch),
+                       sigc::bind (sigc::mem_fun (_panner.get(), &Panner::set_automation_state), (AutoState) Touch)));
+       pan_astate_menu->items().push_back (MenuElem (GainMeterBase::astate_string (ARDOUR::Latch),
+                       sigc::bind ( sigc::mem_fun (_panner.get(), &Panner::set_automation_state), (AutoState) Latch)));
 
 }