KDE/kdevelop/languages/cpp

David Nolden david.nolden.kdevelop at art-master.de
Tue Apr 14 12:10:24 UTC 2009


Am Dienstag 14 April 2009 14:03:51 schrieb Nick Shaforostoff:
> I believe i18np has nothing to do with -th form. at least in Russian and
> Ukrainian the suffix (actually called 'ending') will be the same for any
> number.
>
> so instead I suggest making a switch(m_item.pathNumber%10) and using
> several i18nc() - return i18nс("%1 % 10 = 1", "In %1st include-path",
> m_item.pathNumber ); return i18nс("%1 % 10 = 2", "In %1nd include-path",
> m_item.pathNumber ); return i18nс("%1 % 10 = 3", "In %1rd include-path",
> m_item.pathNumber ); return i18nс("%1 % 10 >= 4", "In %1th include-path",
> m_item.pathNumber );
Especially in this specific case, it really isn't worth the hassle. If you 
want to make it correct, I suggest just changing it to "In include-path nr. 
%1", another option would be removing that output altogether and replacing it 
with something more useful(It was more like a placeholder ;-)

Greetings, David





More information about the KDevelop-devel mailing list