![]() |
|
Need to add lang attribute - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Need to add lang attribute (/thread-1915.html) |
Need to add lang attribute - Steadfast - 08-28-2020 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! RE: Need to add lang attribute - Encina - 08-29-2020 procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject); begin HTMLLanguage := 'zh'; //https://www.w3schools.com/tags/ref_language_codes.asp end; RE: Need to add lang attribute - Steadfast - 08-29-2020 Thank you. I tried that code but end up with HTMLLanguage as an undeclared identifier. I am not sure what I am missing. RE: Need to add lang attribute - Encina - 08-29-2020 (08-29-2020, 04:09 PM)Steadfast Wrote: Thank you. v15.2.15 RE: Need to add lang attribute - Steadfast - 08-30-2020 I don't have the property. I am running version 14.1.13. Can I get this to work with that version? RE: Need to add lang attribute - Alexandre Machado - 08-30-2020 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/building-intraweb-from-sources/ RE: Need to add lang attribute - Steadfast - 08-30-2020 It looks like I do have the source available so I will try that. Thank you! What version was that property added? RE: Need to add lang attribute - Alexandre Machado - 08-30-2020 It was introduced in version 14.2.0, on 29-Aug-2017 |