Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The issues are briefly summarised in 

Jira
serverMagnolia - Issue tracker
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId500b06a6-e204-3125-b989-2d75b973d05f
keyMGNLUI-3490
. This page aims to provide a bit more details and possible ways to improve the situation.

...

Localisation support

  • Mess with the interfaces, high level of indirection.
    • Transformer#hasI18NSupportTransformedProperty#hasI18NSupport which delegates to the first one.
    • Three objects' methods have to be called so that the new language is applied to a property (TransformerTransformedProperty and DefaultI18NAuthoringSupport):
      • DefaultI18NAuthoringSupport#constructI18NPropertyName
      • Transformer#setI18NPropertyName 
      • Transformer#setLocale which simply stores new locale in transformer object,
      • TransformedProperty#fireI18NValueChange which in reality simply re-reads the value from the transformer.
         
  • I18NAuthoringSupport digs into UI structures code searching for the components with localize-able data-sources.
    • Logic separation levels breached
    • Looks cryptic 
    • instanceof's checking the abstract objects to belong to concrete types like BasicTransformerTransformedProperty etc
  • Not possible to localize the multi-fields.
  • Jira
    serverMagnolia - Issue tracker
    serverId500b06a6-e204-3125-b989-2d75b973d05f
    keyMGNLUI-3491
     - switching language negatively affects validation.

...