Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
TranslatableString.h File Reference
#include <stddef.h>
#include <functional>
#include <wx/string.h>
#include <vector>
Include dependency graph for TranslatableString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TranslatableString
 Holds a msgid for the translation catalog; may also bind format arguments. More...
 
struct  TranslatableString::PluralTemp< N >
 
struct  std::hash< TranslatableString >
 

Namespaces

namespace  std
 STL namespace.
 

Typedefs

using TranslatableStrings = std::vector< TranslatableString >
 

Functions

TranslatableString operator+ (TranslatableString x, TranslatableString y)
 
template<typename Sink >
Sink & operator<< (Sink &sink, const TranslatableString &str)
 Allow TranslatableString to work with shift output operators. More...
 
TranslatableString Verbatim (wxString str)
 Require calls to the one-argument constructor to go through this distinct global function name. More...
 
bool TranslationLess (const TranslatableString &a, const TranslatableString &b)
 A commonly needed sort comparator, which depends on the language setting. More...
 

Typedef Documentation

◆ TranslatableStrings

Definition at line 295 of file TranslatableString.h.

Function Documentation

◆ operator+()

TranslatableString operator+ ( TranslatableString  x,
TranslatableString  y 
)
inline

Definition at line 289 of file TranslatableString.h.

291{
292 return std::move(x += std::move(y));
293}

◆ operator<<()

template<typename Sink >
Sink & operator<< ( Sink &  sink,
const TranslatableString str 
)
inline

Allow TranslatableString to work with shift output operators.

Definition at line 313 of file TranslatableString.h.

314{
315 return sink << str.Translation();
316}
#define str(a)

References str.

◆ TranslationLess()

bool TranslationLess ( const TranslatableString a,
const TranslatableString b 
)
inline

A commonly needed sort comparator, which depends on the language setting.

Definition at line 325 of file TranslatableString.h.

327{
328 return a.Translation() < b.Translation();
329}
wxString Translation() const

References TranslatableString::Translation().

Referenced by LV2Effect::BuildPlain(), Languages::GetLanguages(), and anonymous_namespace{PluginMenus.cpp}::MakeAddGroupItems().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Verbatim()

TranslatableString Verbatim ( wxString  str)
inline

Require calls to the one-argument constructor to go through this distinct global function name.

This makes it easier to locate and review the uses of this function, separately from the uses of the type.

Definition at line 321 of file TranslatableString.h.

322{ return TranslatableString( std::move( str ) ); }
Holds a msgid for the translation catalog; may also bind format arguments.

Referenced by AboutDialog::AddCredit(), anonymous_namespace{PluginMenus.cpp}::AddEffectMenuItemGroup(), anonymous_namespace{FrameStatisticsDialog.cpp}::Dialog::AddSection(), BatchEvalCommand::Apply(), MacroCommands::ApplyMacro(), ExportFFmpeg::AskResample(), NyquistEffect::BuildEffectWindow(), ConfirmSave(), ImportFileHandle::CreateProgress(), CommandManager::DescribeCommandsAndShortcuts(), anonymous_namespace{FrameStatisticsDialog.cpp}::Dialog::Dialog(), anonymous_namespace{FileMenus.cpp}::DoExport(), PluginManager::DropFile(), EVT_COMMAND_RANGE(), ProjectFileIO::Exec(), LadspaEffect::GetDescription(), VampEffect::GetDescription(), TimerRecordDialog::GetDisplayDate(), ExportPCMOptions::GetEncodings(), GetFFmpegVersion(), Languages::GetLanguages(), GetMP3Version(), DevicePrefs::GetNamesAndLabels(), CommandManager::GetPrefixedLabelFromName(), LWSlider::GetTip(), ExportPCMOptions::GetTypes(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), Importer::Import(), ImportRawDialog::ImportRawDialog(), ExportFFmpeg::InitCodecs(), ExportPlugin::InitProgress(), Ruler::TickSizes::LabelString(), ThemeBase::LoadOneThemeComponents(), LV2Ports::LV2Ports(), ApplyMacroDialog::OnApplyToFiles(), HelpActions::Handler::OnMenuTree(), MeterPanel::OnMouse(), PluginRegistrationDialog::OnOK(), MacrosWindow::OnRemove(), KeyConfigPrefs::OnSet(), XMLFileReader::Parse(), XMLFileReader::ParseBuffer(), NyquistEffect::ParseFileTypes(), PitchName_Absolute(), FrequencyPlotDialog::Populate(), AccessibleLinksFormatter::Populate(), AboutDialog::PopulateAudacityPage(), AboutDialog::PopulateInformationPage(), anonymous_namespace{PluginMenus.cpp}::PopulateMacrosMenu(), ExportMultipleDialog::PopulateOrExchange(), DevicePrefs::PopulateOrExchange(), ModulePrefs::PopulateOrExchange(), ThemePrefs::PopulateOrExchange(), EffectEqualization::PopulateOrExchange(), EffectScienFilter::PopulateOrExchange(), VampEffect::PopulateOrExchange(), SpectrumPrefs::PopulatePaddingChoices(), TimerRecordDialog::PreActionDelay(), NyquistEffect::Process(), NyquistEffect::ProcessOne(), AudioSetupToolBar::RegenerateTooltips(), ControlToolBar::RegenerateTooltips(), TimerRecordDialog::RunWaitDialog(), ProjectFileIO::SaveProject(), DBConnection::SetDBError(), ToolBar::SetLabel(), ProjectFileIO::SetProjectTitle(), DeviceToolBar::ShowComboDialog(), PrefsDialog::ShowModal(), AudioIO::StartStream(), TitleText(), NyquistEffect::UnQuoteMsgid(), MessageBoxTarget::Update(), AdornedRulerPanel::UpdateButtonStates(), MixerTrackCluster::UpdateForStateChange(), AButton::UpdateStatus(), and TimerRecordDialog::WaitForStart().