Language attribute at the topic level

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
chrisj
Propeller Head
Posts: 87
Joined: Thu Jun 26, 2014 8:08 am
Location: Omaha, NE

Language attribute at the topic level

Post by chrisj »

I am running into an issue in trying to set the language attribute at the topic level. I can set this in Flare fine, and it displays the country flag in the XML editor and the xml:lang attribute in the text editor. However, post build, the language tag is being replaced by the Target language. Per Flare's help, the topic level should take precedence over the target level, but this does not appear to be the case. What am I missing here?
Chris Jones
Product Content Manager - TEAM Software
Image
kathryngz
Propeller Head
Posts: 76
Joined: Wed May 14, 2014 11:31 am

Re: Language attribute at the topic level

Post by kathryngz »

I realize this is an old thread, but I'm having the same issue and it's causing significant problems on my current project.

I have a project where the target language is set to Spanish (es). However, there are some untranslated pages that need to be set to English. I'm using the language attribute to display a message (via javascript) for untranslated files. So it is critical that the language attributes be correct.

I set the language attribute using the Topic Properties dialog. This is what I see in code view:

<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" xml:lang="en">

But when I publish, this is what I see in the browser inspector on the same document:

<html xmlns:madcap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" lang="es" xml:lang="es" class="_Skins_gvsg_sideNav" data-mc-search-type="Stem" data-mc-help-system-file-name="Default.xml" data-mc-path-to-help-system="../../../" data-mc-has-content-body="True" data-mc-target-type="WebHelp2" data-mc-runtime-file-type="Topic;Default" data-mc-preload-images="false" data-mc-in-preview-mode="false" data-mc-toc-path="FLS Resources|Getting Started in FLS">

Notice that Flare has removed the English language attribute which I set and replaced it with two es attributes!!

How can I get Flare to use the attribute I specified in the topic and not add two incorrect attributes?

Thanks for any help or suggestions!

Kathryn
Post Reply