[kde-edu]: KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Mon Oct 15 17:44:05 CEST 2007


Hi,

Burkhard Lück wrote:
> This fix is wrong, it only writes the star names to kstars_i18n.cpp, but 
> should write eg "i18nc("star name", "Sirius");".
> 
> The attached patch fixes this issue and extracts also all missing messages to 
> the templates.
> 
> Please review and commit.
> 
Yes, of course you're right.  Committed; sorry about that.

Jason


> Burkhard Lück
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: Messages.sh
> ===================================================================
> --- Messages.sh	(Revision 725351)
> +++ Messages.sh	(Arbeitskopie)
> @@ -39,7 +39,7 @@
>  sort --unique info_url.tmp >> kstars_i18n.cpp
>  
>  # star names : some might be different in other languages, or they might have to be adapted to non-Latin alphabets
> -cat data/stars.dat | gawk 'BEGIN { FS=","; } ($1!~/\#/ && NF==3) { print $3; }' >> kstars_i18n.cpp;
> +cat data/stars.dat | gawk 'BEGIN { FS=", "; } ($1!~/\#/ && NF==3) { printf( "i18nc(\"star name\", \"%s\");\n", $3); }' >> kstars_i18n.cpp;
>  
>  # extract deep-sky object names (sorry, I don't know perl-fu ;( ...using AWK )
>  cat data/ngcic.dat | gawk '{ split(substr( $0, 77 ), name, " "); \
> @@ -66,7 +66,7 @@
>  
>  $EXTRACTRC *.ui tools/*.ui *.rc >> rc.cpp || exit 11
>  (cd data && $PREPARETIPS > ../tips.cpp)
> -$XGETTEXT *.cpp *.h tools/*.cpp tools/*.h -o $podir/kstars.pot
> +$XGETTEXT *.cpp *.h tools/*.cpp tools/*.h skycomponents/*.cpp widgets/*.cpp -o $podir/kstars.pot
>  rm -f tips.cpp
>  rm -f kstars_i18n.cpp
>  



More information about the kde-edu mailing list