[Koha-bugs] [Bug 11848] Make Koha::I18N easier to use
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 20 21:58:28 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11848
Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25665|0 |1
is obsolete| |
--- Comment #11 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 26495
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26495&action=edit
[SIGNED-OFF] 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 at gmail.com>
No errors
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list