]> cloud.milkyroute.net Git - dolphin.git/commit
Fix context for QDateTime::toString() translations
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 17 Feb 2019 11:26:52 +0000 (12:26 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 9 Mar 2019 11:34:36 +0000 (12:34 +0100)
commit1a325946174258186b6b8dfeae6dd096d90483f2
tree7f789d709436b2920beea38aaf84fcb2a0136657
parente602e532c0f7c023db097d0eac50a9d7a652b2d1
Fix context for QDateTime::toString() translations

Summary:
The documentation of QDateTime::toString() says that:

    Any sequence of characters that are enclosed in single
    quotes will be treated as text and not be used as an expression.

This means that translators cannot replace single quotes with other
characters such as «...». This is now described in the context of the
affected strings.

We also check that the translated string contains exactly 2 single
quotes, and we use the untraslated string otherwise.

BUG: 401382

Reviewers: lueck, aacid, cfeck

Subscribers: ltoscano, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D18769
src/kitemviews/kfileitemmodel.cpp