commit
4944325816
|
@ -1,3 +1,9 @@
|
|||
kylin-os-installer (0.2.1-0k69mn1.2.c) nile; urgency=medium
|
||||
|
||||
* 解决初始语言不生效现象
|
||||
|
||||
-- yangdonghai <yangdonghai@kylinos.cn> Fri, 23 Aug 2024 11:12:23 +0800
|
||||
|
||||
kylin-os-installer (0.2.1-0k69mn1.1.c) nile; urgency=medium
|
||||
|
||||
* 更新哈萨克,柯尔克孜语言翻译
|
||||
|
|
|
@ -28,6 +28,7 @@ LanguageFrame::LanguageFrame(QWidget *parent) : MiddleFrameManager(parent)
|
|||
initAllConnect();
|
||||
initBtn();
|
||||
setBoardTabOrder();
|
||||
changeLanguage(m_MNMNBtn);
|
||||
this->setFocus();
|
||||
}
|
||||
|
||||
|
@ -80,7 +81,7 @@ void LanguageFrame::initUI()
|
|||
m_ENUSBtn->setObjectName("en_US");
|
||||
m_ENUSBtn->setCheckable(true);
|
||||
|
||||
gLayoutl->addWidget(m_MNMNBtn, 9, 1, 1, 1, Qt::AlignCenter);
|
||||
gLayoutl->addWidget(m_MNMNBtn, 2, 1, 1, 1, Qt::AlignCenter);
|
||||
// gLayoutl->addItem(new QSpacerItem(8, 24, QSizePolicy::Expanding, QSizePolicy::Minimum), 16, 1, 1, 1);
|
||||
|
||||
gLayoutl->addWidget(m_ZHCNBtn, 3, 1, 1, 1, Qt::AlignCenter);
|
||||
|
@ -101,9 +102,9 @@ void LanguageFrame::initUI()
|
|||
gLayoutl->addWidget(m_BOCNBtn, 8, 1, 1, 1, Qt::AlignCenter);
|
||||
// gLayoutl->addItem(new QSpacerItem(8, 24, QSizePolicy::Expanding, QSizePolicy::Minimum), 14, 1, 1, 1);
|
||||
|
||||
gLayoutl->addWidget(m_ENUSBtn, 10, 1, 1, 1, Qt::AlignCenter);
|
||||
gLayoutl->addWidget(m_ENUSBtn, 9, 1, 1, 1, Qt::AlignCenter);
|
||||
|
||||
gLayoutl->addItem(new QSpacerItem(8, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 11, 1, 1, 1);
|
||||
gLayoutl->addItem(new QSpacerItem(8, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 10, 1, 1, 1);
|
||||
// gLayoutl->setRowStretch(6, 1);
|
||||
translateStr();
|
||||
}
|
||||
|
@ -128,6 +129,7 @@ void LanguageFrame::initBtn()
|
|||
m_curSystenlocal = setAllBtnStatus(m_curSystenlocal);
|
||||
qDebug()<<"locale language="<<m_curSystenlocal;
|
||||
WriteSettingToIni("config", "language", m_curSystenlocal);
|
||||
|
||||
// if (m_curSystenlocal == "en_US") {
|
||||
// m_ENUSBtn->setLabelShow(true);
|
||||
// m_ENUSBtn->setChecked(true);
|
||||
|
|
Loading…
Reference in New Issue