Author Topic: Code::Blocks' translation  (Read 459005 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 700
Re: Code::Blocks' translation
« Reply #240 on: January 16, 2022, 10:12:46 am »
OK. So it's an other problem.
I tried different things as :
  • using directly the .mo file downloaded from launchpad;
  • download the .po from launchpad, compiling it with poedit, and using the .mo produced (with and without renaming it)
  • using my own .mo file ...
everything work as expected.

I also tried to rename a .mo file in .po, just to see what happens. C::B logically appears in English : no assert message.

So, I can't reproduce your behaviour.

One idea : Are you sure you use a wxWidgets version compiled with the same compiler version as your Code::Blocks build ?

There is also an other thing which look strange for me :
at line 405 in menucmn.cpp (located in C:\wxWidgets-3.1.5\src\common for me), I have :
Code
wxMenuItemList::compatibility_iterator node = m_items.Item(pos);
which does not correspond exactly to your indicated code lines. For me it's inside wxMenuBase::DoInsert (not in wxMenuBase::Insert)
Assert lines are 403 or 406. So, may be we have not exactly the same wxWidgets 3.1.5 version !)

Note : it's in wxWidgets 3.1.6 (trunk version, beta) that I have a wxcheck at line 405, inside wxMenuBase::Insert ! But, I still don't use it in C::B.
« Last Edit: January 16, 2022, 10:20:03 am by gd_on »
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.1.6, Msys2 Compilers 12.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (sjlj, posix in C:\msys64\mingw32).

Offline LETARTARE

  • Regular
  • ***
  • Posts: 477
  • L'ami de l'homme.The friend of man.
Re: Code::Blocks' translation
« Reply #241 on: January 16, 2022, 10:45:54 am »
Thanks, your test is valuable.
I had downloaded 'wx-315' sources on the 'WXWidgets' website and had compiled using 'gcc-810' without problem until this test.

I will check everything today...
CB-12814, plugins-sdk-2.18.0, Collector-1.6.0, AddOnForQt-3.4.7
1-Win7 Business Pack1 64bits : wx-3.1.6, gcc-8.1.0,
2-OpenSuse::Leap-15.3-64bits : wx-3.0.5, gcc-7.5.0gcc-7.5.0 (wx-3.1.5)
=> !! The messages are translated by Deepl

Offline gd_on

  • Lives here!
  • ****
  • Posts: 700
Re: Code::Blocks' translation
« Reply #242 on: January 16, 2022, 12:22:22 pm »
Also tested with last killerbot version (today's one), of course with all his given dlls (compiler and wxwidgets). It works as expected.
« Last Edit: January 16, 2022, 12:34:39 pm by gd_on »
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.1.6, Msys2 Compilers 12.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (sjlj, posix in C:\msys64\mingw32).

Offline LETARTARE

  • Regular
  • ***
  • Posts: 477
  • L'ami de l'homme.The friend of man.
Re: Code::Blocks' translation
« Reply #243 on: January 17, 2022, 04:37:27 pm »
Thanks for your tests.

In doubt I recompiled 'wx-315' and the size of the result was different from the old one, even though I used the same source and the same compiler and the same build script ??
With this recompiled version, no more problem with your translation files compiled by 'Poedit'.

Thanks for the translations.
CB-12814, plugins-sdk-2.18.0, Collector-1.6.0, AddOnForQt-3.4.7
1-Win7 Business Pack1 64bits : wx-3.1.6, gcc-8.1.0,
2-OpenSuse::Leap-15.3-64bits : wx-3.0.5, gcc-7.5.0gcc-7.5.0 (wx-3.1.5)
=> !! The messages are translated by Deepl