Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6472

Support injection into i18n key generators

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: i18n
    • Labels:
      None

      Description

      So we can create custom generator with injected components (like SiteManager).
      The solution is simple:

      info.magnolia.i18nsystem.I18nKeyGeneratorFactory#newKeyGenerator {
          return Components.newInstance(i18nable.keyGenerator());
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: