From b0c8c955f2f3bfc69b5db0de00c7e0a73614f2e9 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 16 Oct 2025 22:34:02 +0200 Subject: [PATCH] Add "with" stop word to the editor property name processor This makes properties such as "Convert Colors with Editor Theme" have better-looking capitalization in the inspector and import options. --- editor/inspector/editor_property_name_processor.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/editor/inspector/editor_property_name_processor.cpp b/editor/inspector/editor_property_name_processor.cpp index 4250bd50daf7..19569a722e53 100644 --- a/editor/inspector/editor_property_name_processor.cpp +++ b/editor/inspector/editor_property_name_processor.cpp @@ -328,8 +328,8 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() { capitalize_string_remaps["yz"] = "YZ"; // Articles, conjunctions, prepositions. - // The following initialization is parsed in `editor/translations/scripts/common.py` with a regex. - // The word definition format should be kept synced with the regex. + // The following initialization is parsed in https://github.com/godotengine/godot-editor-l10n/blob/main/scripts/common.py + // with a regex. The word definition format should be kept synced with the regex. stop_words = LocalVector({ "a", "an", @@ -348,6 +348,7 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() { "the", "then", "to", + "with", }); // Translation context associated with a name. @@ -356,8 +357,8 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() { // - `Class::full/property/path` // In case a class name is needed to distinguish between usages, all usages should use the second format. // - // The following initialization is parsed in `editor/translations/scripts/common.py` with a regex. - // The map name and value definition format should be kept synced with the regex. + // The following initialization is parsed in https://github.com/godotengine/godot-editor-l10n/blob/main/scripts/common.py + // with a regex. The map name and value definition format should be kept synced with the regex. translation_contexts["force"]["constant_force"] = "Physics"; translation_contexts["force"]["force/8_bit"] = "Enforce"; translation_contexts["force"]["force/mono"] = "Enforce";