mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00: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:
commit
fede39884d
1 changed files with 5 additions and 4 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue