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? Thanks, Owen -- Web Developer Nelsonville Public Library http://www.myacpl.org
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
participants (2)
-
Owen Leonard -
Paul POULAIN