Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1717

usersguide/localization missing doc in Component Message Catalogs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      To make Tapestry find a messages catalog for a page, the page specification file must exists.
      This is not wrote in the documentation. I spent some time to find the problem ...

      This tips should be add to the documentaion, I think in :
      http://tapestry.apache.org/tapestry4.1/usersguide/localization.html
      chapter : Component Message Catalogs

      Example :

      If there is a page Home.html, Home.properties will not be used to resolve a message
      Home.html :
      <span key="intro-title">blabla</span>
      Home.properties :
      intro-title=The introduction message
      Render will be :
      [INTRO-TITLE]

      To make it working, we must add an empty Home.page file.
      <?xml version="1.0"?>
      <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
      <page-specification >
      </page-specification>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cyrille37 Cyrille
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: