language detection and sparkle links added to plinks where appropriate

This commit is contained in:
friendica
2012-07-12 03:50:05 -07:00
parent bb6d8e9597
commit 3f7b93ce65
12 changed files with 45 additions and 15 deletions

View File

@@ -34,6 +34,14 @@ define ( 'JPEG_QUALITY', 100 );
*/
define ( 'PNG_QUALITY', 8 );
/**
* Language detection parameters
*/
define ( 'LANGUAGE_DETECT_MIN_LENGTH', 128 );
define ( 'LANGUAGE_DETECT_MIN_CONFIDENCE', 0.01 );
/**
*
* An alternate way of limiting picture upload sizes. Specify the maximum pixel
@@ -415,6 +423,7 @@ if(! class_exists('App')) {
. 'include' . PATH_SEPARATOR
. 'library' . PATH_SEPARATOR
. 'library/phpsec' . PATH_SEPARATOR
. 'library/langdet' . PATH_SEPARATOR
. '.' );
if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=") {