Added I18N for PQs, initial version. Hence resource file and language files. Changed samplesphysicalquantities to check some I18N topics.

This commit is contained in:
Klaus Basan
2013-07-27 20:23:23 +02:00
parent 581638ec7f
commit 40a97c3d82
38 changed files with 523 additions and 72 deletions

View File

@@ -80,12 +80,13 @@ protected:
/*!
* \brief String for converter
* \param i18n
* \return
*/
virtual QString stringForConverter() const {
virtual QString stringForConverter(bool i18n = false) const {
QString s(this->getName());
s.append(" Active: ").append(this->m_frequencyActive.unitValueRoundedWithUnit(3));
s.append(" Standby: ").append(this->m_frequencyStandby.unitValueRoundedWithUnit(3));
s.append(" Active: ").append(this->m_frequencyActive.unitValueRoundedWithUnit(3, i18n));
s.append(" Standby: ").append(this->m_frequencyStandby.unitValueRoundedWithUnit(3, i18n));
return s;
}