wxCrafter generates some strings that are not translatable
Posted: Thu Jan 22, 2015 7:19 pm
Hi everyone,
I was using wxFormBuilder for one of my old projects and I wanted to convert and import the gui into wxCrafter.
This was almost straightforward but I noticed that some text is missing from translation, in particular the code generated by wxCrafter for the classes wxFilePickerCtrl, wxFilePickerCtrl and wxRadioBox uses the wxT() macro instead of the translatable one _().
Here is an example of code generated by wxCrafter:
I think that the strings "Select a file" and "Select a folder" should be translatable so the options in radiobox "First option" and "Second Option". Those strings should be enclosed in the _() macro not inthe wxT() form.
Maybe there are other places where there is the same problem but I found these three classes so far.
I was using wxFormBuilder for one of my old projects and I wanted to convert and import the gui into wxCrafter.
This was almost straightforward but I noticed that some text is missing from translation, in particular the code generated by wxCrafter for the classes wxFilePickerCtrl, wxFilePickerCtrl and wxRadioBox uses the wxT() macro instead of the translatable one _().
Here is an example of code generated by wxCrafter:
Code: Select all
m_filePicker1 = new wxFilePickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*"), wxDefaultPosition, wxSize(-1,-1), wxFLP_DEFAULT_STYLE);
m_dirPicker1 = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(-1,-1), wxDIRP_DEFAULT_STYLE);
wxArrayString m_radioBox21Arr;
m_radioBox21Arr.Add(wxT("First option"));
m_radioBox21Arr.Add(wxT("Second Option"));
m_radioBox21 = new wxRadioBox(this, wxID_ANY, _("My RadioBox"), wxDefaultPosition, wxSize(-1,-1), m_radioBox21Arr, 1, 0);
Maybe there are other places where there is the same problem but I found these three classes so far.