strings.js not updating

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
rdelong
Posts: 50

strings.js not updating

Thu Apr 23, 2015 9:12 pm

I updated the localized strings file for spanish (strings-es-es.xml) and uploaded to our CMS, and created the WebHelp output, but the strings.js file still contains the old values.

How do I get the strings.js file updated?
sorin_ristache
Posts: 4144

Re: strings.js not updating

Fri Apr 24, 2015 2:41 pm

What CMS application do you use? Do you have a WebHelp plugin installed in your CMS? Did you install it or it came already installed by the CMS installation kit?

What is the location of the strings-es-es.xml file in the DITA-OT directory in the CMS? The correct location for the XML localization files is DITA-OT-DIR\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\localization.

Does the DITA map set the language with the xml:lang="es-es" attribute?

In what output directory are the WebHelp pages generated by the WebHelp conversion executed by the CMS?
Regards,
Sorin

<oXygen/> XML Editor Support
rdelong
Posts: 50

Re: strings.js not updating

Sat May 02, 2015 2:06 am

sorin wrote:What CMS application do you use?

Astoria

sorin wrote:Do you have a WebHelp plugin installed in your CMS?

Yes, we have a registered/licensed version of WebHelp Plugin installed on the CMS

sorin wrote:Did you install it or it came already installed by the CMS installation kit?

Astoria administrator installed it.

sorin wrote:What is the location of the strings-es-es.xml file in the DITA-OT directory in the CMS? The correct location for the XML localization files is DITA-OT-DIR\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\localization.

This is the location for the strings-es-es.xml

sorin wrote:Does the DITA map set the language with the xml:lang="es-es" attribute?

The bookmap is set to @xml:lang="es"

sorin wrote:In what output directory are the WebHelp pages generated by the WebHelp conversion executed by the CMS?

D:\DITA_OUTPUT\temp\DITA-OT\temp332992-results (temp332992 varies by output job)
sorin_ristache
Posts: 4144

Re: strings.js not updating

Mon May 04, 2015 12:56 pm

rdelong wrote:
sorin wrote:What is the location of the strings-es-es.xml file in the DITA-OT directory in the CMS? The correct location for the XML localization files is DITA-OT-DIR\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\localization.

This is the location for the strings-es-es.xml

sorin wrote:Does the DITA map set the language with the xml:lang="es-es" attribute?

The bookmap is set to @xml:lang="es"


If the bookmap sets the language to @xml:lang="es" then the localization file must be named strings-es.xml. If the bookmap sets the language to @xml:lang="es-es" then the localization file must be named strings-es-es.xml.
Regards,
Sorin

<oXygen/> XML Editor Support
rdelong
Posts: 50

Re: strings.js not updating

Mon May 04, 2015 8:03 pm

The information that you mention is controlled by the strings.xml file. Here's an excerpt from that file:
<langlist>
...
<lang xml:lang="es" filename="strings-es-es.xml"/>

So, now what?

You still haven't addressed the question of my OP: how is the strings.js created? I still can't figure out why changes that I make to the strings-es-es.xml are not making it into this js file.
sorin_ristache
Posts: 4144

Re: strings.js not updating

Tue May 05, 2015 10:08 am

Any label that is added to an XML localization file and has the js="true" attribute, for example:

Code: Select all

 <str name="label.key">Label Text Here</str>


will be added to the strings.js file. The js="true" attribute is added by default if the label does not have a js attribute, so you just need an element as above in your strings-es-es.xml, which acts as if it had the attribute by default:

Code: Select all

 <str name="label.key" js="true">Label Text Here</str>


Please check that you are generating the WebHelp pages in the output directory where you expect the strings.js file to be updated with the labels that you modified/added.

If you are looking at the latest WebHelp pages generated by the Oxygen WebHelp transformation but the latest changes in strings-es-es.xml are not transferred to the latest strings.js file please send us a set of DITA XML files for reproducing the problem.
Regards,
Sorin

<oXygen/> XML Editor Support

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests