[MAGNOLIA-3296] Dialogs opened by clicking on buttons generated by cms:button tag doesn't support i18n (if enabled) Created: 09/Sep/10  Updated: 13/Dec/11  Resolved: 09/Sep/10

Status: Closed
Project: Magnolia
Component/s: i18n, taglibs
Affects Version/s: 4.3.6
Fix Version/s: 4.3.7, 4.5

Type: Bug Priority: Major
Reporter: Manuel Molaschi Assignee: Manuel Molaschi
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

I have i18n support enabled and the following code in my jsp

<cms:mainBar paragraph="page-properties">
  <cms:button dialogName="service-properties" label="Service" position="right" />
</cms:mainBar>

The "service-properties" dialog has some fields with i18n enabled.
When i click on "Service" button in the main bar, i18n on opened dialog doesn't work.

Looking at ButtonTag class, where the mgnlOpenDialog javascript function call is created, there is no check for i18n support and (even if it is enabled) the current locale is not added to parameters list.



 Comments   
Comment by Manuel Molaschi [ 09/Sep/10 ]

If i18n support is enabled, the current locale (retrieved from i18nContentSupport) is appended to mgnlOpenDialog parameters

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