[Koha-bugs] [Bug 11848] Make Koha::I18N easier to user
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Feb 26 16:54:54 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11848
--- Comment #2 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 25665
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25665&action=edit
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');
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list