i18n
[old-projects.git] / philter / philter / include / js_factory.inc.php
CommitLineData
dd8de1ec
PH
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
5ae3e923
PH
13/********** i18n **********/
14
15echo "del_i18n = '"._i18n('del')."';\n";
16echo "del_q_i18n = '"._i18n('del_email_q')."';\n";
17
dd8de1ec
PH
18/********** mail_pool **********/
19echo $mail_pool->to_js();
20
21/********** filter **********/
22echo $filter->to_js();
23
24/********** matches **********/
25foreach($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 **********/
31foreach($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?>