" causing issues for the interface translation in responsive webhelp
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 25
- Joined: Mon Sep 17, 2007 10:02 am
- Location: Flanders
" causing issues for the interface translation in responsive webhelp
All,
I am in the process of localising the user interface of the responsive webhelp
Using v23
following the steps in
https://www.oxygenxml.com/doc/versions/ ... nsive.html
and I had the string files translated in the different languages I need
The italian translation seems to break the search functionality (browser blocked)
After some digging I found
<str name="index.terms.page.title" js="true" php="false">Termini dell'indice</str>
and
<str name="no_results_only_stop_words2" js="true" php="false">... come "di", "il", ...</str>
In the English original I found
<str name="no_results_only_stop_words2" js="true" php="false">...such as: 'of ' , ...</str>
And really, the English original has no " at all (using ' all over the place instead)
I was confused that the localize-webhelp-responsive.html has this example
<str name="webhelp.search" js="true" php="false">Polish translation for "Search"</str>
I do realize this is stub information (likely not tested) and assume that " and " should be considered the equivalent.
So I have not tested the " instead of ")
After I removed the " and added the ' instead, all issues were gone.
Maybe this is a bug, or an instruction missing from the manual... or maybe I am just missing something?
Any thoughts or suggestion?
Thanks
Geert Bormans
I am in the process of localising the user interface of the responsive webhelp
Using v23
following the steps in
https://www.oxygenxml.com/doc/versions/ ... nsive.html
and I had the string files translated in the different languages I need
The italian translation seems to break the search functionality (browser blocked)
After some digging I found
<str name="index.terms.page.title" js="true" php="false">Termini dell'indice</str>
and
<str name="no_results_only_stop_words2" js="true" php="false">... come "di", "il", ...</str>
In the English original I found
<str name="no_results_only_stop_words2" js="true" php="false">...such as: 'of ' , ...</str>
And really, the English original has no " at all (using ' all over the place instead)
I was confused that the localize-webhelp-responsive.html has this example
<str name="webhelp.search" js="true" php="false">Polish translation for "Search"</str>
I do realize this is stub information (likely not tested) and assume that " and " should be considered the equivalent.
So I have not tested the " instead of ")
After I removed the " and added the ' instead, all issues were gone.
Maybe this is a bug, or an instruction missing from the manual... or maybe I am just missing something?
Any thoughts or suggestion?
Thanks
Geert Bormans
-
- Posts: 25
- Joined: Mon Sep 17, 2007 10:02 am
- Location: Flanders
Re: " causing issues for the interface translation in responsive webhelp
I guess it could be a bug...
In the generated strings.js I see this
having a " inside the " delimited string values might break the string value
if so, I would suggest to either add the warning to the manual or escape the " in creating the array
If possible, I would suggest the latter, a very common procedure is to have an external translator for the string files translation
... and having them to translate an XML file is hard enough without an extra set of rules
Thanks
Geert
In the generated strings.js I see this
Code: Select all
define(function() {var localization = new Array();
localization["index.terms.page.title"]="Index Terms";
localization["toggle.menu"]="Toggle menu";
localization["label.cleditorControls"]="Insert your comment. Press Alt+S to submit your comment or Alt+` to discard it.";
...
if so, I would suggest to either add the warning to the manual or escape the " in creating the array
If possible, I would suggest the latter, a very common procedure is to have an external translator for the string files translation
... and having them to translate an XML file is hard enough without an extra set of rules
Thanks
Geert
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: " causing issues for the interface translation in responsive webhelp
Post by radu_pisoi »
Hi,
Indeed, the quote character should be automatically escaped when generating the localization JS files. I have added an issue to fix this in the next version.
Meanwhile, the workaround is to manually escape quotes in the XML translation files by adding '\' character before:
Than you for reporting this issue.
Indeed, the quote character should be automatically escaped when generating the localization JS files. I have added an issue to fix this in the next version.
Meanwhile, the workaround is to manually escape quotes in the XML translation files by adding '\' character before:
Code: Select all
<str name="index.terms.page.title" js="true" php="false">Termini dell\"indice</str>
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 25
- Joined: Mon Sep 17, 2007 10:02 am
- Location: Flanders
Re: " causing issues for the interface translation in responsive webhelp
Thanks Radu for looking into this and confirming the unexpected behaviour.
Thanks also for the workaround. I made it work yesterday by using ' instead of "
It is nice to have an alternative to that indeed
Thanks also for the workaround. I made it work yesterday by using ' instead of "
It is nice to have an alternative to that indeed
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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