Merge pull request #80362 from Calinou/string-use-unicode-compiletime

Use compile-time Unicode string conversion
This commit is contained in:
Rémi Verschelde 2023-08-07 14:55:58 +02:00
commit 169a28bd0f
No known key found for this signature in database
GPG key ID: C3336907360768E1
11 changed files with 19 additions and 19 deletions

View file

@ -2822,7 +2822,7 @@ void Node3DEditorViewport::_notification(int p_what) {
}
if (show_info) {
const String viewport_size = vformat(String::utf8("%d × %d"), viewport->get_size().x, viewport->get_size().y);
const String viewport_size = vformat(U"%d × %d", viewport->get_size().x, viewport->get_size().y);
String text;
text += vformat(TTR("X: %s\n"), rtos(current_camera->get_position().x).pad_decimals(1));
text += vformat(TTR("Y: %s\n"), rtos(current_camera->get_position().y).pad_decimals(1));