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 LV2Editor::BuildPlain(), Languages::GetLanguages(), and anonymous_namespace{MenuHelper.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 EqualizationBandSliders::AddBandSliders(), AboutDialog::AddCredit(), anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), anonymous_namespace{FrameStatisticsDialog.cpp}::Dialog::AddSection(), BatchEvalCommand::Apply(), MacroCommands::ApplyMacro(), FFmpegExporter::AskResample(), NyquistEffect::BuildEffectWindow(), CommandManager::DescribeCommandsAndShortcuts(), anonymous_namespace{FrameStatisticsDialog.cpp}::Dialog::Dialog(), anonymous_namespace{FileMenus.cpp}::DoExport(), WaveformVRulerControls::DoUpdateVRuler(), PluginManager::DropFile(), ProjectFileIO::Exec(), anonymous_namespace{ExportPCM.cpp}::ExportOptionsSFEditor::ExportOptionsSFEditor(), anonymous_namespace{ExportOpus.cpp}::FailExport(), LadspaEffectBase::GetDescription(), VampEffect::GetDescription(), TimerRecordDialog::GetDisplayDate(), anonymous_namespace{ExportPCM.cpp}::GetEncodings(), GetFFmpegVersion(), Languages::GetLanguages(), GetMP3Version(), DevicePrefs::GetNamesAndLabels(), MidiIOPrefs::GetNamesAndLabels(), CommandManager::GetPrefixedLabelFromName(), LWSlider::GetTip(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), Importer::Import(), ImportRawDialog::ImportRawDialog(), FFmpegExporter::InitCodecs(), RulerUpdater::TickSizes::LabelString(), ThemeBase::LoadOneThemeComponents(), LV2Ports::LV2Ports(), NyquistBase::NyquistBase(), ApplyMacroDialog::OnApplyToFiles(), anonymous_namespace{ProjectFileManager.cpp}::ImportProgress::OnImportProgress(), anonymous_namespace{HelpMenus.cpp}::OnMenuTree(), PluginRegistrationDialog::OnOK(), MacrosWindow::OnRemove(), KeyConfigPrefs::OnSet(), XMLFileReader::Parse(), XMLFileReader::ParseBuffer(), NyquistBase::ParseFileTypes(), PitchName_Absolute(), FrequencyPlotDialog::Populate(), TimeSignatureToolBar::Populate(), AccessibleLinksFormatter::Populate(), AboutDialog::PopulateAudacityPage(), AboutDialog::PopulateInformationPage(), anonymous_namespace{BatchProcessDialog.cpp}::PopulateMacrosMenu(), DevicePrefs::PopulateOrExchange(), ModulePrefs::PopulateOrExchange(), ThemePrefs::PopulateOrExchange(), EqualizationUI::PopulateOrExchange(), EffectScienFilter::PopulateOrExchange(), VampEffect::PopulateOrExchange(), SpectrumPrefs::PopulatePaddingChoices(), audacity::cloud::audiocom::ShareAudioDialog::ProgressPanel::PopulateProgressPanel(), TimerRecordDialog::PreActionDelay(), NyquistBase::Process(), NyquistBase::ProcessOne(), audacity::sqlite::Error::Raise(), audacity::cloud::ShareAudioToolbar::RegenerateTooltips(), AudioSetupToolBar::RegenerateTooltips(), ControlToolBar::RegenerateTooltips(), TimerRecordDialog::RunWaitDialog(), ProjectFileIO::SaveProject(), DBConnection::SetDBError(), ToolBar::SetLabel(), ProjectFileIO::SetProjectTitle(), DeviceToolBar::ShowComboDialog(), PrefsDialog::ShowModal(), AudioIO::StartStream(), TEST_CASE(), VelocitySliderHandle::Tip(), TitleText(), NyquistBase::UnQuoteMsgid(), MessageBoxTarget::Update(), AdornedRulerPanel::UpdateButtonStates(), MixerTrackCluster::UpdateForStateChange(), AButton::UpdateStatus(), and TimerRecordDialog::WaitForStart().