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 Nighswonger <chris.nighswonger@gmail.com>
Sat, 8 Oct 2011 16:50:53 +0000 (12:50 -0400)
commite57c54c332c8000d5fab786e06b51858331fd218
tree8fc77f8bda66af36bbe184ea194e3180824673ea
parentc48fcbc8e99c64d1022f18c6343c161db103348b
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>
(cherry picked from commit 62b76aa98c4f30ae32cb76ba0348e94d31e8464f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Templates.pm