Dan Haywood created ISIS-1125:
---------------------------------

             Summary: Spurious WARN messages for translation messages of 
contributed actions
                 Key: ISIS-1125
                 URL: https://issues.apache.org/jira/browse/ISIS-1125
             Project: Isis
          Issue Type: Bug
          Components: Core
    Affects Versions: core-1.8.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: 1.9.0


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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to