1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Remove spaces and punctuation from the beginning of translatable strings.

This commit is contained in:
bruvzg
2024-08-22 20:47:26 +03:00
parent 568589c9d8
commit fba7ad8c7b
3 changed files with 5 additions and 3 deletions

View File

@@ -922,7 +922,8 @@ void FontPreview::_notification(int p_what) {
name = vformat("%s (%s)", prev_font->get_font_name(), prev_font->get_font_style_name());
}
if (prev_font->is_class("FontVariation")) {
name += " " + TTR(" - Variation");
// TRANSLATORS: This refers to variable font config, appended to the font name.
name += " - " + TTR("Variation");
}
font->draw_string(get_canvas_item(), Point2(0, font->get_height(font_size) + 2 * EDSCALE), name, HORIZONTAL_ALIGNMENT_CENTER, get_size().x, font_size, text_color);