Adding aspell settings see #7388

1.9.x
Julio Montoya 11 years ago
parent 3246504684
commit 3587db2180
  1. 14
      main/inc/lib/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
  2. 6
      main/install/configuration.dist.php

@ -3,13 +3,17 @@ header('Content-type: text/html; charset=utf-8');
// The following variables values must reflect your installation needs.
$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows)
//$aspell_prog = 'aspell'; // by FredCK (for Linux)
require_once '../../../../../../../../inc/global.inc.php';
$lang = 'en_US';
$aspell_opts = "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; // by FredCK
$aspellBinary = api_get_configuration_value('aspell_bin');
$aspellLanguage = api_get_configuration_value('aspell_lang');
$aspellOptions = api_get_configuration_value('aspell_opts');
$aspellTempDir = api_get_configuration_value('aspell_temp_dir');
$tempfiledir = "./";
$aspell_prog = !empty($aspellBinary) ? $aspellBinary : '"C:\Program Files\Aspell\bin\aspell.exe"';
$lang = !empty($aspellLanguage) ? $aspellLanguage : 'en_US';
$aspell_opts = !empty($aspellOptions) ? $aspellOptions : "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt";
$tempfiledir = !empty($aspellTempDir) ? $aspellTempDir : "./";
$spellercss = '../spellerStyle.css'; // by FredCK
$word_win_src = '../wordWindow.js'; // by FredCK

@ -251,3 +251,9 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
//$_configuration['lp_show_reduced_report'] = false;
// Hide the logout button
//$_configuration['hide_logout_button'] = true;
// Aspell Settings
//$_configuration['aspell_bin'] = '/usr/bin/hunspell';
//$_configuration['aspell_lang'] = 'en_US';
//$_configuration['aspell_opts'] = '-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt';
//$_configuration['aspell_temp_dir'] = './';

Loading…
Cancel
Save