Changeset View
Changeset View
Standalone View
Standalone View
src/kalziumutils.cpp
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 121 | if (val <= 0.0) { | |||
---|---|---|---|---|---|
122 | result = i18n("Unknown Value"); | 122 | result = i18n("Unknown Value"); | ||
123 | } else { | 123 | } else { | ||
124 | result = i18nc("x u (units). The atomic mass.", "%1 u", val); | 124 | result = i18nc("x u (units). The atomic mass.", "%1 u", val); | ||
125 | } | 125 | } | ||
126 | break; | 126 | break; | ||
127 | } | 127 | } | ||
128 | case ChemicalDataObject::date: // a date | 128 | case ChemicalDataObject::date: // a date | ||
129 | { | 129 | { | ||
130 | val = el->dataAsVariant(kind).toInt(); | 130 | //val = el->dataAsVariant(kind).toInt(); | ||
131 | int v_int = el->dataAsVariant(kind).toInt(); | ||||
tcanabrava: Why thIs change? Also don't commit commented code. | |||||
131 | if (val > 1600) { | 132 | if (val > 1600) { | ||
132 | result = i18n("This element was discovered in the year <numid>%1</numid>.", val); | 133 | result = i18n("This element was discovered in the year <numid>%1</numid>.", val); | ||
133 | } else if (val == -1) { | 134 | } else if (v_int == -1) { | ||
134 | result = i18n("The element has not yet been officially recognized by the IUPAC."); | 135 | result = i18n("The element has not yet been officially recognized by the IUPAC."); | ||
135 | } else { // this should now really be 0. If not there is a bug in the database | 136 | } else { // this should now really be 0. If not there is a bug in the database | ||
136 | result = i18n("This element was known to ancient cultures."); | 137 | result = i18n("This element was known to ancient cultures."); | ||
137 | } | 138 | } | ||
138 | break; | 139 | break; | ||
139 | } | 140 | } | ||
140 | case ChemicalDataObject::radiusCovalent: | 141 | case ChemicalDataObject::radiusCovalent: | ||
141 | case ChemicalDataObject::radiusVDW: | 142 | case ChemicalDataObject::radiusVDW: | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |
Why thIs change? Also don't commit commented code.