Skip to content

Commit

Permalink
Merge pull request #5358 from nextcloud/bugfix/fix-bad-string-for-tr
Browse files Browse the repository at this point in the history
Fix bad string for translation.
  • Loading branch information
allexzander authored Jan 23, 2023
2 parents 593377a + d8980a8 commit 636027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folderstatusmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
//: Example text: "File.txt (23KB)"
const auto &xParent = static_cast<SubFolderInfo *>(index.internalPointer());
const auto suffix = (subfolderInfo._isNonDecryptable && subfolderInfo._checked && (!xParent || !xParent->_isEncrypted))
? tr(" - %1").arg("Could not decrypt!")
? QStringLiteral(" - ") + tr("Could not decrypt!")
: QString{};
return subfolderInfo._size < 0 ? QString(subfolderInfo._name + suffix) : QString(tr("%1 (%2)").arg(subfolderInfo._name, Utility::octetsToString(subfolderInfo._size)) + suffix);
}
Expand Down

0 comments on commit 636027a

Please sign in to comment.