Audacity 3.2.0
Functions
anonymous_namespace{SplashDialog.cpp} Namespace Reference

Functions

wxString MakeWhatsNewText ()
 

Function Documentation

◆ MakeWhatsNewText()

wxString anonymous_namespace{SplashDialog.cpp}::MakeWhatsNewText ( )

Definition at line 94 of file SplashDialog.cpp.

95{
96 // PRL: Is it necessary to define these outside of conditional compilation
97 // so that both get into the .pot file?
98 const auto alphamsg = XO(
99 "<br><br>The version of Audacity you are using is an <b>Alpha test version</b>.");
100 const auto betamsg = XO(
101 "<br><br>The version of Audacity you are using is a <b>Beta test version</b>.");
102
103 wxStringOutputStream o;
104 wxTextOutputStream s(o);
105 s << wxT("<body bgcolor=") << theTheme.Colour(clrTrackInfo).GetAsString(wxC2S_HTML_SYNTAX) << wxT(">")
106 << wxT("<font color=") << theTheme.Colour(clrTrackPanelText).GetAsString(wxC2S_HTML_SYNTAX) << wxT(">")
107 << wxT("<p>")
108#if defined(IS_ALPHA) || defined(IS_BETA)
109 << wxT("<center><h3>")
110 << XO("Get the Official Released Version of Audacity")
111 << wxT("</h3></center>")
112 << wxT("<center>[[https://www.audacityteam.org/download|") << XO("Check Online") << wxT("]]</center>")
113# ifdef IS_ALPHA
114 << alphamsg
115# else
116 << betamsg
117# endif
118 << wxT(" ")
119 << XO("We strongly recommend that you use our latest stable released version, which has full documentation and support.<br/><br/>")
120 << XO("You can help us get Audacity ready for release by joining our [[https://www.audacityteam.org/community/|community]].<hr/><br/><br/>")
121#endif
122
123 << wxT("<center><h3>")
124#ifndef HAS_WHATS_NEW
125 << wxT("Audacity ") << AUDACITY_VERSION_STRING
126#else
127 /* i18n-hint: %s is replaced with Audacity version */
128 << XO("What's new in Audacity %s").Format(AUDACITY_VERSION_STRING)
129 << wxT(R"(</h3><p><a href=")") << WhatsNewURL << wxT(R"(">)")
130 << wxT(
131 R"(<img src="memory:whats_new_btn.jpeg" width="263" height="148" /></a></p>)")
132 << XO("<p>In this release we added Beats & Measures, Time Stretching and more.<br/>")
133 << XO("Watch the [[%s|release video]] or read the [[https://support.audacityteam.org/additional-resources/changelog|changelog]] to learn more!</p>").Format(WhatsNewURL)
134#endif
135 << wxT("<h3>") << XO("How to get help") << wxT("</h3></center>")
136 << XO("These are our support methods:")
137 << wxT("<p><ul><li>")
138 /* i18n-hint: Preserve '[[help:Quick_Help|' as it's the name of a
139 link.*/
140 << XO("[[help:Quick_Help|Quick Help]]") << wxT("</li><li>")
141 << XO(
142 /* i18n-hint: Preserve '[[help:Main_Page|' as it's the name of a
143 link.*/
144 " [[help:Main_Page|Manual]]")
145 << wxT("</li><li>")
146 << XO("[[https://support.audacityteam.org/|Tutorials & How-tos]]")
147 << wxT("</li><li>")
148 << XO(" [[https://forum.audacityteam.org/|Forum]] - ask your question directly, online.")
149 << wxT("</li></ul></p>") << wxT("</p></font></body>");
150
151 return FormatHtmlText(o.GetString());
152}
wxT("CloseDown"))
XO("Cut/Copy/Paste")
wxString FormatHtmlText(const wxString &Text)
Definition: HelpText.cpp:258
THEME_API Theme theTheme
Definition: Theme.cpp:82
wxColour & Colour(int iIndex)

References ThemeBase::Colour(), FormatHtmlText(), theTheme, wxT(), and XO().

Referenced by SplashDialog::Show2().

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