[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/filelight/src/part
From: Friedrich W. H. Kossebau <kossebau () kde ! org>
Date: 2010-03-25 14:40:01
Message-ID: 20100325144001.47E4BAC87D () svn ! kde ! org
[Download RAW message or body]
SVN commit 1107398 by kossebau:
fixed: no word puzzle, use i18np
M +6 -2 part.cpp
--- trunk/playground/utils/filelight/src/part/part.cpp #1107397:1107398
@@ -237,7 +237,7 @@
m_started = true;
}
- m_numberOfFiles->setText("");
+ m_numberOfFiles->setText(QString());
if (m_manager->start(url)) {
setUrl(url);
@@ -297,8 +297,12 @@
emit setWindowCaption(prettyUrl());
- m_numberOfFiles->setText(QString::number(tree->children()) + " files");
+ const int fileCount = tree->children();
+ const QString text = ( fileCount == 0 ) ?
+ i18n("No files.") :
+ i18np("1 file", "%1 files",fileCount);
+ m_numberOfFiles->setText(text);
}
void
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic