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

Burkhard Lück lueck at hube-lueck.de
Sat Oct 10 09:39:35 CEST 2009


Am Freitag 09 Oktober 2009 22:30:50 schrieb Prakash Mohan:
> SVN commit 1033270 by prakash:
> 
> Adding a silly 0 as the 'missing' argument for i18np to make it stop shoing
>  the ugly (i18n_PLURAL_ARGUMENT_MISSING) error.
> 
> CCMAIL: kstars-devel at kde.org
> 
> 
>  M  +1 -1      wutdialog.cpp
> 
> 
> --- trunk/KDE/kdeedu/kstars/kstars/tools/wutdialog.cpp #1033269:1033270
> @@ -172,7 +172,7 @@
> 
>      WUT->SunSetLabel->setText( i18nc( "Sunset at time %1 on date %2",
>  "Sunset: %1 on %2" , sSet, KGlobal::locale()->formatDate( Evening.date(),
>  KLocale::LongDate) ) ); WUT->SunRiseLabel->setText( i18nc( "Sunrise at
>  time %1 on date %2", "Sunrise: %1 on %2" , sRise,
>  KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) ); - 
>    WUT->NightDurationLabel->setText( i18np("Night duration: %1 hour",
>  "Night duration: %1 hours", sDuration ) ); +   
>  WUT->NightDurationLabel->setText( i18np("Night duration: %1 hour", "Night
>  duration: %1 hours", sDuration, 0 ) );
> 
>      // moon almanac information
>      KSMoon *oMoon = reinterpret_cast<KSMoon*>( data->objectNamed("Moon")
>  ); _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
> 
From a translators pov this seems to be a strange usage of i18np. How should 
this be translated properly?

Can you please explain?
Please give an example of a singular and plural string.

-- 
Burkhard Lück


More information about the Kstars-devel mailing list