Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1125

Spurious WARN messages for translation messages of contributed actions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.8.0
    • Fix Version/s: 1.12.0
    • Component/s: Core
    • Labels:
      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

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 84d973d3dc1d5594b63d9676999b697e1b035c46 in isis's branch refs/heads/master from Dan Haywood
        [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=84d973d ]

        ISIS-1125: reducing the number of warning messages for missing translations.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 84d973d3dc1d5594b63d9676999b697e1b035c46 in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=84d973d ] ISIS-1125 : reducing the number of warning messages for missing translations.

          People

          • Assignee:
            danhaywood Dan Haywood
            Reporter:
            danhaywood Dan Haywood
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development