Start of hackery to reduce differences between DarkAudacity and Audacity

This commit is contained in:
James Crook 2016-09-10 23:39:09 +01:00
parent 8468dfb570
commit 0361169839
3 changed files with 19 additions and 0 deletions

View File

@ -171,6 +171,16 @@ void QuitAudacity();
// Marks strings for extraction only...must use wxGetTranslation() to translate.
#define XO(s) wxT(s)
#ifndef IN_RC
#include <wx/defs.h>
#include <wx/string.h>
const wxString& GetCustomTranslation(const wxString& str1 );
#define WXINTL_NO_GETTEXT_MACRO
#define _(s) GetCustomTranslation((s))
#endif
// This renames a good use of this C++ keyword that we don't need to review when hunting for leaks.
#define PROHIBITED = delete

View File

@ -9,3 +9,11 @@
**********************************************************************/
#include "AudacityHeaders.h"
const wxString& GetCustomTranslation(const wxString& str1)
{
return wxGetTranslation( str1 );
//return str1;
//return wxString( "AAA" );
}

View File

@ -1,5 +1,6 @@
AudacityLogo ICON "audacity.ico"
#include "wx/msw/wx.rc"
#define IN_RC
#include "Audacity.h"
/////////////////////////////////////////////////////////////////////////////
//