i18n for ${ask()} Variables
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 26
- Joined: Wed Apr 10, 2013 12:34 pm
- Location: Utrecht, Netherlands
i18n for ${ask()} Variables
Hi all,
I have a question about the i18n functionality in a custom framework. Is there any way to use the i18n function within calls to ${ask()} during Actions? I just finished implementing the new i18n functionality in my CSS and I just realized that the ${ask()} instances are the last thing that I'm not sure how to translate. I've tried just putting the ${i18n()} tag within an ask(), but it just gives me that string back out.
Thanks in advance for any guidance you can give...
I have a question about the i18n functionality in a custom framework. Is there any way to use the i18n function within calls to ${ask()} during Actions? I just finished implementing the new i18n functionality in my CSS and I just realized that the ${ask()} instances are the last thing that I'm not sure how to translate. I've tried just putting the ${i18n()} tag within an ask(), but it just gives me that string back out.
Thanks in advance for any guidance you can give...
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: i18n for ${ask()} Variables
Hi Mike,
Just to see if I understand your situation, you have defined an Author action which invokes an author operation like ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation with a parameter like:
and you expect the key to be expanded to the translated value and then shown in the dialog.
If this is the case, indeed this is a small bug on our part and we'll try to fix it in a future version.
If not, maybe you could give us more details about your use case.
Regards,
Radu
Just to see if I understand your situation, you have defined an Author action which invokes an author operation like ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation with a parameter like:
Code: Select all
<abc>${ask('${i18n(show.table.properties)}')}</abc>
If this is the case, indeed this is a small bug on our part and we'll try to fix it in a future version.
If not, maybe you could give us more details about your use case.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 26
- Joined: Wed Apr 10, 2013 12:34 pm
- Location: Utrecht, Netherlands
Re: i18n for ${ask()} Variables
Yes, that's exactly what I tried and it just returns the ${i18n(show.table.properties)} string instead of expanding it. Does that work for you in version 15.2? Maybe I had something incorrectly configured?
Thanks for your help
Thanks for your help
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: i18n for ${ask()} Variables
Hi,
As I said this is a small bug on our part and we'll try to fix it in the next version of Oxygen (version 16 in the summer of 2014).
What you could try to do would be to make your own implementation of the ro.sync.ecss.extensions.api.AuthorOperation interface which shows a small dialog implemented in java Swing to the end user. The Java sources of the ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation operation are available in the Author SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK
Regards,
Radu
As I said this is a small bug on our part and we'll try to fix it in the next version of Oxygen (version 16 in the summer of 2014).
What you could try to do would be to make your own implementation of the ro.sync.ecss.extensions.api.AuthorOperation interface which shows a small dialog implemented in java Swing to the end user. The Java sources of the ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation operation are available in the Author SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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