X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fmodules%2Flang_change.mod;h=75b9f358969f196abd292d498716f47a09b5aae6;hb=0fcb12718ed2c817e8be5b0bb1eb947ffb93d423;hp=cf738e63a71742e3e6aabc88e65d1c871c0b3d78;hpb=a6d3eff675f7ace3d69f6d9788489ca930333315;p=squirrelmail.git diff --git a/plugins/squirrelspell/modules/lang_change.mod b/plugins/squirrelspell/modules/lang_change.mod index cf738e63..75b9f358 100644 --- a/plugins/squirrelspell/modules/lang_change.mod +++ b/plugins/squirrelspell/modules/lang_change.mod @@ -1,21 +1,24 @@ + * @author Konstantin Riabitsev + * @copyright 1999-2012 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage squirrelspell */ +sqgetGlobalVar('smtoken', $submitted_token, SQ_POST, ''); +sm_validate_security_token($submitted_token, 3600, TRUE); + global $SQSPELL_APP_DEFAULT; if (! sqgetGlobalVar('use_langs',$use_langs,SQ_POST)) { @@ -39,16 +42,14 @@ foreach ($use_langs as $lang) { if (sizeof($new_langs)>1) { $dsp_string = ''; foreach( $new_langs as $a) { - $dsp_string .= _(htmlspecialchars(trim($a))) . ', '; + $dsp_string .= _(htmlspecialchars(trim($a))) . _(", "); } // remove last comma and space $dsp_string = substr( $dsp_string, 0, -2 ); - /** - * i18n: first %s is comma separated list of languages, second %s - default language. - * Language names are translated, if they are present in squirrelmail.po file. - * make sure that you don't use html codes in language name translations - */ + // i18n: first %s is comma separated list of languages, second %s - default language. + // Language names are translated, if they are present in squirrelmail.po file. + // make sure that you don't use html codes in language name translations $msg = '

' . sprintf(_("Settings adjusted to: %s with %s as default dictionary."), ''.htmlspecialchars($dsp_string).'', @@ -76,4 +77,3 @@ sqspell_makePage(_("International Dictionaries Preferences Updated"), * End: * vim: syntax=php */ -?> \ No newline at end of file