[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/widgets
From: Akarsh Simha <akarshsimha () gmail ! com>
Date: 2009-01-10 19:40:21
Message-ID: 1231616421.549226.18695.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 909010 by asimha:
Fix translation-related issue where the translated strings for angle
measures differed depending on context. See bug 151424 for details.
This closes bug 151424.
BUG: 151424
CCMAIL: kstars-devel@kde.org
M +32 -15 dmsbox.cpp
--- trunk/KDE/kdeedu/kstars/kstars/widgets/dmsbox.cpp #909009:909010
@@ -89,27 +89,44 @@
void dmsBox::setDegType( bool t ) {
deg = t;
- QString sDeg = ( t ? i18n( "degrees" ) : i18n( "hours" ) );
- QString sMin = ( t ? i18n( "arcminutes" ) : i18n( "minutes" ) );
- QString sSec = ( t ? i18n( "arcseconds" ) : i18n( "seconds" ) );
- QString sTip = i18n( "Angle value in %1.", sDeg );
+ QString sTip = ( t ? i18n( "Angle value in degrees." ) : i18n( "Angle value in \
hours." ) ); QString sWhatsThis;
if ( isReadOnly() ) {
- sWhatsThis = i18n( "This box displays an angle in %1. "
- "The three numbers displayed are the angle's "
- "%1, %2, and %3." , sDeg, sMin, sSec);
+ if( t ) {
+ sWhatsThis = i18n( "This box displays an angle in degrees. "
+ "The three numbers displayed are the angle's "
+ "degrees, arcminutes, and arcseconds." );
+ }
+ else {
+ sWhatsThis = i18n( "This box displays an angle in hours. "
+ "The three numbers displayed are the angle's "
+ "hours, minutes, and seconds." );
+ }
} else {
- sTip += i18n( " You may enter a simple integer, or a floating-point value, \
"
- "or space- or colon-delimited values specifying "
- "%1, %2 and %3" , sDeg, sMin, sSec);
+ if( t ) {
+ sTip += i18n( " You may enter a simple integer, or a floating-point \
value, " + "or space- or colon-delimited values specifying "
+ "degrees, arcminutes and arcseconds" );
- sWhatsThis = i18n( "Enter an angle value in %1. The angle can be expressed \
"
- "as a simple integer (\"12\"), or floating-point "
- "(\"12.33\") value, or as space- or colon-delimited "
- "values specifying %1, %2 and %3 (\"12:20\", \
\"12:20:00\", "
- "\"12 20\", \"12 20 00.0\", etc.)." , sDeg, sMin, sSec);
+ sWhatsThis = i18n( "Enter an angle value in degrees. The angle can be \
expressed " + "as a simple integer (\"12\"), or \
floating-point " + "(\"12.33\") value, or as space- or \
colon-delimited " + "values specifying degrees, \
arcminutes and arcseconds (\"12:20\", \"12:20:00\", " + \
"\"12 20\", \"12 20 00.0\", etc.)." ); + }
+ else {
+ sTip += i18n( " You may enter a simple integer, or a floating-point \
value, " + "or space- or colon-delimited values specifying "
+ "hours, minutes and seconds" );
+
+ sWhatsThis = i18n( "Enter an angle value in hours. The angle can be \
expressed " + "as a simple integer (\"12\"), or \
floating-point " + "(\"12.33\") value, or as space- or \
colon-delimited " + "values specifying hours, minutes \
and seconds (\"12:20\", \"12:20:00\", " + "\"12 20\", \
\"12 20 00.0\", etc.)." ); + }
}
setToolTip( sTip );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic