Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-185

Explain @I18nBasename in Blossom-Components

    XMLWordPrintable

Details

    • Task
    • Resolution: Not an issue
    • Major
    • None
    • 3.0.2
    • None
    • None
    • Magnolia 5.3

    Description

      The Documentation (https://documentation.magnolia-cms.com/display/DOCS/Blossom+module) says that I have to set the @I18nBasename with "the resource bundle you want to use". But it is unclear what value I have to set. Should it match the module name, the module package, artifactID + groupdID, the messages_locale.properties file name or something else? And do the keys in the properties file have to match with a special convention or can i use whatever key i want?

      Other sources say, that the "Basename" in general is deprecated (http://magnolia.namics.com/2013/12/20/i18n-in-magnolia-5/), but removing the @I18nBasename will lead to a "i18n is undefined"-error in the freemarker-templates.

      Also, explain in the documentation how to use i18n in the java-code of a blossom-component or page.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              ademasi Adi De Masi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR