#1 2015-08-19 07:55:28

lagodny
Member
Registered: 2015-01-28
Posts: 50

i18nAddLanguageItems does not work correctly

In i18nAddLanguageItems function LanguageAbrToIndex gets filename with extention (en.msg, ru.msg)

function LanguageAbrToIndex(const value: RawUTF8): TLanguages;
// LanguageAbrToIndex('GR')=1
begin
  if length(value)=2 then
    result := LanguageAbrToIndex(pointer(Value)) else
    result := LANGUAGE_NONE;
end;

So we always get LANGUAGE_NONE

Offline

#2 2015-08-19 10:44:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: i18nAddLanguageItems does not work correctly

Indeed.

Should be fixed by http://synopse.info/fossil/info/91e29f45aa

Thanks for the feedback!

Online

Board footer

Powered by FluxBB