Menu

something about set lang

2008-12-11
2013-04-24
  • CArlos Tineo

    CArlos Tineo - 2008-12-11

    HI
    Thinking about set lang...  this happens every time going into the program. It's possible set this one time, save this var  in the config file and after call every time  when the program start? in order to begin:

    PUBLIC FUNCTION Main() AS Boolean

    CheckLang() 'check and set lang from config file or call Set lang

    if  lang=null then
      SetupLanguage()
    end if

      RunApplication()

    CATCH

      FShowError.Create([Error.Code, Error.Text, Error.Where]).ShowModal()
      QUIT
    END

     
    • Carlotto Luigi

      Carlotto Luigi - 2008-12-12

      Thankses for your suggestion!
      The problem is that the configuration comes read from the application, and does not give the launch module; Gambas2 does not have the possibility to modify the LANG during and after the start of the application, and the only way in order to make it is to define it from the launch module. I have already tried such solution previously, but it has not been possible to apply it to me.

      However, I take your idea like base for ulterior studies, we will see if it is possible to find a solution suitable.
      Thanks!

       

Log in to post a comment.