~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to plugins/squirrelspell/modules/lang_change.mod

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Jeroen van Wolffelaar, Thijs Kinkhorst
  • Date: 2005-08-15 21:06:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050815210600-qxvat452exjqg64j
Tags: 2:1.4.5-2
[ Jeroen van Wolffelaar ]
* Restore squirrelmail-configure manpage, accidently dropped in -1
* Use debhelper compat level 4

[ Thijs Kinkhorst ]
* Drop obsolete symlink for attachment dir.
* Do not ship upstream README, which contains hardly any information
  relevant to Debian. Extend README.Debian a bit. Thanks W. Borgert.
* Add years to copyright statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * ----------------
5
5
 * Squirrelspell module
6
6
 *
7
 
 * Copyright (c) 1999-2003 The SquirrelMail development team
 
7
 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8
8
 * Licensed under the GNU GPL. For full terms see the file COPYING.
9
9
 *
10
10
 * This module changes the international dictionaries selection
11
 
 * for the user. Called after LANG_SETUP module.                
12
 
 *
13
 
 * $Id: lang_change.mod,v 1.4.2.2 2004/06/12 16:39:48 jervfors Exp $
14
 
 *
15
 
 * @author Konstantin Riabitsev <icon@duke.edu> ($Author: jervfors $)
16
 
 * @version $Date: 2004/06/12 16:39:48 $
 
11
 * for the user. Called after LANG_SETUP module.
 
12
 *
 
13
 * @author Konstantin Riabitsev <icon@duke.edu>
 
14
 * @version $Id: lang_change.mod,v 1.4.2.5 2005/06/15 21:12:08 kink Exp $
 
15
 * @package plugins
 
16
 * @subpackage squirrelspell
17
17
 */
18
18
 
19
19
global $SQSPELL_APP_DEFAULT;
49
49
        $lang_string = str_replace("$lang_default", "$hold", $lang_string);
50
50
        $lang_string = $lang_default . ", " . $lang_string;
51
51
      } else {
52
 
        /** 
 
52
        /**
53
53
         * Yes, he is dumb.
54
54
         */
55
55
        $lang_string = join(', ', $use_langs);
85
85
  $lang_string = $SQSPELL_APP_DEFAULT;
86
86
}
87
87
$old_lang_string = join(", ", $langs);
88
 
$words = str_replace("# LANG: $old_lang_string", "# LANG: $lang_string", 
 
88
$words = str_replace("# LANG: $old_lang_string", "# LANG: $lang_string",
89
89
                     $words);
90
90
/**
91
91
 * Write it down where the sun don't shine.
92
92
 */
93
93
sqspell_writeWords($words);
94
 
sqspell_makePage(_("International Dictionaries Preferences Updated"), 
95
 
                 null, $msg);
 
94
sqspell_makePage(_("International Dictionaries Preferences Updated"),
 
95
        null, $msg);
96
96
 
97
97
/**
98
98
 * For Emacs weenies: