You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add option to add built-in strings in the POT generation
This commit is contained in:
@@ -1824,14 +1824,14 @@ void CodeEdit::create_code_region() {
|
||||
}
|
||||
int to_line = get_selection_to_line(caret_idx);
|
||||
set_line(to_line, get_line(to_line) + "\n" + code_region_end_string);
|
||||
insert_line_at(from_line, code_region_start_string + " " + RTR("New Code Region"));
|
||||
insert_line_at(from_line, code_region_start_string + " " + atr(ETR("New Code Region")));
|
||||
fold_line(from_line);
|
||||
}
|
||||
|
||||
// Select name of the first region to allow quick edit.
|
||||
remove_secondary_carets();
|
||||
set_caret_line(first_region_start);
|
||||
int tag_length = code_region_start_string.length() + RTR("New Code Region").length() + 1;
|
||||
int tag_length = code_region_start_string.length() + atr(ETR("New Code Region")).length() + 1;
|
||||
set_caret_column(tag_length);
|
||||
select(first_region_start, code_region_start_string.length() + 1, first_region_start, tag_length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user