diff --git a/ChangeLog.txt b/ChangeLog.txt index 978bf2ab3..04bc38d4d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -26,6 +26,7 @@ - [#704] Valentina crashes if click on detail. - [#706] Default unit in preferences not changing new file unit. - Fix bug. Valentina overrids exported file even if a user said no. +- Fix bug. Date on label doesn't obey GUI language locale. # Version 0.5.0 May 9, 2017 - [#581] User can now filter input lists by keyword in function wizard. diff --git a/src/libs/vlayout/vtextmanager.cpp b/src/libs/vlayout/vtextmanager.cpp index 41d043e7b..8a935bee8 100644 --- a/src/libs/vlayout/vtextmanager.cpp +++ b/src/libs/vlayout/vtextmanager.cpp @@ -376,7 +376,8 @@ void VTextManager::Update(const VAbstractPattern *pDoc, qreal dSize, qreal dHeig } if (date.isValid() == true) { - tl.m_qsText = date.toString("dd MMMM yyyy"); + QLocale locale(qApp->Settings()->GetLocale()); + tl.m_qsText = locale.toString(date, "dd MMMM yyyy"); tl.m_eFontWeight = QFont::Normal; tl.m_eStyle = QFont::StyleNormal; tl.m_iFontSize = 0;