I've been doing my final cleanup of MIPP, and after the latest round, I ended up with these two lines for setting the connection text:
QString text = QObject::tr("[ %1 ]").arg(connection); m_connectionLabel->setText(QObject::tr(text.toStdString().c_str())); ISTM that this will translate the text twice, and it will include the brackets in the translation. Is this the right thing to do? Or can that safely be reduced to this: QString text = QObject::tr("[ %1 ]").arg(connection); m_connectionLabel->setText(text); Or would adding the brackets after translation make more sense? Ir's certainly simpler as it avoids arg(): QString text = "[ " + QObject::tr(connection) + " ]"; m_connectionLabel->setText(text); Maybe square brackets are dropped from translated text? What's the recommended thing to do here? Ted. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel