TsiCustomLang.MergeFromFile : resourcestrings don't work
Posted: Tue May 06, 2003 7:18 pm
Hi,
I'd like to be able to load resourcestring translations at runtime using TsiCustomLang.MergefromFile(stStrings, 'C:\Myfile.sil') and I'm using a registered 5.22 Version of tsilang.
My problem is that translations do not show up if I do that, I always get the native Resourcestring.
(In SiLoadResString, the string returned by S := TsiCustomLang(ResourceHandler).FLangStringsColl.GetTranslationByLang(Result, TsiCustomLang(ResourceHandler).ActiveLanguage) is always empty ('');
I know that TsiCustomlang.LoadAllFromFile works, but I'd like to avoid TsiCustomlang.LoadAllFromFile because it deletes all strings that were added while an external translator translated the sil file.
Is there a fix available or did someone find a workaround ?
Thanks,
Henrich.
I'd like to be able to load resourcestring translations at runtime using TsiCustomLang.MergefromFile(stStrings, 'C:\Myfile.sil') and I'm using a registered 5.22 Version of tsilang.
My problem is that translations do not show up if I do that, I always get the native Resourcestring.
(In SiLoadResString, the string returned by S := TsiCustomLang(ResourceHandler).FLangStringsColl.GetTranslationByLang(Result, TsiCustomLang(ResourceHandler).ActiveLanguage) is always empty ('');
I know that TsiCustomlang.LoadAllFromFile works, but I'd like to avoid TsiCustomlang.LoadAllFromFile because it deletes all strings that were added while an external translator translated the sil file.
Is there a fix available or did someone find a workaround ?
Thanks,
Henrich.