aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-12 03:50:05 -0700
committerfriendica <info@friendica.com>2012-07-12 03:50:05 -0700
commit3f7b93ce6542219858014c4d6f075fe9b46a18e2 (patch)
tree2df86cf1fb2ff82f4484df1fe4990f5ea90ce2fc /boot.php
parentbb6d8e9597b893591854645273b6ee04ee022384 (diff)
downloadvolse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.tar.gz
volse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.tar.bz2
volse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.zip
language detection and sparkle links added to plinks where appropriate
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 55f18432a..096587bb7 100644
--- a/boot.php
+++ b/boot.php
@@ -35,6 +35,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
* length that pictures are allowed to be (for non-square pictures, it will apply
@@ -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=") {