[Koha] Check the current language
Robin Sheat
robin at catalyst.net.nz
Fri May 29 10:33:26 NZST 2015
Tomas Cohen Arazi schreef op do 28-05-2015 om 11:01 [-0300]:
> The problem is that you need to have the CGI object in the desired
> context
> (language is "calculated" from it). Then use:
>
> my $current_language = C4::Languages::getlanguage($query);
> > if ($current_language == "en")
The other problem is that this isn't correct Perl, it would be:
if ($current_language eq "en")
--
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <https://lists.katipo.co.nz/pipermail/koha/attachments/20150529/bee06727/attachment-0001.sig>
More information about the Koha
mailing list