X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/bfb7d56d937d653438ab18342450254bf490c614..629ec98952bcf38bc99f2b11bc37bdc2ec7aabcc:/src/tagcloud/tagcloud.cpp diff --git a/src/tagcloud/tagcloud.cpp b/src/tagcloud/tagcloud.cpp index 5f406a796..e59074fab 100644 --- a/src/tagcloud/tagcloud.cpp +++ b/src/tagcloud/tagcloud.cpp @@ -131,7 +131,7 @@ public: hoverTag( 0 ), cachedHfwWidth( -1 ), m_parent( parent ) { - newTagNode.text = i18n( "New Tag..." ); + newTagNode.text = i18nc( "@label", "New Tag..." ); } int maxFontSize; @@ -651,7 +651,7 @@ void Nepomuk::TagCloud::showTags( const QList& tags ) d->showAllTags = false; d->invalidateCachedValues(); d->nodes.clear(); - Q_FOREACH( Tag tag, tags ) { + Q_FOREACH( const Tag &tag, tags ) { TagNode node; node.tag = tag; node.weight = d->calculateWeight( tag ); @@ -736,7 +736,7 @@ QSize Nepomuk::TagCloud::minimumSizeHint() const // If we have tags d->rebuildCloud() has been called at least once, // thus, we have proper rects (i.e. needed sizes) if ( d->nodes.isEmpty() && !d->newTagButtonEnabled ) { - return QSize( fontMetrics().width( i18n( "No Tags" ) ), fontMetrics().height() ); + return QSize( fontMetrics().width( i18nc( "@label Indicator when no tags defined", "No Tags" ) ), fontMetrics().height() ); } else { QSize size;