mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-06 18:43:30 +00:00
Fix the translation change for the default model. (#2815)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
bec5045a7e
commit
a910d65755
@ -187,7 +187,12 @@ Rectangle {
|
|||||||
visible: false
|
visible: false
|
||||||
MyComboBox {
|
MyComboBox {
|
||||||
id: comboSort
|
id: comboSort
|
||||||
model: [qsTr("Default"), qsTr("Likes"), qsTr("Downloads"), qsTr("Recent")]
|
model: ListModel {
|
||||||
|
ListElement { name: qsTr("Default") }
|
||||||
|
ListElement { name: qsTr("Likes") }
|
||||||
|
ListElement { name: qsTr("Downloads") }
|
||||||
|
ListElement { name: qsTr("Recent") }
|
||||||
|
}
|
||||||
currentIndex: ModelList.discoverSort
|
currentIndex: ModelList.discoverSort
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
@ -207,7 +212,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
MyComboBox {
|
MyComboBox {
|
||||||
id: comboSortDirection
|
id: comboSortDirection
|
||||||
model: [qsTr("Asc"), qsTr("Desc")]
|
model: ListModel {
|
||||||
|
ListElement { name: qsTr("Asc") }
|
||||||
|
ListElement { name: qsTr("Desc") }
|
||||||
|
}
|
||||||
currentIndex: {
|
currentIndex: {
|
||||||
if (ModelList.discoverSortDirection === 1)
|
if (ModelList.discoverSortDirection === 1)
|
||||||
return 0
|
return 0
|
||||||
@ -235,7 +243,15 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
MyComboBox {
|
MyComboBox {
|
||||||
id: comboLimit
|
id: comboLimit
|
||||||
model: ["5", "10", "20", "50", "100", qsTr("None")]
|
model: ListModel {
|
||||||
|
ListElement { name: "5" }
|
||||||
|
ListElement { name: "10" }
|
||||||
|
ListElement { name: "20" }
|
||||||
|
ListElement { name: "50" }
|
||||||
|
ListElement { name: "100" }
|
||||||
|
ListElement { name: qsTr("None") }
|
||||||
|
}
|
||||||
|
|
||||||
currentIndex: {
|
currentIndex: {
|
||||||
if (ModelList.discoverLimit === 5)
|
if (ModelList.discoverLimit === 5)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -108,7 +108,11 @@ MySettingsTab {
|
|||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
// NOTE: indices match values of ChatTheme enum, keep them in sync
|
// NOTE: indices match values of ChatTheme enum, keep them in sync
|
||||||
model: [qsTr("Light"), qsTr("Dark"), qsTr("LegacyDark")]
|
model: ListModel {
|
||||||
|
ListElement { name: qsTr("Light") }
|
||||||
|
ListElement { name: qsTr("Dark") }
|
||||||
|
ListElement { name: qsTr("LegacyDark") }
|
||||||
|
}
|
||||||
Accessible.name: themeLabel.text
|
Accessible.name: themeLabel.text
|
||||||
Accessible.description: themeLabel.helpText
|
Accessible.description: themeLabel.helpText
|
||||||
function updateModel() {
|
function updateModel() {
|
||||||
@ -143,7 +147,11 @@ MySettingsTab {
|
|||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
// NOTE: indices match values of FontSize enum, keep them in sync
|
// NOTE: indices match values of FontSize enum, keep them in sync
|
||||||
model: [qsTr("Small"), qsTr("Medium"), qsTr("Large")]
|
model: ListModel {
|
||||||
|
ListElement { name: qsTr("Small") }
|
||||||
|
ListElement { name: qsTr("Medium") }
|
||||||
|
ListElement { name: qsTr("Large") }
|
||||||
|
}
|
||||||
Accessible.name: fontLabel.text
|
Accessible.name: fontLabel.text
|
||||||
Accessible.description: fontLabel.helpText
|
Accessible.description: fontLabel.helpText
|
||||||
function updateModel() {
|
function updateModel() {
|
||||||
@ -313,6 +321,12 @@ MySettingsTab {
|
|||||||
defaultModelBox.updateModel()
|
defaultModelBox.updateModel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Connections {
|
||||||
|
target: MySettings
|
||||||
|
function onLanguageAndLocaleChanged() {
|
||||||
|
defaultModelBox.rebuildModel()
|
||||||
|
}
|
||||||
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: ModelList
|
target: ModelList
|
||||||
function onSelectableModelListChanged() {
|
function onSelectableModelListChanged() {
|
||||||
@ -335,7 +349,11 @@ MySettingsTab {
|
|||||||
Layout.maximumWidth: 400
|
Layout.maximumWidth: 400
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
// NOTE: indices match values of SuggestionMode enum, keep them in sync
|
// NOTE: indices match values of SuggestionMode enum, keep them in sync
|
||||||
model: [ qsTr("When chatting with LocalDocs"), qsTr("Whenever possible"), qsTr("Never") ]
|
model: ListModel {
|
||||||
|
ListElement { name: qsTr("When chatting with LocalDocs") }
|
||||||
|
ListElement { name: qsTr("Whenever possible") }
|
||||||
|
ListElement { name: qsTr("Never") }
|
||||||
|
}
|
||||||
Accessible.name: suggestionModeLabel.text
|
Accessible.name: suggestionModeLabel.text
|
||||||
Accessible.description: suggestionModeLabel.helpText
|
Accessible.description: suggestionModeLabel.helpText
|
||||||
onActivated: {
|
onActivated: {
|
||||||
|
Loading…
Reference in New Issue
Block a user