Delay locale reset to allow correct ui translation

Related to #787
parent b07c7889
......@@ -29,7 +29,6 @@ the Free Software Foundation, either version 3 of the License, or
#include "timeline2/model/timelineitemmodel.hpp"
#include "timeline2/view/timelinecontroller.h"
#include "timeline2/view/timelinewidget.h"
#include <mlt++/MltRepository.h>
#include <KMessageBox>
......
......@@ -66,7 +66,7 @@
#include "utils/resourcewidget.h"
#include "utils/thememanager.h"
#include "utils/otioconvertions.h"
#include "lib/localeHandling.h"
#include "profiles/profilerepository.hpp"
#include "widgets/progressbutton.h"
#include <config-kdenlive.h>
......@@ -510,6 +510,7 @@ void MainWindow::init()
addAction(QStringLiteral("timeline_preview_button"), previewButtonAction);
setupGUI(KXmlGuiWindow::ToolBar | KXmlGuiWindow::StatusBar | KXmlGuiWindow::Save | KXmlGuiWindow::Create);
LocaleHandling::resetLocale();
if (firstRun) {
if (QScreen *current = QApplication::primaryScreen()) {
int screenHeight = current->availableSize().height();
......
......@@ -86,7 +86,6 @@ MltConnection::MltConnection(const QString &mltPath)
// After initialising the MLT factory, set the locale back from user default to C
// to ensure numbers are always serialised with . as decimal point.
m_repository = std::unique_ptr<Mlt::Repository>(Mlt::Factory::init());
LocaleHandling::resetLocale();
#ifdef Q_OS_FREEBSD
auto locale = strdup(setlocale(MLT_LC_CATEGORY, nullptr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment