Commit 69bf2260 authored by Nate Graham's avatar Nate Graham 🔩

Fix string puzzle with list and grid view placeholder strings

Using a placeholder for the type of data in the string doesn't work
because of grammatical genders and other differences from English.

The UI code is implemented in a very generic way, which is good
overall, but it prevents us from easily defining a different string
for every that it could be displaying, which would be the best way to
solve the string puzzle.

Accordingly, this commit takes the lazy path by just setting the
placeholder text to a status string with no substitutions. The message
is more generic, but always translatable.
parent 0f70dbf7
......@@ -184,7 +184,7 @@ FocusScope {
anchors.centerIn: parent
width: parent.width - (Kirigami.Units.largeSpacing * 4)
visible: contentDirectoryView.count === 0
text: i18nc("e.g. 'no artists found' or 'no albums found'", "No %1 found", mainTitle)
text: i18n("Nothing to display")
}
cellWidth: Math.floor(availableWidth / Math.max(Math.floor(availableWidth / elisaTheme.gridDelegateSize), 2))
......
......@@ -157,7 +157,7 @@ FocusScope {
anchors.centerIn: parent
width: parent.width - (Kirigami.Units.largeSpacing * 4)
visible: contentDirectoryView.count === 0
text: i18nc("e.g. 'no artists found' or 'no albums found'", "No %1 found", mainTitle)
text: i18n("Nothing to display")
}
onCountChanged: if (count === 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment