[jira] [Commented] (ISIS-1247) .layout.json file not found if i18n is enabled ... uses the translated name to lookup the file.
Cesar Lugo (JIRA <jira@...
2015-11-25 14:18:11 GMT
Cesar Lugo commented on ISIS-1247:
Hello, I originally prepared an example and provided some directions to reproduce the error:
I created a sample repository to show the issue, on github:
After you download the repository, run the app, and then when in the wicket viewer (standard sven user),
follow these steps:
1) Using the businessSubscriptions menu on the left, create a new businessSubscription (Add
Subscription option). Use any numeric values for both parameters, like 1 and 30. This will show a newly
created subscription with all fields organized in 3 sections aligned horizontally, according to
BusinessSubscription.layout.json under dom's domainapp.dom.simple.businesses pack.
2) Now go to the Prototyping menu, select the option "Switch to Reading Translations"
3) Go back to the businessSubscriptions menu, now select the option to list all business subscriptions
(now in Spanish, "Lista las Subscripciones de Negocios"). It will show the businessSubsciption, but now
the layout is lost, showing it with the default Isis wicket viewer layout. Yo might need to refresh the
businessSubscription to force it reload.
4) If you go back to "Switch to Writing Translations" and list all businessSubscriptios again, the layout
comes back. Again, Yo might need to refresh the businessSubscription to force it reload.
I hope this helps you to see the issue, or if not an issue.