i18n
[old-projects.git] / philter / philter / include / js_factory.inc.php
1 <?php
2 /********************************************************************************
3 * include/js_factory.inc.php : The include file for creating dynamic JS functions
4 * --------------------------
5 *
6 * This file is part of the philter distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
9 ?>
10 <script language="javascript1.3" type="text/javascript">
11 <?php
12
13 /********** i18n **********/
14
15 echo "del_i18n = '"._i18n('del')."';\n";
16 echo "del_q_i18n = '"._i18n('del_email_q')."';\n";
17
18 /********** mail_pool **********/
19 echo $mail_pool->to_js();
20
21 /********** filter **********/
22 echo $filter->to_js();
23
24 /********** matches **********/
25 foreach($philter->config['match_plugins'] as $id=>$plugin) {
26 echo "matches_list[$id] = '" . $plugin->name() . "';\n";
27 echo "matches_func[$id] = " . $plugin->to_js() . ";\n\n";
28 }
29
30 /********** actions **********/
31 foreach($philter->config['action_plugins'] as $id=>$plugin) {
32 echo "actions_list[$id] = '" . $plugin->name() . "';\n";
33 echo "actions_func[$id] = " . $plugin->to_js() . ";\n\n";
34 }
35 ?>
36 </script>
37 <?php
38 /********************************************************************************
39 * $Id$
40 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
41 ********************************************************************************/
42 ?>