Author Topic: Multi-language options page...  (Read 1560 times)

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Multi-language options page...
« on: January 30, 2020, 07:31:11 AM »
I want my options page in my layout to adapt to different languages. Is there an easy way to do it? I've already coded my translating framework which, based on a layout variabl, gets the translation of the strings from an external file. This works fine if I declare the variable at the beginning of the layout, and I can also see changes in the options page this way.

So I thought, I'll save the value of the variable in the fe.nv file and get it before the options table is built. But this doesn't work: at layout launch the variable is loaded and the layout reflects the translation, but if I enter the layout options I see in the log the layout is somewhat reloaded, and the read routin is re-executed, but gives an error.

Any help?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Multi-language options page...
« Reply #1 on: January 31, 2020, 05:41:44 AM »
I found a workaround: instead of saving the data to fe.nv I used a custom text file in the layout folder, this works and allows for translation of the options page!