Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-580

Default language in forrest.properties

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • Labels:
      None

      Description

      When developing a multilingual site, it would be beneficial if the default/fallback language could be configured from forrest.properties. This would imply that, given 'no' as fallback, one of the following two scenarios would be true:

      1)
      files: index.xml, index_es.xml, index_en.xml

      Requests for both index.html and index_no.html would generate the returned page from index.xml

      2)
      files: index_no.xml, index_es.xml, index_en.xml

      Requests for both index.html and index_no.html would generate the returned page from index_no.xml

      In both cases the end result would be that there would be no need to maintain more than one file for the fallback language.

      I would prefer the second alternative just for the sake of symmetry and equality of languages. It has the additional benefit of making it very easy to change the default/fallback language - just change the forrest.properties setting. The second alternative would also make it easier to create a language override menu, as all the available languages/locales would be encoded explicitly in the file name.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              moshagen Sjur N. Moshagen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: