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

Akarsh Simha akarshsimha at gmail.com
Mon Aug 31 20:39:04 CEST 2009


SVN commit 1017861 by asimha:

Fixing extraction of city / region names. The extraction errors
pointed by Chusslove
(http://lists.kde.org/?l=kstars-devel&m=125144595902446&w=2) should
now be fixed.

The contexts in the actual i18nc call still need to be fixed.

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



 M  +3 -3      Messages.sh  


--- trunk/KDE/kdeedu/kstars/kstars/Messages.sh #1017860:1017861
@@ -21,17 +21,17 @@
 # extract cities
 awk 'BEGIN {FS=":"}; {print "\"" $2 ":" $3 ":" $1 "\""; }' < data/Cities.dat | \
    sed 's/ *:/:/g' | \
-   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"City in /' | sed 's/:/ /' | sed 's/:/ (optional, probably does not need a translation)\",\"/' | sed 's/i18nc(.*,"");//' >> "cities.tmp"
+   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"City in /' | sed 's/ *: */ /' | sed 's/ *: */\",\"/' | sed 's/i18nc(.*,"");//' >> "cities.tmp"
 sort --unique cities.tmp >> kstars_i18n.cpp
 
 # extract regions
 awk 'BEGIN {FS=":"}; {print "\"" $3 ":" $2 "\""; }' < data/Cities.dat | \
-   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"Region\/state in /' | sed 's/ *:/ (optional, rarely needs a translation)\",\"/g' | sed 's/i18nc(.*,"");//' >> "regions.tmp";
+   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"Region\/state in /' | sed 's/ *: */\",\"/g' | sed 's/i18nc(.*,"");//' >> "regions.tmp";
 sort --unique regions.tmp >> kstars_i18n.cpp
 
 # extract countries
 awk 'BEGIN {FS=":"}; {print "\"" $3 "\""; }' < data/Cities.dat | \
-   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"Country name (optional, but should be translated)\",\"/g' | sed 's/i18nc(.*,"");//' >> "countries.tmp"
+   sed 's/ *\"$/\");/g' | sed 's/^\" */i18nc(\"Country name\",\"/g' | sed 's/i18nc(.*,"");//' >> "countries.tmp"
 sort --unique countries.tmp >> kstars_i18n.cpp
 
 # extract image/info menu items


More information about the Kstars-devel mailing list