Translate Program
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Translate Program
i've seen and tested every example that I found on internet, none of them worked...
Could you point me to a good tutorial that explains everything?
Here's the program that i'm trying to add translations support
https://github.com/israpps/HDL-Batch-installer:
Could you point me to a good tutorial that explains everything?
Here's the program that i'm trying to add translations support
https://github.com/israpps/HDL-Batch-installer:
Re: Translate Program
What did you try and what didn't work?
The two sources of information you need, are:
https://docs.wxwidgets.org/trunk/overview_i18n.html
And the "internat" sample that comes with wxWidgets.
The two sources of information you need, are:
https://docs.wxwidgets.org/trunk/overview_i18n.html
And the "internat" sample that comes with wxWidgets.
Use the source, Luke!
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
i dont know how to get this shit working.doublemax wrote: ↑Sun May 23, 2021 9:21 pm What did you try and what didn't work?
The two sources of information you need, are:
https://docs.wxwidgets.org/trunk/overview_i18n.html
And the "internat" sample that comes with wxWidgets.
mostly because the frame & app basic code was written by codeblocks wizard
Re: Translate Program
Hi,
As doublemax said, take a look at the international sample.
Build it, run it, see what it does.
Then look at the code.
If you still have questions then - please come back.
Thank you.
As doublemax said, take a look at the international sample.
Build it, run it, see what it does.
Then look at the code.
If you still have questions then - please come back.
Thank you.
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
after taking a look at internat again I tried to implement it into my program.
the frame constructor trows an "üninitialized member reference on 'wxLocale&' "...
any idea?
the frame constructor trows an "üninitialized member reference on 'wxLocale&' "...
any idea?
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
could you help me out?
I can upload the translation branch that i've made to test
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
i've managed to build the program (removing the '&' operator on wxlocale declaration at frame class worked,
strings aren't being translated
https://github.com/israpps/HDL-Batch-in ... e/internat
strings aren't being translated
https://github.com/israpps/HDL-Batch-in ... e/internat
Re: Translate Program
I compiled your program and the translated texts showed up.
Strangely enough, using ProcMon i could see that even in your executable the catalog was loaded correctly.
I have no idea where else it could fail, but i'm sure you're very close to the solution.
Strangely enough, using ProcMon i could see that even in your executable the catalog was loaded correctly.
I have no idea where else it could fail, but i'm sure you're very close to the solution.
Use the source, Luke!
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
Thanks for taking the time to test it!!!!doublemax wrote: ↑Wed May 26, 2021 4:28 pm I compiled your program and the translated texts showed up.
S_210526_182439.png
Strangely enough, using ProcMon i could see that even in your executable the catalog was loaded correctly.
I have no idea where else it could fail, but i'm sure you're very close to the solution.
I have no clue why this happens...
I've tested executing the program without admin priviledges and got the same result... (The GUI must be executed as admin to properly execute HDL.EXE)
maybe something changed when you compiled the program?
i'm using wxWidgets 3.0.5 with this configuration: https://github.com/israpps/HDL-Batch-in ... /build.cfg
Re: Translate Program
My configuration was very different, but i don't think that should make any difference in this case.
wxWidgets 3.1.5, built with VS2017, static linking
I had to comment out these two lines, because VS couldn't compile the code in "crude_call.h"
But i only tested on German Windows versions (7 and 10).
Try to make a minimal sample that shows the issue on your machine. It should make it much easier to narrow down the problem (and maybe for other people to test it).
wxWidgets 3.1.5, built with VS2017, static linking
I had to comment out these two lines, because VS couldn't compile the code in "crude_call.h"
Code: Select all
#include "crude_call.h"
HDL.SystemCapture(command, ".", result, output_err, retcode,false);
Try to make a minimal sample that shows the issue on your machine. It should make it much easier to narrow down the problem (and maybe for other people to test it).
Use the source, Luke!
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
commenting those lines didn't change anything...doublemax wrote: ↑Wed May 26, 2021 6:52 pm My configuration was very different, but i don't think that should make any difference in this case.
wxWidgets 3.1.5, built with VS2017, static linking
I had to comment out these two lines, because VS couldn't compile the code in "crude_call.h"But i only tested on German Windows versions (7 and 10).Code: Select all
#include "crude_call.h" HDL.SystemCapture(command, ".", result, output_err, retcode,false);
Try to make a minimal sample that shows the issue on your machine. It should make it much easier to narrow down the problem (and maybe for other people to test it).
did you download the program from the internat branch?
because that crude_system_call function was taken away from the HDL class a long time ago...
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
the internat sample worked well (Compiled with wxwidgets 3.0.5 as monolithic DLL)
i'll try with the wxwidgets template of code::Blocks....
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: Translate Program
someone else tested the program and it isn't showing the Translated strings....
maybe I should try with wxWidgets 3.1.5??
maybe I should try with wxWidgets 3.1.5??
Re: Translate Program
Hi,
I would rather try with the multi-lib build.
MONOLITHIC shuold only be used if you are developing a Code::Blocks itself.
Everybody else should use multilib builds of the wxWidgets.
Thank you.
I would rather try with the multi-lib build.
MONOLITHIC shuold only be used if you are developing a Code::Blocks itself.
Everybody else should use multilib builds of the wxWidgets.
Thank you.
Re: Translate Program
Might be worth a try.
Here's the binary i created: If you dare to run exes from strangers, please try it out:
https://easyupload.io/ya2yg7
Use the source, Luke!