FullscreenUI: Allow changing UI language

This commit is contained in:
Stenzek
2023-11-29 20:26:36 +10:00
parent e806d939ae
commit 325dcc81ca
12 changed files with 111 additions and 47 deletions

View File

@ -75,6 +75,12 @@ std::unique_ptr<AudioStream> CreateAudioStream(AudioBackend backend, u32 sample_
void ReportDebuggerMessage(const std::string_view& message);
void ReportFormattedDebuggerMessage(const char* format, ...);
/// Returns a list of supported languages and codes (suffixes for translation files).
std::span<const std::pair<const char*, const char*>> GetAvailableLanguageList();
/// Refreshes the UI when the language is changed.
bool ChangeLanguage(const char* new_language);
/// Displays a loading screen with the logo, rendered with ImGui. Use when executing possibly-time-consuming tasks
/// such as compiling shaders when starting up.
void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1, int progress_value = -1);