Don't use _T() in the documentation.
This is mainly necessary in order to be able to commit the subsequent changes to this file as otherwise the commit is refused by the svn post-commit hook that checks for _T() presence. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -466,10 +466,10 @@ public:
|
|||||||
This function calls wxTranslations::GetString().
|
This function calls wxTranslations::GetString().
|
||||||
|
|
||||||
@note This function is not suitable for literal strings in Unicode builds
|
@note This function is not suitable for literal strings in Unicode builds
|
||||||
since the literal strings must be enclosed into _T() or wxT() macro
|
since the literal strings must be enclosed in wxT() macro which makes
|
||||||
which makes them unrecognised by @c xgettext, and so they are not
|
them unrecognised by @c xgettext, and so they are not extracted to
|
||||||
extracted to the message catalog. Instead, use the _() and wxPLURAL()
|
the message catalog. Instead, use the _() and wxPLURAL() macro for
|
||||||
macro for all literal strings.
|
all literal strings.
|
||||||
|
|
||||||
@see wxGetTranslation(const wxString&, const wxString&, unsigned, const wxString&)
|
@see wxGetTranslation(const wxString&, const wxString&, unsigned, const wxString&)
|
||||||
|
|
||||||
@@ -505,13 +505,13 @@ const wxString& wxGetTranslation(const wxString& string,
|
|||||||
const wxString& domain = wxEmptyString);
|
const wxString& domain = wxEmptyString);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Macro to be used around all literal strings that should be translated.
|
||||||
|
|
||||||
This macro expands into a call to wxGetTranslation(), so it marks the
|
This macro expands into a call to wxGetTranslation(), so it marks the
|
||||||
message for the extraction by @c xgettext just as wxTRANSLATE() does, but
|
message for the extraction by @c xgettext just as wxTRANSLATE() does, but
|
||||||
also returns the translation of the string for the current locale during
|
also returns the translation of the string for the current locale during
|
||||||
execution.
|
execution.
|
||||||
|
|
||||||
Don't confuse this with _T()!
|
|
||||||
|
|
||||||
@header{wx/intl.h}
|
@header{wx/intl.h}
|
||||||
*/
|
*/
|
||||||
const wxString& _(const wxString& string);
|
const wxString& _(const wxString& string);
|
||||||
|
Reference in New Issue
Block a user