Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2019-04

Question on policy for compiler messages

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

Hi everyone,

To the administrators in particular, what's the policy when it comes to introducing a new message (error, warning etc.) for the compiler?  I know it's not as simple as simply adding it to the list, because it has to be translated into several different languages and I don't know how the compiler will react if a language pack doesn't contain a particular message (does it display the English message or crash?)

Gareth aka. Kit

---
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Reply by email

Jonas Maebe
to J. Gareth Moreton
J. Gareth Moreton wrote 6 lines
To the administrators in particular, what's the policy when it comes to introducing a new message (error, warning etc.) for the compiler?  I know it's not as simple as simply adding it to the list, because it has to be translated into several different languages and I don't know how the compiler will react if a language pack doesn't contain a particular message (does it display the English message or crash?)

It will show the English message. The English messages are embedded in the compiler through msgtxt.inc/msgidx.inc, which are automatically regenerated when building the compiler after changing msg/errore.msg. So when adding a new message, just adding it to errore.msg is enough.

Jonas

Reply by email

J. Gareth Moreton
to Jonas Maebe

Okay then, thanks Jonas.  I'm still pondering on the whole 'inline' thing, but at the very least I think I should develop a patch for {$mode delphi} so it behaves the same way in FPC as it does in Delphi when it that mode.  For FPC and inline, it's not so simple because so much stuff will break or at least change behaviour unexpectedly.

Gareth aka. Kit

Jonas Maebe wrote 21 lines
On 30/04/2019 19:32, J. Gareth Moreton wrote: > To the administrators in particular, what's the policy when it comes > to introducing a new message (error, warning etc.) for the compiler?  > I know it's not as simple as simply adding it to the list, because it > has to be translated into several different languages and I don't > know how the compiler will react if a language pack doesn't contain a > particular message (does it display the English message or crash?) It will show the English message. The English messages are embedded in the compiler through msgtxt.inc/msgidx.inc, which are automatically regenerated when building the compiler after changing msg/errore.msg. So when adding a new message, just adding it to errore.msg is enough. Jonas _______________________________________________ fpc-devel maillist  -  http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

---
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Reply by email