mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Add pear/Text_LanguageDetect to Composer/vendor
- Updated mobiledetectlib to 2.8.26 - Updated PEAR to 1.10.5 - Updated Archive_Tar to 1.4.3 - Updated XML_Util to 1.4.3
This commit is contained in:
parent
93fd189198
commit
7d876aab98
109 changed files with 6517 additions and 243 deletions
15
vendor/pear/text_languagedetect/docs/errorhandling.php
vendored
Normal file
15
vendor/pear/text_languagedetect/docs/errorhandling.php
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* How to handle errors
|
||||
*/
|
||||
require_once 'Text/LanguageDetect.php';
|
||||
require_once 'Text/LanguageDetect/Exception.php';
|
||||
|
||||
try {
|
||||
$ld = new Text_LanguageDetect();
|
||||
$lang = $ld->detectSimple('Das ist ein kleiner Text');
|
||||
echo "Language is: $lang\n";
|
||||
} catch (Text_LanguageDetect_Exception $e) {
|
||||
echo 'An error occured! Message: ' . $e . "\n";
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue