Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

German translation

<< < (2/2)

Blaubaer:

--- Quote from: intl.h ---#ifndef WXINTL_NO_GETTEXT_MACRO
    #define _(s)                     wxGetTranslation(_T(s))
    #define wxPLURAL(sing, plur, n)  wxGetTranslation(_T(sing), _T(plur), n)
#endif
--- End quote ---

Yes.

What does wxGetTranslation(_T("")) put out?

The warning means that you could get a "This is gettext V3.5.18, this stŕing is empty"
instead of what you would expect, an empty string.

thomas:
It simply calls wxLocale::GetString(), or in case there is no locale, returns the original string.

wxLocale::GetString() returns the original string if it cannot find a translation.

Navigation

[0] Message Index

[*] Previous page

Go to full version