[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-devel] Perl-based gettext-like modules (was: Re: translation compl
From: |
Ambrose Li <address@hidden> via forwarder |
Subject: |
[Koha-devel] Perl-based gettext-like modules (was: Re: translation complaint...) |
Date: |
Wed Jan 29 17:45:04 2003 |
In article <address@hidden>,
Benedict <address@hidden> wrote:
> print $lh->maketext("You won!"), "\n";
>
>In french it should print "Tu as gagne".
>
>I am just wondering where these strings would have to live...in
>template files or in the perl scripts.
Based on the example, the original English strings will need to
live in the perl scripts.
After reading the man page in CPAN, I think the translated
strings will also need to live in a perl module.
>If template files are to remain clean of any code than this
>would not be a good idea, would it?
I don't think the templates is even allowed to contain code.
(See Q.9 in the HTML::Template FAQ in the man page.)
The module can still be used, if we create a function to scan
the HTML. (This will need to be done some time anyway, if we
want to convert to/from UTF-8 on the fly.) However, from a
cursory read of the maketext man page, using maketext seems to
be fairly involved; because of the feature freeze, I suppose
doing such a thing would be considered an experimental new
feature and thus should not be done for 1.9/2.0? Any comments,
Paul?
--
Ambrose LI Cheuk-Wing <address@hidden>
- [Koha-devel] translation complaint..., Benedict, 2003/01/28
- Re: [Koha-devel] translation complaint..., Chris Cormack, 2003/01/28
- Re: [Koha-devel] translation complaint..., Andrew Arensburger, 2003/01/28
- Re: [Koha-devel] translation complaint..., Benedict, 2003/01/29
- Re: [Koha-devel] translation complaint..., Tonnesen Steve, 2003/01/29
- [Koha-devel] Perl-based gettext-like modules (was: Re: translation complaint...),
Ambrose Li <address@hidden> via forwarder <=
- Re: [Koha-devel] Perl-based gettext-like modules (was: Re: translation complaint...), Andrew Arensburger, 2003/01/29
- Re: [Koha-devel] Perl-based gettext-like modules (was: Re: translation complaint...), Micheas Herman, 2003/01/29
- Re: [Koha-devel] Perl-based gettext-like modules (was: Re: translation complaint...), Rachel Hamilton-Williams, 2003/01/29
- [Koha-devel] Re: Perl-based gettext-like modules (was: Re: translation complaint...), Ambrose Li <address@hidden> via forwarder, 2003/01/30
- Re: [Koha-devel] Re: Perl-based gettext-like modules (was: Re: translation complaint...), Micheas Herman, 2003/01/30
- Re: [Koha-devel] Re: Perl-based gettext-like modules (was: Re:translation complaint...), Benedict, 2003/01/30
Re: [Koha-devel] translation complaint..., paul POULAIN, 2003/01/31
Re: [Koha-devel] translation complaint..., paul POULAIN, 2003/01/31