aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-25 23:21:07 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-29 22:00:12 +0100
commit66832c41e9fff481c20ca219b3cc0a4e53b8b551 (patch)
treeffff0bb391350ec9c8c16bcf8781bce6d866cf89 /include
parent8e4c5db766ce23d05b8507991b04fece743147de (diff)
downloadvolse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.tar.gz
volse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.tar.bz2
volse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.zip
:arrow_up: Update intl library.
Update intl library from v0.4? (2014) to v0.7.4 (2016). Use global composer autoloader now.
Diffstat (limited to 'include')
-rw-r--r--include/language.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/language.php b/include/language.php
index eb286231a..f6f266685 100644
--- a/include/language.php
+++ b/include/language.php
@@ -8,6 +8,7 @@
* language related tasks.
*/
+use CommerceGuys\Intl\Language\LanguageRepository;
/**
* @brief Get the browser's submitted preferred languages.
@@ -298,11 +299,7 @@ function detect_language($s) {
* @param string $s Language code to look up
* @param string $l (optional) In which language to return the name
* @return string with the language name, or $s if unrecognized
- *
- * @todo include CommerceGuys\Intl through composer like SabreDAV.
*/
-require_once(__DIR__ . '/../library/intl/vendor/autoload.php');
-use CommerceGuys\Intl\Language\LanguageRepository;
function get_language_name($s, $l = null) {
// get() expects the second part to be in upper case
if (strpos($s, '-') !== false) $s = substr($s, 0, 2) . strtoupper(substr($s, 2));