[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Sat Jan 10 21:15:47 CET 2009
SVN commit 909016 by asimha:
Fixing translation issues with plural forms.
CCBUG: 98655
CCMAIL: kstars-devel at kde.org
M +3 -3 detaildialog.cpp
M +1 -1 tools/wutdialog.cpp
M +1 -1 widgets/fovwidget.cpp
--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #909015:909016
@@ -204,10 +204,10 @@
if ( ps->angSize() ) {
if ( ps->name() == "Sun" || ps->name() == "Moon" )
Data->AngSize->setText( i18nc("angular size in arcminutes", "%1 arcmin",
- KGlobal::locale()->formatNumber( ps->angSize() ) ) );
+ KGlobal::locale()->formatNumber( ps->angSize() ) ) ); // Needn't be a plural form because sun / moon will never contract to 1 arcminute
else
- Data->AngSize->setText( i18nc("angular size in arcseconds", "%1 arcsec",
- KGlobal::locale()->formatNumber( ps->angSize()*60.0 ) ) );
+ Data->AngSize->setText( i18ncp("angular size in arcseconds", "1 arcsec", "%1 arcsec",
+ KGlobal::locale()->formatNumber( ps->angSize()*60.0 ) ) );
} else {
Data->AngSize->setText( "--" );
}
--- trunk/KDE/kdeedu/kstars/kstars/tools/wutdialog.cpp #909015:909016
@@ -167,7 +167,7 @@
WUT->SunSetLabel->setText( i18n( "Sunset: %1" , sSet) );
WUT->SunRiseLabel->setText( i18n( "Sunrise: %1" , sRise) );
- WUT->NightDurationLabel->setText( i18n( "Night duration: %1 hours", sDuration ) );
+ WUT->NightDurationLabel->setText( i18np( "Night duration: 1 hour", "Night duration: %1 hours", sDuration ) );
// moon almanac information
KSMoon *oMoon = (KSMoon*) kstars->data()->objectNamed( "Moon" );
--- trunk/KDE/kdeedu/kstars/kstars/widgets/fovwidget.cpp #909015:909016
@@ -44,7 +44,7 @@
QFont smallFont = p.font();
smallFont.setPointSize( p.font().pointSize() - 2 );
p.setFont( smallFont );
- p.drawText( rect(), Qt::AlignHCenter|Qt::AlignBottom, i18nc("angular size in arcminutes", "%1 arcmin", QString::number( m_FOV->size(), 'f', 1 ) ) );
+ p.drawText( rect(), Qt::AlignHCenter|Qt::AlignBottom, i18ncp("angular size in arcminutes", "1 arcmin", "%1 arcmin", QString::number( m_FOV->size(), 'f', 1 ) ) );
}
}
More information about the Kstars-devel
mailing list