Affects Version/s: None
Fix Version/s: None
Component/s: Online Editor & Rich Text field type
In the current iteration, custom tags are only given an identifier. Based on the specifications, we require for each custom tag:
- a human readable name ("Quote")
- a help text ("Add your quote")
- a human readable name per attribute ("Quote's author")
In addition, those elements must be translatable.
Field groups names use the translation system to provide human readable strings. We could easily do the same here. Each of the items given above would be outputted using the translation functions, using the custom tag's identifier as a key/prefix:
An extractor should be provided that looks for custom tags, and pregenerates the translation keys (example of an extractor). A default translation for the name should be generated based on the custom tag's key. Considering that eZ Systems custom tags would be prefixed with ez, like ezyoutube, we would strip down the ez prefix, replace _ with spaces, and capitalize the first letter.