Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Request #19221 Return ISO 639-1 or ISO 639-2 language codes
Submitted: 2012-01-13 14:33 UTC
From: cweiske Assigned: cweiske
Status: Closed Package: Text_LanguageDetect (version SVN)
PHP Version: HEAD SVN-2012-01-13 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2012-01-13 14:33 UTC] cweiske (Christian Weiske)
Description: ------------ Currently Text_LanguageDetect returns language names only. It'd be nice if it would return ISO 639-1 (2-letter) and ISO 639-2 (3-letter) language codes. I imagine an API like this: $l = new Text_LanguageDetect(); $l->setLangFormat(Text_LanguageDetect::ALPHA_2); $l->detect($text, 4); The tricky part is probably that *all* methods would need to accept and output such codes.

Comments

 [2012-01-13 14:33 UTC] cweiske (Christian Weiske)
 [2012-01-13 14:33 UTC] cweiske (Christian Weiske)
 [2012-01-16 14:53 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Closed -Assigned To: +Assigned To: cweiske
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Fixed in 0.3.0