[MAGNOLIA-5268] As a developer I can annotate objects to be internationalized and let a framework do the rest Created: 27/Aug/13  Updated: 15/Sep/15  Resolved: 16/Sep/13

Status: Closed
Project: Magnolia
Component/s: i18n
Affects Version/s: None
Fix Version/s: 5.1

Type: Story Priority: Critical
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: i18n
Σ Remaining Estimate: 2d Remaining Estimate: 2d
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: 2d Original Estimate: 2d

Issue Links:
dependency
is depended upon by MAGNOLIA-5309 I18nizer: pluggable/configurable way ... Open
is depended upon by MGNLUI-1826 i18n keys: As a developer I don’t hav... Closed
is depended upon by MAGNOLIA-5315 I18nizer: allow default values, optio... Closed
relation
is related to MAGNOLIA-5317 i18nizer: Default values set in a con... Closed
is related to MAGNOLIA-5876 Freemarker templates and jsp are not ... Closed
is related to MAGNOLIA-5296 I18nizer: Pattern or API for unmodele... Open
supersession
supersedes MAGNOLIA-5283 New module in magnolia_main Closed
supersedes MAGNOLIA-1519 i18n should be definable at module level Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MAGNOLIA-5283 New module in magnolia_main Sub-task Closed Magnolia International  
MAGNOLIA-5284 Define new package name(s) Sub-task Closed Magnolia International  
MAGNOLIA-5306 Implement a default Translation Service Sub-task Closed Federico Grilli  
MAGNOLIA-5310 Create update tasks to remove depreca... Sub-task Closed Federico Grilli  
MAGNOLIA-5313 Allow AbstractI18nKeyGenerator to res... Sub-task Closed Jozef Chocholacek  
MAGNOLIA-5314 ensure UTF-encoding when loading the ... Sub-task Closed Christoph Meier  
MAGNOLIA-5341 LocaleUtils resolves language misplac... Sub-task Closed Federico Grilli  
MAGNOLIA-5344 Convenience component to translate an... Sub-task Closed Magnolia International  
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)
Epic Link: language bundles
Sprint: 5.1 Beta1- Frontend, 5.1 - Final
Story Points: 2

 Description   

Up until Magnolia 5.0, we were relying on code calling info.magnolia.cms.i18n.MessagesManager in each and every place that needed translation.
The process was tedious and error prone. If a developer forgot to do this from the start, or to write his code in such a way that labels could be internationalized, finding usages of code and replacing it can be a long and error prone process.
With this proposal, we introduce an annotation-based framework, where any object can be decorated such that its method annotated with @I18nText will return a translated text.



 Comments   
Comment by Magnolia International [ 25/Sep/13 ]

Reopening - adding convenience method for "known keys". Not convinced this is the way to go, but it'll help getting rid of basenames and calls to MessageUtil.

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