Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.8
-
None
-
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.
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.