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.
This commit is contained in:
Robin Gareus 2019-04-15 21:42:42 +02:00
parent ca05f03e72
commit eae88bc119
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -89,99 +89,94 @@ AddRouteDialog::AddRouteDialog ()
if (builtin_types.empty()) { if (builtin_types.empty()) {
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("Audio Tracks"), _(" \ std::pair<string,string> (_("Audio Tracks"), std::string () +
Use these settings to create one or more audio tracks.\n \ _("Use these settings to create one or more audio tracks.") + "\n\n" +
\n \ _("You may select:") + "\n" +
You may select:\n \ "* " + _("The number of tracks to add") + "\n" +
* The number of tracks to add.\n \ "* " + _("A name for the track(s)") + "\n" +
* A name for the track(s).\n \ "* " + _("Mono, stereo, or multi-channel operation 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" +
* A group which the track(s) will be assigned to.\n \ #ifndef MIXBUS
* The pin connections mode (see tooltip for details).\n \ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
* Normal (non-destructive) or tape (destructive) recording mode.\n \ "* " + _("Normal (non-destructive) or tape (destructive) recording mode") + "\n" +
\n \ #endif
The track(s) will be added at the location specified by \"Position\".\n \ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
")
)); ));
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("MIDI Tracks"), _(" \ std::pair<string,string> (_("MIDI Tracks"), std::string () +
Use these settings to create one or more MIDI tracks.\n \ _(" Use these settings to create one or more MIDI tracks.") + "\n\n" +
\n \ _("You may select:") + "\n" +
You may select:\n \ "* " + _("The number of tracks to add") + "\n" +
* The number of tracks to add.\n \ "* " + _("A name for the track(s)") + "\n" +
* A name for the track(s).\n \ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
* An instrument plugin (or select \"None\" to drive an external device).\n \ "* " + _("A group which the track(s) will be assigned to") + "\n" +
* A group which the track(s) will be assigned to.\n \ #ifndef MIXBUS
* The pin connections mode (see tooltip for details).\n \ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
\n \ #endif
The track(s) will be added at the location specified by \"Position\".\n \ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
")
)); ));
#ifndef MIXBUS
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("Audio+MIDI Tracks"), _(" \ std::pair<string,string> (_("Audio+MIDI Tracks"), std::string () +
Use these settings to create one or more Audio+MIDI tracks.\n \ _("Use these settings to create one or more Audio+MIDI tracks.") + "\n\n" +
\n \ _("You may select:") + "\n" +
You may select:\n \ "* " + _("The number of tracks to add") + "\n" +
* The number of tracks to add.\n \ "* " + _("A name for the track(s)") + "\n" +
* A name for the track(s).\n \ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
* An instrument plugin (or select \"None\" to drive an external device).\n \ "* " + _("A group which the track(s) will be assigned to") + "\n" +
* A group which the track(s) will be assigned to.\n \ #ifndef MIXBUS
* The pin connections mode (see tooltip for details).\n \ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
* Normal (non-destructive) or tape (destructive) recording mode.\n \ "* " + _("Normal (non-destructive) or tape (destructive) recording mode") + "\n" +
\n \ #endif
The track(s) will be added at the location specified by \"Position\".\n \ "\n" + _("The track(s) will be added at the location specified by \"Position\"")
")
)); ));
#endif
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("Audio Busses"), _(" \ std::pair<string,string> (_("Audio Busses"), std::string () +
Use these settings to create one or more audio busses.\n \ _("Use these settings to create one or more audio busses.") + "\n\n" +
\n \ _("You may select:") + "\n" +
You may select:\n \ "* " + _("The number of busses to add") + "\n" +
* The number of busses to add.\n \ "* " + _("A name for the buss(es)") + "\n" +
* A name for the buss(es).\n \ "* " + _("A group which the buss(es) will be assigned to") + "\n" +
* A group which the buss(es) will be assigned to.\n \ #ifndef MIXBUS
* The pin connections mode (see tooltip for details).\n \ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
\n \ #endif
The buss(es) will be added at the location specified by \"Position\".\n \ "\n" + _("The buss(es) will be added at the location specified by \"Position\"")
")
)); ));
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("MIDI Busses"), _(" \ std::pair<string,string> (_("MIDI Busses"), std::string () +
Use these settings to create one or more MIDI busses.\n \ _("Use these settings to create one or more MIDI busses.") + "\n\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" +
MIDI busses can combine the output of multiple tracks. They are sometimes used\n \ _("You may select:") + "\n" +
to host a single \"heavy\" instrument plugin which is fed from multiple MIDI tracks.\n \ "* " + _("The number of busses to add") + "\n" +
\n \ "* " + _("A name for the buss(es)") + "\n" +
You may select:\n \ "* " + _("An instrument plugin (or select \"None\" to drive an external device)") + "\n" +
* The number of busses to add.\n \ "* " + _("A group which the buss(es) will be assigned to") + "\n" +
* A name for the buss(es).\n \ #ifndef MIXBUS
* An instrument plugin (or select \"None\" to drive an external device).\n \ "* " + _("The pin connections mode (see tooltip for details)") + "\n" +
* A group which the buss(es) will be assigned to.\n \ #endif
* The pin connections mode (see tooltip for details).\n \ "\n" + _("The buss(es) will be added at the location specified by \"Position\"")
\n \
The buss(es) will be added at the location specified by \"Position\".\n \
")
)); ));
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("VCA Masters"), _(" \ std::pair<string,string> (_("VCA Masters"), std::string () +
Use these settings to create one or more VCA masters.\n \ _("Use these settings to create one or more VCA masters.") + "\n\n" +
\n \ _("You may select:") + "\n" +
You may select:\n \ "* " + _("The number of VCAs to add") + "\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")
* A name for the VCA(s). \"%n\" will be replaced by an index number for each VCA.\n \
")
)); ));
builtin_types.push_back ( builtin_types.push_back (
std::pair<string,string>(_("Foldback Busses"), _(" \ std::pair<string,string> (_("Foldback Busses"), std::string () +
Use these settings to create one or more foldback busses.\n \ _("Use these settings to create one or more foldback busses.") + "\n\n" +
\n \ _("Foldback busses are used as master outputs for monitor channels and are fed by\nhidden monitor sends.") + "\n\n" +
Foldback busses are used as master outputs for monitor channels and are fed by\n \ _("You may select:") + "\n" +
hidden monitor sends.\n \ "* " + _("The number of busses to add") + "\n" +
\n \ "* " + _("A name for the buss(es)")
You may select:\n \
* The number of foldback busses to add.\n \
* A name for the foldback buss(es).\n \
")
)); ));
} }