[Koha-bugs] [Bug 11848] New: Make Koha::I18N easier to user
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Feb 26 16:53:48 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11848
Bug ID: 11848
Summary: Make Koha::I18N easier to user
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: julian.maurice at biblibre.com
Reporter: julian.maurice at biblibre.com
QA Contact: testopia at bugs.koha-community.org
CC: frederic at tamil.fr
Depends on: 8044
Actually (with bug 8044), to translate a string in a Perl script or module you
have to write:
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');
With the patches I'll submit, this will become:
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