[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Fri Jan 9 20:18:33 CET 2009
SVN commit 908470 by asimha:
Fix trouble with links of translated planet names.
This is again, one more of those temporary translation fixes that we
are doing for KDE 4.2. Really, we should revamp the way translations
are handled. That'll fix a whole bunch of bugs.
CCMAIL: kstars-devel at kde.org
M +7 -1 kstarsdata.cpp
--- trunk/KDE/kdeedu/kstars/kstars/kstarsdata.cpp #908469:908470
@@ -731,7 +731,13 @@
idx = sub.indexOf(':');
QString title = sub.left( idx );
QString url = sub.mid( idx + 1 );
- SkyObject *o = skyComposite()->findByName(name);
+ // Dirty hack to fix things up for planets
+ SkyObject *o;
+ if( name == "Mercury" || name == "Venus" || name == "Mars" || name == "Jupiter"
+ || name == "Saturn" || name == "Uranus" || name == "Neptune" || name == "Pluto" )
+ o = skyComposite()->findByName( i18n( name.toLocal8Bit().data() ) );
+ else
+ o = skyComposite()->findByName( name );
if ( !o ) {
kWarning() << i18n( "Object named %1 not found", name ) ;
More information about the Kstars-devel
mailing list