summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-04-15 21:42:42 +0200
committerRobin Gareus <robin@gareus.org>2019-04-15 22:12:26 +0200
commiteae88bc1194c40197a1af9edbfd5957b915e67fb (patch)
tree63b2dde4c20fd6b6fffadf60ddf534e5c8e99a10
parentca05f03e72c1e6f4ea5fe8aa63365b8fd6ff9b9d (diff)
Split new route messages into re-usable pieces
This improves consistency for the various new-route descriptions and allows to unify messages with Mixbus without re-doing complete strings. It may also benefit translations.
-rw-r--r--gtk2_ardour/add_route_dialog.cc171
1 files changed, 83 insertions, 88 deletions
diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc
index fec619a843..fadc0bf99c 100644
--- a/gtk2_ardour/add_route_dialog.cc
+++ b/gtk2_ardour/add_route_dialog.cc
@@ -89,100 +89,95 @@ AddRouteDialog::AddRouteDialog ()
if (builtin_types.empty()) {
builtin_types.push_back (
- std::pair<string,string>(_("Audio Tracks"), _(" \
-Use these settings to create one or more audio tracks.\n \
-\n \
-You may select:\n \
-* The number of tracks to add.\n \
-* A name for the track(s).\n \
-* Mono, stereo, or multi-channel operation for the track(s).\n \
-* A group which the track(s) will be assigned to.\n \
-* The pin connections mode (see tooltip for details).\n \
-* Normal (non-destructive) or tape (destructive) recording mode.\n \
-\n \
-The track(s) will be added at the location specified by \"Position\".\n \
-")
- ));
+ std::pair<string,string> (_("Audio Tracks"), std::string () +
+ _("Use these settings to create one or more audio tracks.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of tracks to add") + "\n" +
+ "* " + _("A name for the track(s)") + "\n" +
+ "* " + _("Mono, stereo, or multi-channel operation for the track(s)") + "\n" +
+ "* " + _("A group which the track(s) will be assigned to") + "\n" +
+#ifndef MIXBUS
+ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
+ "* " + _("Normal (non-destructive) or tape (destructive) recording mode") + "\n" +
+#endif
+ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
+ ));
+
builtin_types.push_back (
- std::pair<string,string>(_("MIDI Tracks"), _(" \
-Use these settings to create one or more MIDI tracks.\n \
-\n \
-You may select:\n \
-* The number of tracks to add.\n \
-* A name for the track(s).\n \
-* An instrument plugin (or select \"None\" to drive an external device).\n \
-* A group which the track(s) will be assigned to.\n \
-* The pin connections mode (see tooltip for details).\n \
-\n \
-The track(s) will be added at the location specified by \"Position\".\n \
-")
- ));
+ std::pair<string,string> (_("MIDI Tracks"), std::string () +
+ _(" Use these settings to create one or more MIDI tracks.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of tracks to add") + "\n" +
+ "* " + _("A name for the track(s)") + "\n" +
+ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
+ "* " + _("A group which the track(s) will be assigned to") + "\n" +
+#ifndef MIXBUS
+ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
+#endif
+ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
+ ));
+
+#ifndef MIXBUS
builtin_types.push_back (
- std::pair<string,string>(_("Audio+MIDI Tracks"), _(" \
-Use these settings to create one or more Audio+MIDI tracks.\n \
-\n \
-You may select:\n \
-* The number of tracks to add.\n \
-* A name for the track(s).\n \
-* An instrument plugin (or select \"None\" to drive an external device).\n \
-* A group which the track(s) will be assigned to.\n \
-* The pin connections mode (see tooltip for details).\n \
-* Normal (non-destructive) or tape (destructive) recording mode.\n \
-\n \
-The track(s) will be added at the location specified by \"Position\".\n \
-")
- ));
+ std::pair<string,string> (_("Audio+MIDI Tracks"), std::string () +
+ _("Use these settings to create one or more Audio+MIDI tracks.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of tracks to add") + "\n" +
+ "* " + _("A name for the track(s)") + "\n" +
+ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
+ "* " + _("A group which the track(s) will be assigned to") + "\n" +
+#ifndef MIXBUS
+ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
+ "* " + _("Normal (non-destructive) or tape (destructive) recording mode") + "\n" +
+#endif
+ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
+ ));
+#endif
+
builtin_types.push_back (
- std::pair<string,string>(_("Audio Busses"), _(" \
-Use these settings to create one or more audio busses.\n \
-\n \
-You may select:\n \
-* The number of busses to add.\n \
-* A name for the buss(es).\n \
-* A group which the buss(es) will be assigned to.\n \
-* The pin connections mode (see tooltip for details).\n \
-\n \
-The buss(es) will be added at the location specified by \"Position\".\n \
-")
- ));
+ std::pair<string,string> (_("Audio Busses"), std::string () +
+ _("Use these settings to create one or more audio busses.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of busses to add") + "\n" +
+ "* " + _("A name for the buss(es)") + "\n" +
+ "* " + _("A group which the buss(es) will be assigned to") + "\n" +
+#ifndef MIXBUS
+ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
+#endif
+ "\n" + _("The buss(es) will be added at the location specified by \"Position\"")
+ ));
+
builtin_types.push_back (
- std::pair<string,string>(_("MIDI Busses"), _(" \
-Use these settings to create one or more MIDI busses.\n \
-\n \
-MIDI busses can combine the output of multiple tracks. They are sometimes used\n \
-to host a single \"heavy\" instrument plugin which is fed from multiple MIDI tracks.\n \
-\n \
-You may select:\n \
-* The number of busses to add.\n \
-* A name for the buss(es).\n \
-* An instrument plugin (or select \"None\" to drive an external device).\n \
-* A group which the buss(es) will be assigned to.\n \
-* The pin connections mode (see tooltip for details).\n \
-\n \
-The buss(es) will be added at the location specified by \"Position\".\n \
-")
- ));
+ std::pair<string,string> (_("MIDI Busses"), std::string () +
+ _("Use these settings to create one or more MIDI busses.") + "\n\n" +
+ _("MIDI busses can combine the output of multiple tracks. They are sometimes used\nto host a single \"heavy\" instrument plugin which is fed from multiple MIDI tracks.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of busses to add") + "\n" +
+ "* " + _("A name for the buss(es)") + "\n" +
+ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
+ "* " + _("A group which the buss(es) will be assigned to") + "\n" +
+#ifndef MIXBUS
+ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
+#endif
+ "\n" + _("The buss(es) will be added at the location specified by \"Position\"")
+ ));
+
builtin_types.push_back (
- std::pair<string,string>(_("VCA Masters"), _(" \
-Use these settings to create one or more VCA masters.\n \
-\n \
-You may select:\n \
-* The number of VCAs to add.\n \
-* A name for the VCA(s). \"%n\" will be replaced by an index number for each VCA.\n \
-")
- ));
+ std::pair<string,string> (_("VCA Masters"), std::string () +
+ _("Use these settings to create one or more VCA masters.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of VCAs to add") + "\n" +
+ "* " + _("A name for the VCA(s). \"%n\" will be replaced by an index number for each VCA")
+ ));
+
builtin_types.push_back (
- std::pair<string,string>(_("Foldback Busses"), _(" \
-Use these settings to create one or more foldback busses.\n \
-\n \
-Foldback busses are used as master outputs for monitor channels and are fed by\n \
-hidden monitor sends.\n \
-\n \
-You may select:\n \
-* The number of foldback busses to add.\n \
-* A name for the foldback buss(es).\n \
-")
- ));
+ std::pair<string,string> (_("Foldback Busses"), std::string () +
+ _("Use these settings to create one or more foldback busses.") + "\n\n" +
+ _("Foldback busses are used as master outputs for monitor channels and are fed by\nhidden monitor sends.") + "\n\n" +
+ _("You may select:") + "\n" +
+ "* " + _("The number of busses to add") + "\n" +
+ "* " + _("A name for the buss(es)")
+ ));
}
insert_at_combo.append_text (_("First"));