diff options
Diffstat (limited to 'web')
-rwxr-xr-x | web/faq.cgi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/faq.cgi b/web/faq.cgi index f2c1db867..cf46b3e65 100755 --- a/web/faq.cgi +++ b/web/faq.cgi @@ -6,10 +6,11 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: faq.cgi,v 1.40 2009-05-27 13:53:53 matthew Exp $ +# $Id: faq.cgi,v 1.41 2009-07-10 15:00:34 matthew Exp $ use strict; use Standard -db; +use mySociety::Locale; my $lastmodified = (stat $0)[9]; @@ -17,7 +18,12 @@ sub main { my $q = shift; print Page::header($q, title=>_('Frequently Asked Questions')); if ($q->{site} eq 'emptyhomes') { - print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.html"); + my $lang = $mySociety::Locale::lang; + if ($lang eq 'cy') { + print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.cy.html"); + } else { + print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.html"); + } } else { print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq.html"); } |