MCPcopy Create free account
hub / github.com/audacity/audacity / HelpTextBuiltIn

Function HelpTextBuiltIn

libraries/lib-wx-init/HelpText.cpp:192–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static wxString HelpTextBuiltIn( const wxString & Key )
193{
194 if(Key==wxT("wma-proprietary"))
195 {
196 wxStringOutputStream o;
197 wxTextOutputStream s(o);
198 s
199 << wxT("<p>")
200 << XO(
201"Audacity can import unprotected files in many other formats (such as M4A and WMA, \
202compressed WAV files from portable recorders and audio from video files) if you download and install \
203the optional [[https://support.audacityteam.org/basics/installing-ffmpeg| \
204FFmpeg library]] to your computer.")
205 << wxT("</p><p>")
206 << XO(
207"You can also read our help on importing \
208[[https://manual.audacityteam.org/man/playing_and_recording.html#midi|MIDI files]] \
209and tracks from [[https://manual.audacityteam.org/man/faq_opening_and_saving_files.html#fromcd| \
210audio CDs]].")
211 << wxT("</p>")
212 ;
213 return WrapText( o.GetString() );
214 }
215
216 // Remote help allows us to link to a local copy of the help if it exists,
217 // or provide a message that takes you to the Internet if it does not.
218 // It's used by the menu item Help > Index
219 if(Key == wxT("remotehelp") )
220 {
221 wxStringOutputStream o;
222 wxTextOutputStream s(o);
223 s
224// *URL* will be replaced by whatever URL we are looking for.
225 << XO(
226"The Manual does not appear to be installed. \
227Please [[*URL*|view the Manual online]] or \
228[[https://manual.audacityteam.org/man/unzipping_the_manual.html| \
229download the Manual]].<br><br>\
230To always view the Manual online, change \"Location of Manual\" in \
231Interface Preferences to \"From Internet\".")
232 ;
233 return WrapText( o.GetString() );
234 }
235 return {};
236}
237
238wxString HelpText( const wxString & Key )
239{

Callers 1

HelpTextFunction · 0.85

Calls 2

WrapTextFunction · 0.85
GetStringMethod · 0.45

Tested by

no test coverage detected