Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1125

Spurious WARN messages for translation messages of contributed actions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.8.0
    • 1.12.0
    • Core
    • None

    Description

      We think that Isis is attempting to find translations for non-existent methods...

      transcript below from Martin Grigorov while debugging an application...

      ... was searching for "Account@findOrderByEmail()"

      confused at org.apache.isis.core.metamodel.facets.all.i18n.TranslationFacetFactory#process(org.apache.isis.core.metamodel.facets.ContributeeMemberFacetFactory.ProcessContributeeMemberContext)
      final String context = holder.getIdentifier().toClassAndNameIdentityString();
      the holder is about Orders#findOrderByEmail()

      but in -es.po I have:

      #: com.tellmegen.domain.model.accounts.Account#findOrderByEmail()
      #: com.tellmegen.domain.model.order.Orders#findOrderByEmail()
      msgid "Find Order By Email"
      msgstr "Encontrar pedido por email"

      and final String context = holder.getIdentifier().toClassAndNameIdentityString(); calculates context with Account

      the only problem I see is that it logs a WARN
      let me see what I have for Orders

      it works fine for Orders
      so the only problem seems to be that an entry is added to the runtime POT and later Isis dumps a WARN that that there is no translation
      but:
      1) there is a translation
      2) there is no such method in Account

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: