Fix context for QDateTime::toString() translations

Authored by elvisangelaccio on Feb 17 2019, 11:26 AM.

Description

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

Details