[MAGNOLIA-1359] freemarker: expose a simple way to render i18n messages Created: 08/Feb/07  Updated: 23/Jan/13  Resolved: 18/Oct/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0.1
Fix Version/s: 3.5 RC1

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-1431 i18n: basic content support Closed
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)
Date of First Response:

 Description   

some thing like ${i18n("key", "basename")} would be nice



 Comments   
Comment by Magnolia International [ 31/Aug/07 ]

this was started by vivian&philipp in the FreemarkerParagraphRenderer maybe we could generalize this and refine the syntax by providing a proper BeanWrapper.

Comment by Vivian Steller [ 20/Sep/07 ]

i18n of templates should be aligned with content i18n.

Comment by Vivian Steller [ 20/Sep/07 ]

FreemarkerParagraphRenderer now grab the locale from AggregationState

Comment by Magnolia International [ 18/Oct/07 ]

Moved MessagesWrapper to the info.magnolia.freemarker.

It's now used by FreemarkerHelper, so all users of FreemarkerHelper can benefit from it, not only the FreemarkerParagraphRenderer. (added a method on FreemarkerHelper which takes locale and i18nBasename parameters).

Also added tests. (feel free to complete )

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