From: Carsten Niehaus Date: Sat, 11 Jun 2005 14:32:32 +0000 (+0000) Subject: adding some comments to i18n()-strings so that the translators have a chance to under... X-Git-Tag: v3.80.2~300^2~112 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=b97a0e6c6fb112147923e4bdab2aab281d09a8fe;p=libqmvoc.git adding some comments to i18n()-strings so that the translators have a chance to understand them... svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=424336 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index 90475af..ffbd338 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -113,10 +113,10 @@ const QString Element::adjustRadius( RADIUSTYPE rtype ) switch ( Prefs::units() ) { case 0://use SI-values (meter for length) - v = i18n( "%1 10-12 m" ).arg( QString::number( val ) ); + v = i18n( "%1 is a length", "%1 10-12 m" ).arg( QString::number( val ) ); break; case 1://use picometer, the most common unit for radii - v = i18n( "%1 pm" ).arg( QString::number( val ) ); + v = i18n( "%1 is a length, eg: 12.3 pm", "%1 pm" ).arg( QString::number( val ) ); break; } } @@ -277,18 +277,26 @@ void Element::drawCrystalstructure( QPainter* p ) QColor color; QString name; QString structure = crystalstructure(); + /** + * hcp: hexagonal close packed + * fcc: face centered cubic + * krz/bbc cubic body centered // kubisch raumzentriert + * kdp: kubisch dicht gepackt + * hdp: hexagonal dicht gepackt + * ccp: cubic close packed // kubisch dichteste Kugelpackung + */ if ( structure == "own"){ color = Qt::blue; - name = i18n( "own" ); + name = i18n( "this means, the element has its 'own' structur", "own" ); }else if ( structure == "bbc" ){ color = Qt::red; - name = i18n( "bbc" ); + name = i18n( "Crystalsystem body centered cubic", "bbc" ); }else if ( structure == "hdp" ){ color = Qt::yellow; - name = i18n( "hdp" ); + name = i18n( "Crystalsystem hexagonal dense packed", "hdp" ); }else if ( structure == "ccp" ){ color = Qt::green; - name = i18n( "ccp" ); + name = i18n( "Crystalsystem cubic close packed", "ccp" ); } else{ color = Qt::white;