koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-devel] dummy function for gettext [IMPORTANT]


From: Paul POULAIN
Subject: Re: [Koha-devel] dummy function for gettext [IMPORTANT]
Date: Fri, 31 Aug 2007 09:38:12 +0200
User-agent: Thunderbird 2.0.0.4 (X11/20070620)

Owen Leonard a écrit :
I'm curious about something in the 3.0 templates:

<script language="JavaScript" type="text/javascript">
    function _(s) { return s } // dummy function for gettext
    </script>

Can anyone tell me what purpose that serves?

Yes, I can, and it's very important to keep it here.
every string that is _('this is a string') is extracted by the template translator tool.
Without this, it is not.

So the dummy function is useless when running Koha, but very very important for translation process.

HTH

--
Paul POULAIN et Henri Damien LAURENT
Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org)
Tel : 04 91 31 45 19




reply via email to

[Prev in Thread] Current Thread [Next in Thread]