From bc759934cb115bd82d27a22e76a52b9d8410664d Mon Sep 17 00:00:00 2001 From: fledge68 Date: Wed, 10 Jul 2013 17:55:44 +0000 Subject: [PATCH] - made dir, save, cancel translatable and increased save and cancel btn sizes. thanks again Etheboss --- source/menu/menu_explorer.cpp | 13 +++++-------- wii/wiiflow/Languages/english.ini | 3 +++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/menu/menu_explorer.cpp b/source/menu/menu_explorer.cpp index 74111891..292fbee4 100644 --- a/source/menu/menu_explorer.cpp +++ b/source/menu/menu_explorer.cpp @@ -254,8 +254,8 @@ string folderName=""; void CMenu::_initFolderExplorer() { m_folderExplorerLblSelFolder = _addLabel("EXPLORER/SELECTED_FOLDER", theme.lblFont, L"", 30, 50, 560, 40, theme.lblFontColor, FTGX_JUSTIFY_LEFT); - m_folderExplorerBtnSave = _addButton("EXPLORER/SAVE_BTN", theme.btnFont, L"Save", 530, 40, 80, 40, theme.btnFontColor); - m_folderExplorerBtnCancel = _addButton("EXPLORER/CANCEL_BTN", theme.btnFont, L"Cancel", 530, 90, 80, 40, theme.btnFontColor); + m_folderExplorerBtnSave = _addButton("EXPLORER/SAVE_BTN", theme.btnFont, L"Save", 520, 40, 100, 40, theme.btnFontColor); + m_folderExplorerBtnCancel = _addButton("EXPLORER/CANCEL_BTN", theme.btnFont, L"Cancel", 520, 90, 100, 40, theme.btnFontColor); _hideFolderExplorer(true); _textFolderExplorer(); @@ -294,10 +294,12 @@ void CMenu::_showFolderExplorer(void) void CMenu::_textFolderExplorer(void) { + m_btnMgr.setText(m_folderExplorerBtnSave, _t("cfgne34", L"Save")); + m_btnMgr.setText(m_folderExplorerBtnCancel, _t("cfgne35", L"Cancel")); for(u8 i = 0; i < 8; ++i) m_btnMgr.setText(entries[i], L" "); m_btnMgr.setText(entries[1], L". . ."); - m_btnMgr.setText(m_folderExplorerLblSelFolder, wfmt(L"Dir = %.32s", folderName.c_str())); + m_btnMgr.setText(m_folderExplorerLblSelFolder, wfmt(_fmt("cfgne36",L"Dir = %.32s"), folderName.c_str())); } void CMenu::_refreshFolderExplorer(s8 direction) @@ -379,12 +381,7 @@ string CMenu::_FolderExplorer(void) { //only when save is clicked do we set path to dir if(dir[0] != '\0') - { path = dir; - //check to make sure it's not just device+partition - //if(path.find_first_of("/") == path.find_last_of("/")) - // path = ""; - } break; } else if(m_btnMgr.selected(m_folderExplorerBtnCancel)) diff --git a/wii/wiiflow/Languages/english.ini b/wii/wiiflow/Languages/english.ini index 7dafe819..80d21dc7 100644 --- a/wii/wiiflow/Languages/english.ini +++ b/wii/wiiflow/Languages/english.ini @@ -135,6 +135,9 @@ cfgne30=Flashing save files finished! cfgne31=Select Partition cfgne32=Change Nand cfgne33=Change Saves Nand +cfgne34=Save +cfgne35=Cancel +cfgne36=Dir = %.32s cfgp1=Game Partition cfgp3=Init network on boot cfgpl1=Select Plugins