Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Localize system runtime messages  (Read 677 times)
Huy H.
Posts: 43

« on: June 01, 2022, 03:58:11 pm »

I found a toping in FourJs document on how to localize system runtime messages:

My problem with this approach is that the localization files have to be inside the $FGLDIR somehow.  If each time we update the BDL, the resources need to be copied/symlink somehow.  Has anyone found a way to do this without touching $FGLDIR? 

My preference if this somehow works like the regular localization files by using the $FGLRESOURCEPATH environment variable.
Sebastien F.
Four Js
Posts: 487

« Reply #1 on: June 01, 2022, 04:59:19 pm »


We have a long-standing FGL ticket for that:

One of the solution I suggested is based on localized strings, by using reserved string identifiers based on the .msg message number.

You could translate / customize messages in your .str/.42s file(s):

"fgl.dialogMessage.error:-1205" = "Invalid month"

That would only apply to error messages displayed by dialogs (an invalid month used in a LET statement with a DATE variable would still produce the FGLDIR/msg message)

Would that fit your expectations?

Pages: [1]
  Reply  |  Print  
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines