yktoo / dklang

DKLang Localization Package
56 stars 14 forks source link

FMX, XE8, First form opens second one, second form is not translated #17

Closed dvpublic closed 9 years ago

dvpublic commented 9 years ago

There is follow problem in fmx project under XE8.

There are two forms in the project. First form contains DKLTranslationsStorage instance. First form creates second form and opens it. Second form is not translated.

It looks like the problem is in DKLang.pas, line 1202. It's necessary to add follow code there:

Stream.Seek(0, TSeekOrigin.soBeginning);

then problem disappear.

bjmillerpa commented 9 years ago

Code updated. Please try latest commit.

dvpublic commented 9 years ago

Last commit works fine. Thanks a lot )