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

Jason Harris kstars at 30doradus.org
Tue Dec 11 15:49:18 CET 2007


SVN commit 747268 by harris:

Attempt to fix parsing of translatable strings when extracting strings
from data files.  This should fix the truncated string that Luciano
reported, and removes some bogus strings as well.

Please test.

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



 M  +2 -2      Messages.sh  


--- trunk/KDE/kdeedu/kstars/kstars/Messages.sh #747267:747268
@@ -31,10 +31,10 @@
 sort --unique countries.tmp >> kstars_i18n.cpp
 
 # extract image/info menu items
-awk 'BEGIN {FS=":"}; {print "i18nc(\"Image/info menu item (should be translated)\",\"" $2 "\");"; }' < data/image_url.dat | \
+awk 'BEGIN {FS=":"}; {gsub(/\"/, \"\\\"\"); print "i18nc(\"Image/info menu item (should be translated)\",\"" $2 "\");"; }' < data/image_url.dat | \
     sed 's/i18nc(.*,"");//' >> "image_url.tmp"
 sort --unique image_url.tmp >> kstars_i18n.cpp
-awk 'BEGIN {FS=":"}; {print "i18nc(\"Image/info menu item (should be translated)\",\"" $2 "\");"; }' < data/info_url.dat | \
+awk 'BEGIN {FS=":"}; {gsub(/\"/, \"\\\"\"); print "i18nc(\"Image/info menu item (should be translated)\",\"" $2 "\");"; }' < data/info_url.dat | \
     sed 's/i18nc(.*,"");//' >> "info_url.tmp"
 sort --unique info_url.tmp >> kstars_i18n.cpp
 


More information about the Kstars-devel mailing list