mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #111742 from Calinou/editor-capitalization-add-stop-word
Add "with" stop word to the editor property name processor
This commit is contained in:
@@ -330,8 +330,8 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() {
|
|||||||
capitalize_string_remaps["yz"] = "YZ";
|
capitalize_string_remaps["yz"] = "YZ";
|
||||||
|
|
||||||
// Articles, conjunctions, prepositions.
|
// Articles, conjunctions, prepositions.
|
||||||
// The following initialization is parsed in `editor/translations/scripts/common.py` with a regex.
|
// The following initialization is parsed in https://github.com/godotengine/godot-editor-l10n/blob/main/scripts/common.py
|
||||||
// The word definition format should be kept synced with the regex.
|
// with a regex. The word definition format should be kept synced with the regex.
|
||||||
stop_words = LocalVector<String>({
|
stop_words = LocalVector<String>({
|
||||||
"a",
|
"a",
|
||||||
"an",
|
"an",
|
||||||
@@ -350,6 +350,7 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() {
|
|||||||
"the",
|
"the",
|
||||||
"then",
|
"then",
|
||||||
"to",
|
"to",
|
||||||
|
"with",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Translation context associated with a name.
|
// Translation context associated with a name.
|
||||||
@@ -358,8 +359,8 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() {
|
|||||||
// - `Class::full/property/path`
|
// - `Class::full/property/path`
|
||||||
// In case a class name is needed to distinguish between usages, all usages should use the second format.
|
// 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 following initialization is parsed in https://github.com/godotengine/godot-editor-l10n/blob/main/scripts/common.py
|
||||||
// The map name and value definition format should be kept synced with the regex.
|
// 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"]["constant_force"] = "Physics";
|
||||||
translation_contexts["force"]["force/8_bit"] = "Enforce";
|
translation_contexts["force"]["force/8_bit"] = "Enforce";
|
||||||
translation_contexts["force"]["force/mono"] = "Enforce";
|
translation_contexts["force"]["force/mono"] = "Enforce";
|
||||||
|
|||||||
Reference in New Issue
Block a user