Mark GDScript and shader warnings for translation

This commit is contained in:
kobewi
2025-06-24 18:03:52 +02:00
parent 987832be46
commit 015cc38912
4 changed files with 60 additions and 63 deletions

View File

@@ -2964,6 +2964,12 @@ GDScriptLanguage::GDScriptLanguage() {
String path = GDScriptWarning::get_settings_path_from_code(code);
GLOBAL_DEF(GDScriptWarning::get_property_info(code), default_enabled);
}
#ifndef DISABLE_DEPRECATED
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/property_used_as_function", true);
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/constant_used_as_function", true);
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/function_used_as_property", true);
#endif
#endif // DEBUG_ENABLED
}