#46 Can't generate Multi Language .cpp file

open
nobody
None
5
2012-09-12
2012-09-12
Anonymous
No

the string of the caption of the control is wxT(), if there is _() I think will be better when I use poedit to tranfer this string to other language.

Discussion

  • Death Knight®
    Death Knight®
    2012-11-12

    Yes this is boring.
    I am using
    sed -i 's/wxT(/_T(/g' <file_name>
    from shell script for replacing them at output file as a temporary solution.
    (this works on linux with sed installed.)

     
  • Death Knight®
    Death Knight®
    2012-11-12

    Forget to say, you need to change _('\t') to wxT('\t') back.

    use this script and adopt to your use:

    for x in ./src/HexEditorGui.cpp ./src/HexEditorGui.h ./src/HexEditorCtrl/HexEditorCtrlGui.cpp ./src/HexEditorCtrl/HexEditorCtrlGui.h;
    do
    sed -i 's/wxT(/_(/g' $x;
    sed -i "s/_('\\\t')/wxT('\\\t')/g" $x;
    done;