``replace(QString("-testnet"), QString(" ") + tr("[testnet]"))``, if that compiles :).