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

Akarsh Simha akarshsimha at gmail.com
Thu Jun 11 15:00:41 CEST 2009


SVN commit 980238 by asimha:

Making sure sky cultures in the 'Guides' section of the settings
dialog are translatable.

Many thanks to Burkhard Lück for pointing this out.

CCMAIL: kstars-devel at kde.org
CCMAIL: kde-i18n-doc at kde.org



 M  +3 -0      Messages.sh  
 M  +1 -1      options/opsguides.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/Messages.sh #980237:980238
@@ -15,6 +15,9 @@
 sed -e "s/\([0-9].*[a-z]\)//" < data/cnames.dat | sed 's/^[A-B] //' | \
    sed 's/\([A-Z].*\)/i18nc("Constellation name (optional)", "\1");/' | sed 's/\ "/"/g' >> "kstars_i18n.cpp"
 
+# extract sky cultures
+grep ^C data/cnames.dat | awk '{ print "i18nc( \"Sky Culture\", \"" $2 "\" );" }' >> "kstars_i18n.cpp"
+
 # extract cities
 awk 'BEGIN {FS=":"}; {print "\"" $1 "\""; }' < data/Cities.dat | \
    sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"City name (optional, probably does not need a translation)\",\"/g' | sed 's/i18nc(.*,"");//' >> "cities.tmp"
--- trunk/KDE/kdeedu/kstars/kstars/options/opsguides.cpp #980237:980238
@@ -29,7 +29,7 @@
     connect( kcfg_ShowMilkyWay, SIGNAL( clicked() ),
              this, SLOT( slotToggleMilkyWayOptions() ) );
 
-    kcfg_SkyCulture->addItems( ksw->data()->skyComposite()->getCultureNames() );
+    kcfg_SkyCulture->addItems( i18n( ksw->data()->skyComposite()->getCultureNames() ) );
 
 }
 


More information about the Kstars-devel mailing list