save-overlays: add localization

This commit is contained in:
Megamouse 2021-04-24 16:00:24 +02:00
parent 5720a32bc5
commit 14b6d6291b
5 changed files with 22 additions and 15 deletions

View file

@ -209,7 +209,7 @@ namespace rsx
if (listSet && listSet->newData)
{
const char* title = "Create New";
std::string title = get_localized_string(localized_string_id::CELL_SAVEDATA_NEW_SAVED_DATA_TITLE);
std::vector<u8> icon;
int id = resource_config::standard_image_resource::new_entry;
@ -232,7 +232,7 @@ namespace rsx
id = image_resource_id::raw_image;
}
std::unique_ptr<overlay_element> new_stub = std::make_unique<save_dialog_entry>(title, "Select to create a new entry", "", id, icon);
std::unique_ptr<overlay_element> new_stub = std::make_unique<save_dialog_entry>(title, get_localized_string(localized_string_id::CELL_SAVEDATA_NEW_SAVED_DATA_SUB_TITLE), "", id, icon);
m_list->add_entry(new_stub);
}
@ -247,7 +247,7 @@ namespace rsx
if (m_list->m_items.empty())
{
m_no_saves_text = std::make_unique<label>("There is no saved data.");
m_no_saves_text = std::make_unique<label>(get_localized_string(localized_string_id::CELL_SAVEDATA_NO_DATA));
m_no_saves_text->set_font("Arial", 20);
m_no_saves_text->align_text(overlay_element::text_align::center);
m_no_saves_text->set_pos(m_list->x, m_list->y + m_list->h / 2);