]> git.koha-community.org Git - koha.git/commit
Bug 11848: Make Koha::I18N easier to use
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 26 Feb 2014 15:45:59 +0000 (16:45 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 04:30:02 +0000 (04:30 +0000)
commitd24b24adee9d686c100b8b4e298abbb3ad89a950
tree67bf7079295a007413734e3e6c50fe19640a75fc
parent76e39750b7d1f767b9fd93ce328ab25a829898e3
Bug 11848: Make Koha::I18N easier to use

Instead of writing

  use CGI;
  use Koha::I18N;
  my $cgi = new CGI;
  my $lh = Koha::I18N->get_handle_from_context($cgi, 'intranet');
  print $lh->maketext('my translatable text');

you can now write

  use Koha::I18N;
  print gettext('my translatable text');

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/I18N.pm
misc/translator/LangInstaller.pm