String: Remove TTR and DTR defines in non-tools build
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
This commit is contained in:
parent
2e85105959
commit
7119d355eb
65 changed files with 202 additions and 207 deletions
|
|
@ -1641,18 +1641,18 @@ TypedArray<String> AnimationTree::get_configuration_warnings() const {
|
|||
TypedArray<String> warnings = Node::get_configuration_warnings();
|
||||
|
||||
if (!root.is_valid()) {
|
||||
warnings.push_back(TTR("No root AnimationNode for the graph is set."));
|
||||
warnings.push_back(RTR("No root AnimationNode for the graph is set."));
|
||||
}
|
||||
|
||||
if (!has_node(animation_player)) {
|
||||
warnings.push_back(TTR("Path to an AnimationPlayer node containing animations is not set."));
|
||||
warnings.push_back(RTR("Path to an AnimationPlayer node containing animations is not set."));
|
||||
} else {
|
||||
AnimationPlayer *player = Object::cast_to<AnimationPlayer>(get_node(animation_player));
|
||||
|
||||
if (!player) {
|
||||
warnings.push_back(TTR("Path set for AnimationPlayer does not lead to an AnimationPlayer node."));
|
||||
warnings.push_back(RTR("Path set for AnimationPlayer does not lead to an AnimationPlayer node."));
|
||||
} else if (!player->has_node(player->get_root())) {
|
||||
warnings.push_back(TTR("The AnimationPlayer root node is not a valid node."));
|
||||
warnings.push_back(RTR("The AnimationPlayer root node is not a valid node."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue