strings.js not updating
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 72
- Joined: Tue Oct 21, 2014 10:01 pm
strings.js not updating
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?
How do I get the strings.js file updated?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: strings.js not updating
Post by sorin_ristache »
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?
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
Sorin
<oXygen/> XML Editor Support
-
- Posts: 72
- Joined: Tue Oct 21, 2014 10:01 pm
Re: strings.js not updating
Astoriasorin wrote:What CMS application do you use?
Yes, we have a registered/licensed version of WebHelp Plugin installed on the CMSsorin wrote:Do you have a WebHelp plugin installed in your CMS?
Astoria administrator installed it.sorin wrote:Did you install it or it came already installed by the CMS installation kit?
This is the location for the strings-es-es.xmlsorin 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.
The bookmap is set to @xml:lang="es"sorin wrote:Does the DITA map set the language with the xml:lang="es-es" attribute?
D:\DITA_OUTPUT\temp\DITA-OT\temp332992-results (temp332992 varies by output job)sorin wrote:In what output directory are the WebHelp pages generated by the WebHelp conversion executed by the CMS?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: strings.js not updating
Post by sorin_ristache »
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.rdelong wrote:This is the location for the strings-es-es.xmlsorin 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.
The bookmap is set to @xml:lang="es"sorin wrote:Does the DITA map set the language with the xml:lang="es-es" attribute?
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- Posts: 72
- Joined: Tue Oct 21, 2014 10:01 pm
Re: strings.js not updating
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.
<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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: strings.js not updating
Post by sorin_ristache »
Any label that is added to an XML localization file and has the js="true" attribute, for example:
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:
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.
Code: Select all
<str name="label.key">Label Text Here</str>
Code: Select all
<str name="label.key" js="true">Label Text Here</str>
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
Sorin
<oXygen/> XML Editor Support
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service