[Kstars-devel] branches/KDE/4.2/kdeedu/kstars/kstars

Akarsh Simha akarshsimha at gmail.com
Sat Jan 10 20:00:06 CET 2009


SVN commit 908997 by asimha:

Backporting fix from Rev 908470

Original commit log reads as follows:

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  


--- branches/KDE/4.2/kdeedu/kstars/kstars/kstarsdata.cpp #908996:908997
@@ -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