2008-04-04 22:57:23 +00:00
|
|
|
<?php
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Piwigo - a PHP based picture gallery |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
|
2008-05-15 18:43:33 +00:00
|
|
|
// | Copyright(C) 2003-2008 Piwigo team http://phpwebgallery.net |
|
2008-04-04 22:57:23 +00:00
|
|
|
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2008-04-16 20:09:23 +00:00
|
|
|
|
2008-04-05 11:14:37 +00:00
|
|
|
/*
|
2007-11-18 19:59:33 +00:00
|
|
|
Plugin Name: Language Switch
|
2008-09-25 17:46:27 +00:00
|
|
|
Version: 2.0
|
2007-11-19 19:51:54 +00:00
|
|
|
Description: Switch to another language from flags on your gallery home page.
|
2008-03-02 18:56:05 +00:00
|
|
|
Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=123
|
2008-05-15 18:43:33 +00:00
|
|
|
Author: Piwigo team
|
|
|
|
Author URI: http://piwigo.org
|
2007-11-18 19:59:33 +00:00
|
|
|
*/
|
2008-04-16 20:09:23 +00:00
|
|
|
|
2007-11-18 19:59:33 +00:00
|
|
|
include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
|
2007-11-19 19:51:54 +00:00
|
|
|
add_event_handler('loading_lang', 'language_switch' );
|
2007-11-18 19:59:33 +00:00
|
|
|
add_event_handler('loc_end_index', 'Lang_flags' );
|
|
|
|
?>
|