Author Topic: Code::Blocks IDE translation to German language  (Read 7994 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 800
Re: Code::Blocks IDE translation to German language
« Reply #15 on: November 10, 2022, 01:40:51 pm »
Neverthess, something like :
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\n") +
                            _("This wizard will guide you to create a new project using\n") +
                            _("the wxWidgets cross-platform GUI library.\n\n") +
                            _("When you 're ready to proceed, please click \"Next\"...");
with _(...) on each line, is correctly detected but as you have partial sentences it may be difficult to translate without the context. A better approach is
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\n") +
                            _("This wizard will guide you to create a new project using\nthe wxWidgets cross-platform GUI library.\n\n") +
                            _("When you 're ready to proceed, please click \"Next\"...");
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Code::Blocks IDE translation to German language
« Reply #16 on: November 10, 2022, 02:11:40 pm »
OK

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Code::Blocks IDE translation to German language
« Reply #17 on: November 10, 2022, 05:45:35 pm »
Most string are fixed in [r13010].

There are still about three strings using concatenated fragments, but I do not know how to fix them in Squirrel.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Code::Blocks IDE translation to German language
« Reply #18 on: November 11, 2022, 08:13:10 am »
Fixed in [r13011] using macro-style replacements:
Code
local msg = _("$1 was not found on drive $2, try again...");
msg.Replace(_T("$1"), filename);
msg.Replace(_T("$2"), drivename);