diff --git a/tools/icons_to_html/main.pas b/tools/icons_to_html/main.pas index 99283502a9..d7bc069b7b 100644 --- a/tools/icons_to_html/main.pas +++ b/tools/icons_to_html/main.pas @@ -419,31 +419,33 @@ begin IcoFileList.Count, IconGroups, PixSizeList.Count ])); - if cbTranslatedHTML.Checked then - begin - HTMLLines.Add('
'); - HTMLLines.Add('

' + rsInfoText1 + '

'); - HTMLLines.Add('

' + rsInfoText2 + '

'); - HTMLLines.Add(''); - HTMLLines.Add('

' + Format(rsImagesWereProvidedBy, [Link(URL_RolandHahn, URL_RolandHahn)]) + '

'); - HTMLLines.Add('

' + Format(rsLicense, [License_CC0]) + '
'); - HTMLLines.Add(Link(URL_CC0, URL_CC0) + '
'); - HTMLLines.Add(rsFreelyAvailable + '

'); - end else if FileExists(ImgDirectory + InfoTextFileName) then begin - try - InfoTxtList := TStringList.Create; - InfoTxtList.LoadFromFile(ImgDirectory + InfoTextFileName); + if cbTranslatedHTML.Checked then + begin HTMLLines.Add('
'); - for i := 0 to InfoTxtList.Count - 1 do - HTMLLines.Add(InfoTxtList[i] + '
'); - finally - InfoTxtList.Free; + HTMLLines.Add('

' + rsInfoText1 + '

'); + HTMLLines.Add('

' + rsInfoText2 + '

'); + HTMLLines.Add(''); + HTMLLines.Add('

' + Format(rsImagesWereProvidedBy, [Link(URL_RolandHahn, URL_RolandHahn)]) + '

'); + HTMLLines.Add('

' + Format(rsLicense, [License_CC0]) + '
'); + HTMLLines.Add(Link(URL_CC0, URL_CC0) + '
'); + HTMLLines.Add(rsFreelyAvailable + '

'); + end else + begin + InfoTxtList := TStringList.Create; + try + InfoTxtList.LoadFromFile(ImgDirectory + InfoTextFileName); + HTMLLines.Add('
'); + for i := 0 to InfoTxtList.Count - 1 do + HTMLLines.Add(InfoTxtList[i] + '
'); + finally + InfoTxtList.Free; + end; end; end; HTMLLines.Add('');