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

Akarsh Simha akarshsimha at gmail.com
Wed Aug 26 22:22:49 CEST 2009


SVN commit 1016024 by asimha:

Adding country and region as translation context to city names. This
fixes (the age old) bug 94741 in trunk.

I hope this is okay.

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



 M  +3 -2      Messages.sh  


--- trunk/KDE/kdeedu/kstars/kstars/Messages.sh #1016023:1016024
@@ -19,8 +19,9 @@
 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"
+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"
 sort --unique cities.tmp >> kstars_i18n.cpp
 
 # extract regions


More information about the Kstars-devel mailing list