mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
TranslatableString.h does not include Identifier.h
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#ifndef __AUDACITY_COMPONENT_INTERFACE_H__
|
#ifndef __AUDACITY_COMPONENT_INTERFACE_H__
|
||||||
#define __AUDACITY_COMPONENT_INTERFACE_H__
|
#define __AUDACITY_COMPONENT_INTERFACE_H__
|
||||||
|
|
||||||
|
#include "Identifier.h"
|
||||||
#include "audacity/Types.h"
|
#include "audacity/Types.h"
|
||||||
#include <wx/string.h> // member variables
|
#include <wx/string.h> // member variables
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Paul Licameli -- split from ProjectFileIO.h
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "ClientData.h"
|
#include "ClientData.h"
|
||||||
|
#include "Identifier.h"
|
||||||
|
|
||||||
struct sqlite3;
|
struct sqlite3;
|
||||||
struct sqlite3_stmt;
|
struct sqlite3_stmt;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "audacity/Types.h"
|
#include "audacity/Types.h"
|
||||||
|
#include "Identifier.h"
|
||||||
|
|
||||||
//#include <mutex>
|
//#include <mutex>
|
||||||
#include "MemoryX.h"
|
#include "MemoryX.h"
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "Languages.h"
|
#include "Languages.h"
|
||||||
#include "Identifier.h"
|
|
||||||
#include "MemoryX.h"
|
#include "MemoryX.h"
|
||||||
|
|
||||||
#include "Internat.h"
|
#include "Internat.h"
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
class wxArrayString;
|
class wxArrayString;
|
||||||
class wxString;
|
class wxString;
|
||||||
|
|
||||||
#include "audacity/Types.h"
|
#include "Identifier.h"
|
||||||
|
#include "Internat.h"
|
||||||
|
|
||||||
namespace Languages {
|
namespace Languages {
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "audacity/Types.h"
|
#include "audacity/Types.h"
|
||||||
|
#include "Identifier.h"
|
||||||
|
|
||||||
class wxArrayString;
|
class wxArrayString;
|
||||||
class wxDynamicLibrary;
|
class wxDynamicLibrary;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#ifndef __AUDACITY_PROJECT__
|
#ifndef __AUDACITY_PROJECT__
|
||||||
#define __AUDACITY_PROJECT__
|
#define __AUDACITY_PROJECT__
|
||||||
|
|
||||||
|
#include "Identifier.h"
|
||||||
|
|
||||||
#include "ClientData.h" // to inherit
|
#include "ClientData.h" // to inherit
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Paul Licameli split from AudacityProject.h
|
|||||||
|
|
||||||
#include <wx/event.h> // to inherit
|
#include <wx/event.h> // to inherit
|
||||||
#include "ClientData.h" // to inherit
|
#include "ClientData.h" // to inherit
|
||||||
|
#include "Identifier.h"
|
||||||
|
|
||||||
class wxTimer;
|
class wxTimer;
|
||||||
class wxTimerEvent;
|
class wxTimerEvent;
|
||||||
|
|||||||
@@ -9,10 +9,16 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "TranslatableString.h"
|
#include "TranslatableString.h"
|
||||||
|
#include "Identifier.h"
|
||||||
#include <wx/translation.h>
|
#include <wx/translation.h>
|
||||||
|
|
||||||
const wxChar *const TranslatableString::NullContextName = wxT("*");
|
const wxChar *const TranslatableString::NullContextName = wxT("*");
|
||||||
|
|
||||||
|
Identifier TranslatableString::MSGID() const
|
||||||
|
{
|
||||||
|
return Identifier{ mMsgid };
|
||||||
|
}
|
||||||
|
|
||||||
const TranslatableString::Formatter
|
const TranslatableString::Formatter
|
||||||
TranslatableString::NullContextFormatter {
|
TranslatableString::NullContextFormatter {
|
||||||
[](const wxString & str, TranslatableString::Request request) -> wxString {
|
[](const wxString & str, TranslatableString::Request request) -> wxString {
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
#ifndef __AUDACITY_TRANSLATABLE_STRING__
|
#ifndef __AUDACITY_TRANSLATABLE_STRING__
|
||||||
#define __AUDACITY_TRANSLATABLE_STRING__
|
#define __AUDACITY_TRANSLATABLE_STRING__
|
||||||
|
|
||||||
#include "../../../src/Identifier.h"
|
#include <stddef.h> // for size_t
|
||||||
|
#include <functional>
|
||||||
|
#include <wx/string.h>
|
||||||
|
|
||||||
|
class Identifier;
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@@ -70,7 +74,7 @@ public:
|
|||||||
//! MSGID is the English lookup key in the catalog, not necessarily for user's eyes if locale is some other.
|
//! MSGID is the English lookup key in the catalog, not necessarily for user's eyes if locale is some other.
|
||||||
/*! The MSGID might not be all the information TranslatableString holds.
|
/*! The MSGID might not be all the information TranslatableString holds.
|
||||||
This is a deliberately ugly-looking function name. Use with caution. */
|
This is a deliberately ugly-looking function name. Use with caution. */
|
||||||
Identifier MSGID() const { return Identifier{ mMsgid }; }
|
Identifier MSGID() const;
|
||||||
|
|
||||||
wxString Translation() const { return DoFormat( false ); }
|
wxString Translation() const { return DoFormat( false ); }
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ but little else.
|
|||||||
|
|
||||||
|
|
||||||
#include "audacity/Types.h"
|
#include "audacity/Types.h"
|
||||||
|
#include "../Identifier.h"
|
||||||
#include "../Internat.h"
|
#include "../Internat.h"
|
||||||
#include "../MemoryX.h"
|
#include "../MemoryX.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user