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 472 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:

https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_localization_026.html

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: 486


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

Hello!

We have a long-standing FGL ticket for that:

     https://4js.com/support/issue/?id=FGL-03825#startissue

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?

Seb
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines