Permalink
Browse files

Make dev menu pop-up title translatable

  • Loading branch information...
vnctdj committed Aug 17, 2017
1 parent b31b76c commit 7f37c40382b34f121131302818ed346d52e143e3
Showing with 4 additions and 2 deletions.
  1. +2 −1 UI/DevScreens.h
  2. +2 −1 UI/EmuScreen.cpp
View
@@ -23,14 +23,15 @@
#include <vector>
#include "file/file_util.h"
#include "i18n/i18n.h"
#include "ui/ui_screen.h"
#include "UI/MiscScreens.h"
#include "GPU/Common/ShaderCommon.h"
class DevMenu : public PopupScreen {
public:
DevMenu() : PopupScreen("Dev Tools") {}
DevMenu(I18NCategory *i18n) : PopupScreen(i18n->T("Dev Tools")) {}
void CreatePopupContents(UI::ViewGroup *parent) override;
void dialogFinished(const Screen *dialog, DialogResult result) override;
View
@@ -787,7 +787,8 @@ void EmuScreen::CreateViews() {
UI::EventReturn EmuScreen::OnDevTools(UI::EventParams &params) {
releaseButtons();
DevMenu *devMenu = new DevMenu();
I18NCategory *dev = GetI18NCategory("Developer");
DevMenu *devMenu = new DevMenu(dev);
if (params.v)
devMenu->SetPopupOrigin(params.v);
screenManager()->push(devMenu);

0 comments on commit 7f37c40

Please sign in to comment.