Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Miguel Gimenez on June 03, 2022, 07:24:39 pm

Title: Log translation
Post by: Miguel Gimenez 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.
Title: Re: Log translation
Post by: stahta01 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.
Title: Re: Log translation
Post by: Miguel Gimenez 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?!?!?"));
Title: Re: Log translation
Post by: BlueHazzard 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...
Title: Re: Log translation
Post by: Miguel Gimenez 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.