mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Qt/overlays: use Argument list for translatable strings
This is somewhat crippled for now. It only takes a single argument in the callback
This commit is contained in:
parent
460a933267
commit
d0ffbbfc4d
11 changed files with 59 additions and 73 deletions
|
@ -359,14 +359,14 @@ void gui_application::InitializeCallbacks()
|
|||
}
|
||||
};
|
||||
|
||||
callbacks.get_localized_string = [](localized_string_id id) -> std::string
|
||||
callbacks.get_localized_string = [](localized_string_id id, const char* args) -> std::string
|
||||
{
|
||||
return localized_emu::get_string(id);
|
||||
return localized_emu::get_string(id, args);
|
||||
};
|
||||
|
||||
callbacks.get_localized_u32string = [](localized_string_id id) -> std::u32string
|
||||
callbacks.get_localized_u32string = [](localized_string_id id, const char* args) -> std::u32string
|
||||
{
|
||||
return localized_emu::get_u32string(id);
|
||||
return localized_emu::get_u32string(id, args);
|
||||
};
|
||||
|
||||
Emu.SetCallbacks(std::move(callbacks));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue