[DOCU-2427] Missing dialog-specific i18n keys for fields Created: 06/Apr/22  Updated: 07/Apr/22  Resolved: 07/Apr/22

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Mikaël Geljić Assignee: Martin Drápela
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-04-07-08-42-12-262.png    
Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Administration/Language/Generic-i18n-keys.html
Reporter Name: Mikaël Geljić
Email: mikael.geljic@magnolia-cms.com

 Description   

Thanks to rkovarik for unearthing the syntax:

Looks like this was lost in translation 6.1 docu[<module>.]<dialogPath>.[<tab>.]<field>[.label]{}

* We have only one validator example indeed hinting at that syntax.

  • We also don't document the <dialogPath> tokenization
    • First get the dialog "relative path" from the dialog ID or file:
      • relative path starts under the dialogs directory in your light-module, and includes file name, but without the YAML extension. e.g. /travel-demo/dialogs/pages/main.yaml
      • OR check dialog ID in definitions app and trim the module name, e.g. travel-demo:pages/main
    • Then replace slash characters with dots (tokenization of path segments) => dialogPath = pages.main

 



 Comments   
Comment by Mikaël Geljić [ 06/Apr/22 ]

Update: the [<module>.] part is not optional at the moment, and tab support is uncertain (since tabs are not part of the properties hierarchy). So the correct syntax would be: <module>.<dialogPath>.<field>[.label].

Comment by Martin Drápela [ 07/Apr/22 ]

Indeed there has been some change between the original 6.1 (topshot) and 6.2 (bottomshot) confluence doc pages:

Generated at Mon Feb 12 01:27:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.