X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70373b5a57223350e0fcc4968920f81463dc6125..669b0c0a0b5a3d529104256f678d985105a8a276:/docs/latex/wx/ttips.tex?ds=sidebyside diff --git a/docs/latex/wx/ttips.tex b/docs/latex/wx/ttips.tex index 5dac6dd911..5ccde7a4f9 100644 --- a/docs/latex/wx/ttips.tex +++ b/docs/latex/wx/ttips.tex @@ -5,7 +5,7 @@ presenting the user tips at program startup. While this is probably useless to the advanced users of the program, the experience shows that the tips may be quite helpful for the novices and so more and more programs now do this. -For a wxWindows programmer, implementing this feature is extremely easy. To +For a wxWidgets programmer, implementing this feature is extremely easy. To show a tip, it is enough to just call \helpref{wxShowTip}{wxshowtip} function like this: @@ -48,14 +48,16 @@ skipped. You can easily add runtime-translation capacity by placing each line of the tips.txt file inside the usual translation macro. For example, your tips.txt file would look like this: + \begin{verbatim} _("This is my first tip") _("This is my second tip") \end{verbatim} + Now add your tips.txt file into the list of files that gettext searches for translatable strings. The tips will thus get included into your generated .po file catalog and be translated at runtime along with the rest of -your aplication's translatable strings. +your application's translatable strings. Note1: Each line in the tips.txt file needs to strictly begin with exactly the 3 characters of underscore-parenthesis-doublequote, and end with doublequote-parenthesis, as shown above. @@ -64,3 +66,4 @@ a backslash-doublequote. See the dialogs program in your samples folder for a working example inside a program. +