Merge pull request #48791 from foxydevloper/fix-sort-translations

Make Sort by X strings translatable
This commit is contained in:
Rémi Verschelde 2021-05-17 15:55:16 +02:00 committed by GitHub
commit 45e0f9fd52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -2735,12 +2735,12 @@ MenuButton *FileSystemDock::_create_file_menu_button() {
PopupMenu *p = button->get_popup();
p->connect("id_pressed", callable_mp(this, &FileSystemDock::_file_sort_popup));
p->add_radio_check_item("Sort by Name (Ascending)", FILE_SORT_NAME);
p->add_radio_check_item("Sort by Name (Descending)", FILE_SORT_NAME_REVERSE);
p->add_radio_check_item("Sort by Type (Ascending)", FILE_SORT_TYPE);
p->add_radio_check_item("Sort by Type (Descending)", FILE_SORT_TYPE_REVERSE);
p->add_radio_check_item("Sort by Last Modified", FILE_SORT_MODIFIED_TIME);
p->add_radio_check_item("Sort by First Modified", FILE_SORT_MODIFIED_TIME_REVERSE);
p->add_radio_check_item(TTR("Sort by Name (Ascending)"), FILE_SORT_NAME);
p->add_radio_check_item(TTR("Sort by Name (Descending)"), FILE_SORT_NAME_REVERSE);
p->add_radio_check_item(TTR("Sort by Type (Ascending)"), FILE_SORT_TYPE);
p->add_radio_check_item(TTR("Sort by Type (Descending)"), FILE_SORT_TYPE_REVERSE);
p->add_radio_check_item(TTR("Sort by Last Modified"), FILE_SORT_MODIFIED_TIME);
p->add_radio_check_item(TTR("Sort by First Modified"), FILE_SORT_MODIFIED_TIME_REVERSE);
p->set_item_checked(file_sort, true);
return button;
}