[Kstars-devel] missing message context

Burkhard Lück lueck at hube-lueck.de
Mon Jun 8 08:10:52 CEST 2009


Am Montag 08 Juni 2009 07:57:18 schrieb Akarsh Simha:
> On Sun, Jun 07, 2009 at 06:13:26PM +0200, Burkhard Lück wrote:
> > Hi,
> >
> > in src:/tools/wutdialog.cpp there are these two messages:
> > Sunset: %1 on %2
> > Sunrise: %1 on %2
> >
> > I guess %1 is a time, but what's %2 ?
>
> %2 is a date:
>
> WUT->SunSetLabel->setText( i18n( "Sunset: %1 on %2" , sSet,
> KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) );
> WUT->SunRiseLabel->setText( i18n( "Sunrise: %1 on %2" , sRise,
> KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) );
> WUT->NightDurationLabel->setText( i18n("Night duration: %1 hours",
> sDuration ) );
>
Thanks for explanation.

What about using i18nc in such cases?

-- 
Burkhard Lück



More information about the Kstars-devel mailing list