[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: How to support plurals if there is also another argument?
From:       "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date:       2013-11-24 21:25:54
Message-ID: 1454136.hjh30DKhue () klux ! site
[Download RAW message or body]

Am Sonntag, 24. November 2013, 21:46:17 schrieb Rolf Eike Beer:
> Am Sonntag, 24. November 2013, 21:32:27 schrieb Friedrich W. H. Kossebau:
> > Hi,
> > 
> > to fix https://bugs.kde.org/show_bug.cgi?id=313732 it seems I need to 
use
> > the i18ncp call. But in that case there is also another argument, next 
to
> > 
> > the one which needs plural support:
> >                     tip <<  i18nc( "1=time 2=The number of hours of 
work
> > 
> > duration (non integer)", "%1, %2 hours", l->formatTime( i->startTime() 
),
> > l-> 
> > >formatNumber( i->hours() ) );
> > 
> > Can i18nc be used like this?
> > i18ncp( "1=time 2=The number of hours of work duration (non integer)",
> > "%1,
> > %2 hour", "%1, %2 hours", l->formatTime( i->startTime() ),
> > l->formatNumber(
> > i->hours() ) );
> 
> i18ncp( "1=time 2=The number of hours of work duration (non integer)", 
"%2,
> %1 hour", "%2, %1 hours", l->formatNumber(
> i->hours() ), l->formatTime( i->startTime() ) );

Ah, so the first argument is looked at? Okay, thanks.

(If someone feels like doing it, that should be ideally documented in the 
API dox)

Cheers
Friedrich
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic