]> git.mxchange.org Git - friendica.git/commitdiff
with translations now in /view/lang/lng shift the array index along
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 14:07:23 +0000 (16:07 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 14:07:23 +0000 (16:07 +0200)
include/pgettext.php

index 3c389ce2e5bfa9523bf10ce9727b4187ad23bb9a..b400baa3cf0421136be197bcc0f14e8a2cb1057a 100644 (file)
@@ -179,7 +179,7 @@ function get_avaiable_languages() {
                asort($langs);
                foreach($langs as $l) {
                        $t = explode("/",$l);
-                       $lang_choices[$t[1]] = $t[1];
+                       $lang_choices[$t[2]] = $t[2];
                }
        }
        return $lang_choices;