Need to add lang attribute

<< Click to Display Table of Contents >>

Navigation:  Forum >

Need to add lang attribute

Forum link

 


 

08-28-2020, 08:55 PM:

 

I am running IntraWeb 14.1.13 and I am trying to add the lang attribute to the html element like <html lang="en">

 

How could I go about doing that?  TIA!

 


 

08-29-2020, 12:07 AM:

 

procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);

 

begin

 

HTMLLanguage := 'zh'; //https://www.w3schools.com/tags/ref_language_codes.asp

 

end;

 


 

08-29-2020, 04:09 PM:

 

Thank you.

 

I tried that code but end up with HTMLLanguage as an undeclared identifier. 

 

I am not sure what I am missing.

 


 

08-29-2020, 11:09 PM:

 

(08-29-2020, 04:09 PM)Steadfast Wrote: [ -> ]Thank you.

 

I tried that code but end up with HTMLLanguage as an undeclared identifier. 

 

I am not sure what I am missing.

 

v15.2.15

 


 

08-30-2020, 12:19 AM:

 

I don't have the property.  I am running version 14.1.13.  Can I get this to work with that version?

 


 

08-30-2020, 01:01 AM:

 

In this version the only way to change it is building it from your sources (if you have access to it) and changing the constant gHtmlStart in IWGlobal.pas.

 

Information on building IW from sources can be found here: https://doc.atozed.com/en/iw14/misc/buil...m-sources/

 


 

08-30-2020, 01:05 AM:

 

It looks like I do have the source available so I will try that.  Thank you!

 

What version was that property added?

 


 

08-30-2020, 10:14 PM:

 

It was introduced in version 14.2.0, on 29-Aug-2017