Uploaded image for project: 'CAL10N'
  1. CAL10N
  2. CAL-36

Ignoring Default Bundle

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • slf4j 1.7.2 with cal10n 0.7.4

    Description

      I don't believe cal10n should fail if the default resource bundle exists and contains the required key.

      I am hitting the following exception:
      ch.qos.cal10n.MessageConveyorException: Failed to locate resource bundle
      [Bundle] for locale [en_US] for enum type [com.mycompany.Messages]
      at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:115)
      at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)
      at org.slf4j.cal10n.LocLogger.error(LocLogger.java:167)

      I have a default Bundle.properties in my classpath but cal10n doesn't use it.
      Everything works fine when I have a Bundle_en_US.properties.
      However, it is called the default resource bundle for a reason so it should be used.

      Related mail threads:
      http://mailman.qos.ch/pipermail/cal10n-user/2013-February/000025.html
      http://mailman.qos.ch/pipermail/cal10n-user/2010-September/000020.html
      http://mailman.qos.ch/pipermail/cal10n-dev/2009-September/000298.html

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            darvar DK
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: