2010-08-06 05:46:09 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
|
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
|
|
|
*
|
|
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-09-01 20:31:46 +00:00
|
|
|
#include <wx/wx.h>
|
2021-09-03 10:43:33 +00:00
|
|
|
#include "common/Pcsx2Defs.h" // __fastcall
|
2010-08-06 05:46:09 +00:00
|
|
|
|
2016-11-12 15:28:37 +00:00
|
|
|
bool pxIsEnglish(int id)
|
2010-08-06 05:46:09 +00:00
|
|
|
{
|
2021-06-29 16:55:24 +00:00
|
|
|
return (id == wxLANGUAGE_ENGLISH || id == wxLANGUAGE_ENGLISH_US);
|
2010-08-06 05:46:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------
|
|
|
|
// pxExpandMsg -- an Iconized Text Translator
|
2012-08-10 10:10:55 +00:00
|
|
|
// Was replaced by a standard implementation of wxGetTranslation
|
2010-08-06 05:46:09 +00:00
|
|
|
// --------------------------------------------------------------------------------------
|
2021-06-29 16:55:24 +00:00
|
|
|
const wxChar *__fastcall pxExpandMsg(const wxChar *message)
|
2010-08-06 05:46:09 +00:00
|
|
|
{
|
2021-06-29 16:55:24 +00:00
|
|
|
return wxGetTranslation(message).wc_str();
|
2010-08-06 05:46:09 +00:00
|
|
|
}
|
|
|
|
|
2016-11-12 15:28:37 +00:00
|
|
|
const wxChar *__fastcall pxGetTranslation(const wxChar *message)
|
2010-08-06 05:46:09 +00:00
|
|
|
{
|
2021-06-29 16:55:24 +00:00
|
|
|
return wxGetTranslation(message).wc_str();
|
2010-08-06 05:46:09 +00:00
|
|
|
}
|