aboutsummaryrefslogtreecommitdiffstats
path: root/library/langdet/docs/iso.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-25 01:57:18 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-29 22:00:06 +0100
commit8e4c5db766ce23d05b8507991b04fece743147de (patch)
tree55c89f2c145f47245e7d32380c92256051d6a8f2 /library/langdet/docs/iso.php
parentfe5f1e4d67d999ed3c6ef78dc4d49f5dd1a93056 (diff)
downloadvolse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.tar.gz
volse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.tar.bz2
volse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.zip
:arrow_up: Update Text_LanguageDetect.
Update from v0.3.0 (2012) to v1.0.0 (2017) which should remove some warnings and improve PHP7 support. Using composer to handle this PEAR library now. Fix a problem in FeedutilsTest.
Diffstat (limited to 'library/langdet/docs/iso.php')
-rw-r--r--library/langdet/docs/iso.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/library/langdet/docs/iso.php b/library/langdet/docs/iso.php
deleted file mode 100644
index 6d7ec1d2e..000000000
--- a/library/langdet/docs/iso.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * Demonstrates how to use ISO language codes.
- *
- * The "name mode" changes the way languages are accepted and returned.
- */
-require_once 'Text/LanguageDetect.php';
-$l = new Text_LanguageDetect();
-
-
-//will output the ISO 639-1 two-letter language code
-// "de"
-$l->setNameMode(2);
-echo $l->detectSimple('Das ist ein kleiner Text') . "\n";
-
-//will output the ISO 639-2 three-letter language code
-// "deu"
-$l->setNameMode(3);
-echo $l->detectSimple('Das ist ein kleiner Text') . "\n";
-
-?> \ No newline at end of file