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>
|
||
|---|---|---|
| .. | ||
| po | ||
| LangInstaller.pm | ||
| Makefile | ||
| TmplTokenizer.pm | ||
| VerboseWarnings.pm | ||
| text-extract.pl | ||
| text-extract2.pl | ||
| tmpl_process3.pl | ||
| translate | ||
| translator_doc.html | ||
| translator_doc.txt | ||
| xgettext.pl | ||