User forums > Using Code::Blocks

Code::Blocks IDE translation to German language

<< < (4/4)

gd_on:
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\"...");

--- End code ---
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\"...");

--- End code ---

Miguel Gimenez:
OK

Miguel Gimenez:
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.

Miguel Gimenez:
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);

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version