gui/settings: Add audio tab translation (#3215)

* gui/settings dialog: Fixed a bug.

* gui/settings dialog: Fixed a bug.
This commit is contained in:
HuanJiCanShang 2024-02-19 02:10:48 +08:00 committed by GitHub
parent 6ce9b6598e
commit 1b0e65e66d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -817,7 +817,7 @@ void draw_settings_dialog(GuiState &gui, EmuEnvState &emuenv) {
// Audio
ImGui::PushStyleColor(ImGuiCol_Text, GUI_COLOR_TEXT_MENUBAR);
if (ImGui::BeginTabItem("Audio")) {
if (ImGui::BeginTabItem(lang.audio["title"].c_str())) {
ImGui::PopStyleColor();
ImGui::Spacing();
if (!emuenv.io.app_path.empty())

View File

@ -573,6 +573,7 @@ struct LangState {
{ "fps_hack_description", "Game hack which allows some games running at 30 FPS to run at 60 FPS on the emulator.\nNote that this is a hack and will only work on some games.\nOn other games, it may have no effect or make them run twice as fast." }
};
std::map<std::string, std::string> audio = {
{ "title", "Audio" },
{ "audio_backend", "Audio Backend" },
{ "select_audio_backend", "Select your preferred audio backend." },
{ "audio_volume", "Audio Volume" },