TkbmMWI18NLanguage language name property

Home Forums kbmMW TkbmMWI18NLanguage language name property

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #56678
      mrluigi2017
      Participant

      Hi,

      I am writing a small application that reads translations from a database and converts it to a i18n yaml file, this works fine except that I didn’t figure out a way to set the TkbmMWI18NLanguage name property since it’s read only. For now I have just modified the TkbmMWI18N source and added a write to the name property and this works fine. I am just not sure if this is the way to go.

      kbmMW ent. 5.19.00 + D10.4.2 Pro

      Thanks in advance!

       

      Kind regards,

       

      Luigi

    • #56712
      kimbomadsen
      Keymaster

      Hi,

      I have changed it for 5.20.

      /Kim

    • #57209
      mrluigi2017
      Participant

      Hi Kim,

      It looks like this one is reintroduced in version 5.21 (and still there in 5.22)

       

      Kind regards,

       

      Luigi

    • #57210
      kimbomadsen
      Keymaster

      Hi,

      It was designed in such way that you should create your own descendant of TkbmMWI18NCustomStorage and override InternalGetLanguages, InternalLoad, InternalSave and InternalDelete.

      InternalGetLanguages should return an array of strings with the found language names.
      InternalLoad will load one of the langauges (based on the name), InternalSave will save changes to one language, InternalDelete should remove the language.

      /Kim

Viewing 3 reply threads
  • You must be logged in to reply to this topic.