extragear/multimedia/amarok/src/meta

Maximilian Kossick maximilian.kossick at googlemail.com
Sat Feb 16 13:50:42 CET 2008


i copied this code directly from MetaBundle

On Feb 16, 2008 1:46 PM, Jeff Mitchell <kde-dev at emailgoeshere.com> wrote:

> On Saturday 16 February 2008, Maximilian Kossick wrote:
> > +QString
> > +Meta::prettyRating( int rating )
> > +{
> > +    switch( rating )
> > +    {
> > +        case 2: return i18n( "Awful" );
> > +        case 3: return i18n( "Barely tolerable" );
> > +        case 4: return i18n( "Tolerable" );
> > +        case 5: return i18n( "Okay" );
> > +        case 6: return i18n( "Good" );
> > +        case 7: return i18n( "Very good" );
> > +        case 8: return i18n( "Excellent" );
> > +        case 9: return i18n( "Amazing" );
> > +        case 10: return i18n( "Favorite" );
> > +        case 0: default: return i18n( "Not rated" ); // assume weird
> > values as not rated +    }
> > +    return "if you can see this, then that's a bad sign.";
> > +}
>
> Is there a reason you left out "1"?
>
> --Jeff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20080216/43191cc4/attachment.html 


More information about the Amarok-devel mailing list