Author view customisation -oxy-placeholder-content and i18n
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 37
- Joined: Mon Jan 23, 2017 11:20 am
Author view customisation -oxy-placeholder-content and i18n
I configured a custom framework and customised the corresponding author view to show the data as a table. As I have some element that initially get inserted empty (rendered as empty cells) and the schema requires child elements that will be inserted by the users I would like to visualise this error more prominently in the table.
My idea was to use the
This works fine as long as I do not want to pull a i18n value from the translation.xml. When I use internatinalization, e.g.:
the resulting output is "${i18n(bazga.kb.error.empty.placeholder)}" though. Restarting oXygen XML Editor didn't bring up any change. I'm using oXygen 18.1 on macOS Sierra 10.12.6
Any ideas what's going wrong?
My idea was to use the
Code: Select all
-oxy-placeholder-content:"SOMEVALUE";
Code: Select all
-oxy-placeholder-content:"${i18n(bazga.kb.error.empty.placeholder)} ";
Any ideas what's going wrong?
=====
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author view customisation -oxy-placeholder-content and i18n
Hi,
Indeed the i18n editor variable did not properly expand in the -oxy-placeholder-content in Oxygen 18.1 and older.
We made it work in Oxygen 19.0 (and newer). So you should consider upgrading the used Oxygen installation.
Or you can try to avoid using the placeholder-content property and instead do something like:
because the i18n editor variable was properly expanded in static "content" properties even in 18.1.
Regards,
Radu
Indeed the i18n editor variable did not properly expand in the -oxy-placeholder-content in Oxygen 18.1 and older.
We made it work in Oxygen 19.0 (and newer). So you should consider upgrading the used Oxygen installation.
Or you can try to avoid using the placeholder-content property and instead do something like:
Code: Select all
p:empty{
content:"${i18n(subscript_description)}";
background-color:gray;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 37
- Joined: Mon Jan 23, 2017 11:20 am
Re: Author view customisation -oxy-placeholder-content and i18n
This is just a great alternative that I wasn't aware of!
Always great to learn some standard CSS on the fly!!
Please excuse my late reply, other issues of my custom framework had me more distracted
Always great to learn some standard CSS on the fly!!
Please excuse my late reply, other issues of my custom framework had me more distracted

=====
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
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