include and i18n: Remove duplicate registrations and update translation.

This commit is contained in:
Mentalflow 2025-05-19 17:13:34 +08:00
parent ca319a5b55
commit d64e8d1ebb
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
6 changed files with 37 additions and 24 deletions

View File

@ -29,25 +29,25 @@
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="476"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="482"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="487"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="493"/>
<source>Minimize</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
<source>Restore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
<source>Maximize</source>
<translation type="unfinished"></translation>
</message>
@ -114,6 +114,14 @@
</context>
<context>
<name>RibbonMessageBarGroup</name>
<message>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="102"/>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="111"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="102"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="111"/>
<source>&apos;s </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
@ -194,7 +202,7 @@
</message>
<message>
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
<location filename="../qml/Qt6/RibbonTabBar.qml" line="301"/>
<location filename="../qml/Qt6/RibbonTabBar.qml" line="302"/>
<source>RibbonTabBar: Error loading component:</source>
<translation type="unfinished"></translation>
</message>
@ -344,31 +352,31 @@
<name>RibbonWindow</name>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="148"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
<source>Minimize</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
<source>Do you want to close this window?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="153"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
<source>Please note</source>
<translation type="unfinished"></translation>
</message>

View File

@ -29,25 +29,25 @@
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="476"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="482"/>
<source>Close</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="487"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="493"/>
<source>Minimize</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
<source>Restore</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
<source>Maximize</source>
<translation></translation>
</message>
@ -114,6 +114,14 @@
</context>
<context>
<name>RibbonMessageBarGroup</name>
<message>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="102"/>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="111"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="102"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="111"/>
<source>&apos;s </source>
<translation> </translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
@ -194,7 +202,7 @@
</message>
<message>
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
<location filename="../qml/Qt6/RibbonTabBar.qml" line="301"/>
<location filename="../qml/Qt6/RibbonTabBar.qml" line="302"/>
<source>RibbonTabBar: Error loading component:</source>
<translation>RibbonTabBar</translation>
</message>
@ -345,31 +353,31 @@
<name>RibbonWindow</name>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="148"/>
<source>Quit</source>
<translation>退</translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
<source>Minimize</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
<source>Do you want to close this window?</source>
<translation></translation>
</message>
<message>
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="153"/>
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
<source>Please note</source>
<translation></translation>
</message>

View File

@ -9,7 +9,6 @@ class PlatformSupport : public QObject
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
QML_NAMED_ELEMENT(PlatformSupport)
public:
static PlatformSupport* create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return instance();}
static PlatformSupport* instance(){

View File

@ -10,7 +10,6 @@ class RibbonLocalization : public QQuickItem
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
QML_NAMED_ELEMENT(RibbonLocalization)
Q_PROPERTY(QString currentLanguage READ currentLanguage WRITE setCurrentLanguage NOTIFY currentLanguageChanged FINAL)
public:
typedef QPair<QString, QString> LangItem; // example: <"zh_CN", "qrc://i18n/xxx_zh_CN.qm">

View File

@ -9,7 +9,6 @@ class RibbonTheme : public QQuickItem
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
QML_NAMED_ELEMENT(RibbonTheme)
Q_PROPERTY(bool isDarkMode READ isDarkMode NOTIFY isDarkModeChanged FINAL)
Q_PROPERTY_RW(RibbonThemeType::ThemeMode,themeMode)

View File

@ -10,7 +10,7 @@ class RibbonUI : public QQuickItem
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
QML_NAMED_ELEMENT(RibbonUI)
Q_PROPERTY_R(QString, version)
Q_PROPERTY_R(int, qtVersion)
Q_PROPERTY_R(int, isWin11)