Bug 6205 - if an include doesn't exist, fall back to en
authorRobin Sheat <robin@catalyst.net.nz>
Thu, 22 Sep 2011 03:32:24 +0000 (15:32 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 25 Sep 2011 08:21:41 +0000 (21:21 +1300)
commit62b76aa98c4f30ae32cb76ba0348e94d31e8464f
treedde8f270e3dbfc1cdb5d5cb4b77402de09097217
parent38ca8d6de18e630751dcae313d66f8546934fb5c
Bug 6205 - if an include doesn't exist, fall back to en

If a language that doesn't exist gets accessed, then it will fall back
to en for the templates, but not for the includes, so everything still
dies. This allows the process to work in this case too.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
I confirm the bug and the solution. This issue occurs when templates are
partially translated. The main template (.tt) is found for a specific
language, so this language is returned by themetemplate. But in the main
template, some include files (subtemplates) are referenced that can very
well not exist if the translation process had failed to generate them.
This kind of failure is reported by 'translate' script. It's very easy
to miss it, but it's the translator responsability to check it.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Templates.pm