1 | <?php /* |
---|
2 | Plugin Name: Language Switch |
---|
3 | Version: 1.8 |
---|
4 | Description: Switch to another language from flags on your gallery home page. |
---|
5 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=123 |
---|
6 | Author: PhpWebGallery team |
---|
7 | Author URI: http://www.phpwebgallery.net |
---|
8 | */ |
---|
9 | // +-----------------------------------------------------------------------+ |
---|
10 | // | PhpWebGallery - a PHP based picture gallery | |
---|
11 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
12 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
13 | // +-----------------------------------------------------------------------+ |
---|
14 | // | file : $Id: main.inc.php 2243 2008-03-02 18:56:05Z patdenice $ |
---|
15 | // | last update : $Date: 2008-03-02 18:56:05 +0000 (Sun, 02 Mar 2008) $ |
---|
16 | // | last modifier : $Author: patdenice $ |
---|
17 | // | revision : $Revision: 2243 $ |
---|
18 | // +-----------------------------------------------------------------------+ |
---|
19 | // | This program is free software; you can redistribute it and/or modify | |
---|
20 | // | it under the terms of the GNU General Public License as published by | |
---|
21 | // | the Free Software Foundation | |
---|
22 | // | | |
---|
23 | // | This program is distributed in the hope that it will be useful, but | |
---|
24 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
25 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
26 | // | General Public License for more details. | |
---|
27 | // | | |
---|
28 | // | You should have received a copy of the GNU General Public License | |
---|
29 | // | along with this program; if not, write to the Free Software | |
---|
30 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
31 | // | USA. | |
---|
32 | // +-----------------------------------------------------------------------+ |
---|
33 | include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php'); |
---|
34 | add_event_handler('loading_lang', 'language_switch' ); |
---|
35 | add_event_handler('loc_end_index', 'Lang_flags' ); |
---|
36 | ?> |
---|