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

Albert Astals Cid noreply at phabricator.kde.org
Mon Sep 2 20:52:04 BST 2019


aacid 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?
  
  
  Are you saying that the old code actually half works on Windows?
  
  I find that surprising since it means that setting the LANGUAGE environment variable on Windows does things, which according to a quick internet search doesn't seem to be the case

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/20190902/f2998350/attachment.html>


More information about the Kde-frameworks-devel mailing list