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


_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/koha-devel

Reply via email to