mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Apply review suggestions
This commit is contained in:
parent
78ae6d6ed0
commit
67f7e5d042
@ -5,7 +5,7 @@
|
||||
"description" : "Format used to define main mod file (mod.json) in VCMI",
|
||||
"required" : [ "name", "description", "version", "author", "contact", "modType" ],
|
||||
"definitions" : {
|
||||
"localizeable" : {
|
||||
"localizable" : {
|
||||
"type":"object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "name", "description", "author", "modType" ],
|
||||
@ -114,23 +114,23 @@
|
||||
},
|
||||
|
||||
"english" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
"$ref" : "#/definitions/localizable"
|
||||
},
|
||||
|
||||
"german" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
"$ref" : "#/definitions/localizable"
|
||||
},
|
||||
|
||||
"polish" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
"$ref" : "#/definitions/localizable"
|
||||
},
|
||||
|
||||
"russian" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
"$ref" : "#/definitions/localizable"
|
||||
},
|
||||
|
||||
"ukrainian" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
"$ref" : "#/definitions/localizable"
|
||||
},
|
||||
|
||||
"artifacts": {
|
||||
|
@ -323,8 +323,8 @@ void CSettingsView::on_comboBoxLanguage_currentIndexChanged(int index)
|
||||
Settings node = settings.write["general"]["language"];
|
||||
node->String() = languageTagList[index];
|
||||
|
||||
if ( qApp->activeWindow() && dynamic_cast<MainWindow*>(qApp->activeWindow()) )
|
||||
dynamic_cast<MainWindow*>(qApp->activeWindow())->updateTranslation();
|
||||
if ( auto mainWindow = dynamic_cast<MainWindow*>(qApp->activeWindow()) )
|
||||
mainWindow->updateTranslation();
|
||||
}
|
||||
|
||||
void CSettingsView::changeEvent(QEvent *event)
|
||||
|
Loading…
Reference in New Issue
Block a user