mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
This commit is contained in:
commit
9e96c7d9b8
23 changed files with 132 additions and 101 deletions
|
|
@ -2131,7 +2131,8 @@ void Tree::update_column(int p_col) {
|
|||
}
|
||||
|
||||
columns.write[p_col].xl_title = atr(columns[p_col].title);
|
||||
columns.write[p_col].text_buf->add_string(columns[p_col].xl_title, theme_cache.tb_font, theme_cache.tb_font_size, columns[p_col].language);
|
||||
const String &lang = columns[p_col].language.is_empty() ? _get_locale() : columns[p_col].language;
|
||||
columns.write[p_col].text_buf->add_string(columns[p_col].xl_title, theme_cache.tb_font, theme_cache.tb_font_size, lang);
|
||||
columns.write[p_col].cached_minimum_width_dirty = true;
|
||||
}
|
||||
|
||||
|
|
@ -2200,7 +2201,8 @@ void Tree::update_item_cell(TreeItem *p_item, int p_col) const {
|
|||
} else {
|
||||
font_size = theme_cache.font_size;
|
||||
}
|
||||
p_item->cells.write[p_col].text_buf->add_string(valtext, font, font_size, p_item->cells[p_col].language);
|
||||
const String &lang = p_item->cells[p_col].language.is_empty() ? _get_locale() : p_item->cells[p_col].language;
|
||||
p_item->cells.write[p_col].text_buf->add_string(valtext, font, font_size, lang);
|
||||
|
||||
BitField<TextServer::LineBreakFlag> break_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_TRIM_START_EDGE_SPACES | TextServer::BREAK_TRIM_END_EDGE_SPACES;
|
||||
switch (p_item->cells.write[p_col].autowrap_mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue