D23119: Fix dates being on the wrong locale when setting an application language individually

Alexander Semke noreply at phabricator.kde.org
Sun Sep 22 16:58:28 BST 2019


asemke added a comment.


  In D23119#519676 <https://phabricator.kde.org/D23119#519676>, @asemke wrote:
  
  > The original problem in LabPlot was reported by a windows user. The proposed fix won't fix the problem on windows. I think the only way to get the proper strings on Windows is to get the current language of the application, to create a QLocale with the proper language and to use QLocale::toString(const QDateTime &dateTime, const QString &format)... If this is correct, then we're are back to my original question I asked on IRC/Matrix - how to determine the current application language?
  
  
  @aacid I solved this problem in 7a10577b52504f6466ecaaedefc8db8d84ffc3d9 <https://phabricator.kde.org/R262:7a10577b52504f6466ecaaedefc8db8d84ffc3d9>. This is not really nice but it works and I accept this hack, at least as a temporary solution, since we want to do the next release of LabPlot soon...

REPOSITORY
  R263 KXmlGui

REVISION DETAIL
  https://phabricator.kde.org/D23119

To: aacid
Cc: yurchor, apol, kde-frameworks-devel, asemke, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190922/6709f175/attachment.html>


More information about the Kde-frameworks-devel mailing list