Shorten sync-button label/size
authorRobin Gareus <robin@gareus.org>
Sun, 18 Dec 2016 22:17:29 +0000 (23:17 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 18 Dec 2016 22:17:29 +0000 (23:17 +0100)
gtk2_ardour/ardour_ui2.cc
gtk2_ardour/ardour_ui_options.cc
libs/ardour/utils.cc

index 60794183b29df75baeeb084696476d8b9ae50021..e80b8e5478f86113bbf969defd203f2648bf9068 100644 (file)
@@ -261,7 +261,7 @@ ARDOUR_UI::setup_transport ()
        act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
        sync_button.set_related_action (act);
 
-       sync_button.set_sizing_text (_("Internal")); // longest of sync_source_to_string()
+       sync_button.set_sizing_text (S_("LogestSync|M-Clk"));
 
        /* CANNOT sigc::bind these to clicked or toggled, must use pressed or released */
        act = ActionManager::get_action (X_("Main"), X_("cancel-solo"));
index a196f06864146e933b11d31925aa587952d074da..0ca933261359fb79f150aaa0224284cc2f2bcf5f 100644 (file)
@@ -306,7 +306,7 @@ ARDOUR_UI::parameter_changed (std::string p)
                ActionManager::map_some_state ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
 
                if (!_session->config.get_external_sync()) {
-                       sync_button.set_text (_("Internal"));
+                       sync_button.set_text (S_("SyncSource|Int."));
                        auto_loop_button.set_sensitive (true);
                        ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
                        ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
index 8e57cdeac305af0224101dab6b2612b80453d458..8b891077484e2ea1859ce40a40c39287d13cd916 100644 (file)
@@ -475,27 +475,27 @@ ARDOUR::sync_source_to_string (SyncSource src, bool sh)
                /* no other backends offer sync for now ... deal with this if we
                 * ever have to.
                 */
-               return _("JACK");
+               return S_("SyncSource|JACK");
 
        case MTC:
                if (sh) {
-                       return _("MTC");
+                       return S_("SyncSource|MTC");
                } else {
                        return _("MIDI Timecode");
                }
 
        case MIDIClock:
                if (sh) {
-                       return _("M-Clock");
+                       return S_("SyncSource|M-Clk");
                } else {
                        return _("MIDI Clock");
                }
 
        case LTC:
-               return _("LTC");
+               return S_("SyncSource|LTC");
        }
        /* GRRRR .... stupid, stupid gcc - you can't get here from there, all enum values are handled */
-       return _("JACK");
+       return S_("SyncSource|JACK");
 }
 
 float