Page 1 of 1

wxCrafter: Can I set wxT() for wxStaticText label?

Posted: Sat Apr 16, 2016 9:21 pm
by marcelinux
Dear all.
I'm spanish and I would start a project without i18n because I'm just learning.
The issue is: _() macro do not show characters "áéíóú" but wxT() do it correctly.
wxCrafter insert a _() macro in wxStaticText and wxT() in wxTextCtrl.
This is the code generated by wxCrafter:

Code: Select all

    m_staticText31 = new wxStaticText(m_panel17, wxID_ANY, _("Crédito concedido hoy"), wxDefaultPosition, wxSize(-1,-1), 0);
    
    flexGridSizer25->Add(m_staticText31, 0, wxALL, 5);
    
    m_creditoConcedidoTextCtrl33 = new wxTextCtrl(m_panel17, wxID_ANY, wxT("Crédito"), wxDefaultPosition, wxSize(-1,-1), wxTE_RIGHT);
And the question is: How can I make to include wxT() instead _() in wxCrafter's generated code?

Environment:
OS Debian Stretch amd64
g++ (Debian 5.3.1-14) 5.3.1 20160409
wxWidgets 3.1.0 self-compiled
CodeLite 9.1.5 deb-package downloaded

Thank you.

Re: wxCrafter: Can I set wxT() for wxStaticText label?

Posted: Sat Apr 16, 2016 9:29 pm
by eranif
You can disable the "translated strings" feature from the top level item in the wxCrafter tree view.
See the attached screenshot
4-16-2016 8-27-28 PM.png
Eran

Re: wxCrafter: Can I set wxT() for wxStaticText label?

Posted: Sat Apr 16, 2016 9:59 pm
by marcelinux
awsome, wonderful, thanks