Audacity  2.2.2
Classes | Macros | Functions
Internat.h File Reference
#include <wx/arrstr.h>
#include <wx/string.h>
#include <wx/longlong.h>
#include <algorithm>
#include "Audacity.h"

Go to the source code of this file.


class  Internat
 Internationalisation support. More...
class  TranslatedInternalString


#define _TS(s)   GetCustomSubstitution( s )
#define XO(s)   wxT(s)
#define _(s)   GetCustomTranslation((s))
#define wxPLURAL(sing, plur, n)   wxGetTranslation( wxT(sing), wxT(plur), n)
#define _NoAcc(X)   Internat::StripAccelerators(_(X))
#define OSFILENAME(X)   ((char *) (const char *)(X).mb_str())
#define UTF8CTOWX(X)   wxString((X), wxConvUTF8)
#define LAT1CTOWX(X)   wxString((X), wxConvISO8859_1)


AUDACITY_DLL_API const wxString & GetCustomTranslation (const wxString &str1)
AUDACITY_DLL_API const wxString & GetCustomSubstitution (const wxString &str1)
wxArrayString LocalizedStrings (const IdentInterfaceSymbol strings[], size_t nStrings)

Macro Definition Documentation

#define _ (   s)    GetCustomTranslation((s))

Definition at line 58 of file Internat.h.

#define _NoAcc (   X)    Internat::StripAccelerators(_(X))

Definition at line 158 of file Internat.h.

#define _TS (   s)    GetCustomSubstitution( s )

Definition at line 30 of file Internat.h.

Referenced by AudacityLogger::DoLogText(), and AudacityProject::SetProjectTitle().

#define LAT1CTOWX (   X)    wxString((X), wxConvISO8859_1)
#define OSFILENAME (   X)    ((char *) (const char *)(X).mb_str())
#define OSINPUT (   X)    OSFILENAME(X)

Definition at line 174 of file Internat.h.

Referenced by FileNames::PathFromAddr().

#define OSOUTPUT (   X)    OSFILENAME(X)

Definition at line 175 of file Internat.h.

Referenced by MP3Exporter::PutInfoTag().

#define UTF8CTOWX (   X)    wxString((X), wxConvUTF8)
#define wxPLURAL (   sing,
)    wxGetTranslation( wxT(sing), wxT(plur), n)
#define XO (   s)    wxT(s)

Function Documentation

AUDACITY_DLL_API const wxString& GetCustomSubstitution ( const wxString &  str1)

Definition at line 67 of file Internat.cpp.

Referenced by GetCustomTranslation().

68 {
69  return str1 ;
70 }
AUDACITY_DLL_API const wxString& GetCustomTranslation ( const wxString &  str1)

Definition at line 75 of file Internat.cpp.

76 {
77  const wxString& str2 = wxGetTranslation( str1 );
78  return GetCustomSubstitution( str2 );
79 }
AUDACITY_DLL_API const wxString & GetCustomSubstitution(const wxString &str1)
Definition: Internat.cpp:67
wxArrayString LocalizedStrings ( const IdentInterfaceSymbol  strings[],
size_t  nStrings