Koha::Templates - Object for manipulating templates for use with Koha
C4::Templates - Functions for managing templates
my $cookie = getlanguagecookie($query,$language);
Returns a cookie object containing the calculated language to be used.
Select a language based on the URL parameter 'language', a cookie, syspref available languages & browser