Author Topic: Use of '_T("...")' with 'CB'  (Read 3968 times)

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 596
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Use of '_T("...")' with 'CB'
« on: August 28, 2026, 04:12:37 pm »
I just compiled only 'cb-13984' and found 2638 strings '_T("...")' !! (without plugins)
However, since 'wx-3.0' this writing is obsolete.

What would be the advice to gradually delete this writing and how?

As for me, I think research on every target could be a lead.
CB-13990, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 596
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Re: Use of '_T("...")' with 'CB'
« Reply #1 on: August 28, 2026, 04:20:39 pm »
Note :
'_T("")' => 'wxEmptyString'
CB-13990, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1906
Re: Use of '_T("...")' with 'CB'
« Reply #2 on: August 28, 2026, 04:40:35 pm »
I delete them as I pass near (see 13984), but some areas may be tricky (for example, parts of wxSmith creating string arrays).

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 596
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Re: Use of '_T("...")' with 'CB'
« Reply #3 on: August 28, 2026, 06:39:21 pm »
I just dropped off three tickets: 1632, 1633, 1634
CB-13990, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 596
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Re: Use of '_T("...")' with 'CB'
« Reply #4 on: Today at 11:38:28 am »
I just provided three fixes (1636, 1637, 1638) to replace
 
Code
'_T("...")' or  'wxT("...")' by '"..."'
for 'autosave', 'classwizard', codecompletion' plugins
CB-13990, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 596
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Re: Use of '_T("...")' with 'CB'
« Reply #5 on: Today at 12:15:36 pm »
For those who are interested in research:

Here is the regular expression to use for '_T(' in 'CB'
Research :
Code
 '_T\(("(\\"|[^"])*")\)'
Replace :
Code
'\1'
Note : the ' must not be written
CB-13990, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'