mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Make monitor detection reuse the port name translation
So that they never get out of sync, and translators don't get confused. Also replace some N_() where X_() was really intended.
This commit is contained in:
parent
73c0f9e529
commit
f41e0cd4a2
1 changed files with 6 additions and 5 deletions
|
|
@ -549,10 +549,11 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
|
||||||
we excluded them earlier.
|
we excluded them earlier.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
string lp = p;
|
string lp = p, monitor = _("Monitor");
|
||||||
boost::to_lower (lp);
|
boost::to_lower (lp);
|
||||||
|
boost::to_lower (monitor);
|
||||||
|
|
||||||
if ((lp.find (N_(":monitor")) != string::npos) &&
|
if ((lp.find (monitor) != string::npos) &&
|
||||||
(lp.find (lpn) != string::npos)) {
|
(lp.find (lpn) != string::npos)) {
|
||||||
++s;
|
++s;
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -568,9 +569,9 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
|
||||||
if (ph) {
|
if (ph) {
|
||||||
DataType t (AudioEngine::instance()->port_engine().port_data_type (ph));
|
DataType t (AudioEngine::instance()->port_engine().port_data_type (ph));
|
||||||
if (t != DataType::NIL) {
|
if (t != DataType::NIL) {
|
||||||
if (port_has_prefix (p, N_("system:")) ||
|
if (port_has_prefix (p, X_("system:")) ||
|
||||||
port_has_prefix (p, N_("alsa_pcm:")) ||
|
port_has_prefix (p, X_("alsa_pcm:")) ||
|
||||||
port_has_prefix (p, N_("alsa_midi:"))) {
|
port_has_prefix (p, X_("alsa_midi:"))) {
|
||||||
extra_system[t].push_back (p);
|
extra_system[t].push_back (p);
|
||||||
} else if (port_has_prefix (p, lpnc)) {
|
} else if (port_has_prefix (p, lpnc)) {
|
||||||
/* Hide scene ports from non-Tracks Live builds */
|
/* Hide scene ports from non-Tracks Live builds */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue