Author Topic: Log translation  (Read 3588 times)

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Log translation
« on: June 03, 2022, 07:24:39 pm »
Translation of Log() messages is not coherent, many use _() but others do not.

Is there a reason to not translate them? Of course, keeping them untranslated makes searching in the web easier, but some users do not understand the english messages.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Log translation
« Reply #1 on: June 03, 2022, 09:34:49 pm »
Translation of Log() messages is not coherent, many use _() but others do not.

Is there a reason to not translate them? Of course, keeping them untranslated makes searching in the web easier, but some users do not understand the english messages.

This has very little to do with Code::Block! It has almost everything to do with the Compiler/Toolchain!

Edit: If you are not talking about the "Build Log" please state which!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Log translation
« Reply #2 on: June 04, 2022, 10:25:18 am »
I am talking about log messages like these:
Code
Manager::Get()->GetLogManager()->DebugLog(_T("Could not find File->New menu!"));
CCLogger::Get()->DebugLog("SetParser: No parser available.");
Manager::Get()->GetLogManager()->Log(_T("cbEditor::AutoComplete() is obsolete.\nUse AutoComplete(cbEditor &ed) from the Abbreviations plugin instead."));
Manager::Get()->GetLogManager()->Log(_("Error: file 'options_") + name + _(".xml' not found"));
Manager::Get()->GetLogManager()->DebugLog(_T("Compiler circular dependency detected?!?!?"));

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Log translation
« Reply #3 on: June 05, 2022, 01:02:26 am »
I think debug logs should not really be translated... They would make error checking of localized cb more difficult for us...
But "Log" and "Error" should probably be translated? But this makes things inconsistent...

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Log translation
« Reply #4 on: June 06, 2022, 05:04:19 pm »
Quote
But this makes things inconsistent...

Now it is almost random, so inconsistency (entropy?) is maximum. I agree with you, "normal" messages should be translated while "debug" ones should not, so a casual user would see everything in his language.