about summary refs log tree commit diff stats
path: root/wiki/lib/plugins/authplain
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/lib/plugins/authplain')
-rw-r--r--wiki/lib/plugins/authplain/auth.php443
-rw-r--r--wiki/lib/plugins/authplain/lang/af/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ar/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/az/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/bg/lang.php9
-rw-r--r--wiki/lib/plugins/authplain/lang/bn/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ca-valencia/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ca/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/cs/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/cy/lang.php8
-rw-r--r--wiki/lib/plugins/authplain/lang/da/lang.php9
-rw-r--r--wiki/lib/plugins/authplain/lang/de-informal/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/de/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/el/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/en/lang.php9
-rw-r--r--wiki/lib/plugins/authplain/lang/eo/lang.php9
-rw-r--r--wiki/lib/plugins/authplain/lang/es/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/et/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/eu/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/fa/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/fi/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/fo/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/fr/lang.php13
-rw-r--r--wiki/lib/plugins/authplain/lang/gl/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/he/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/hr/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/hu/lang.php10
-rw-r--r--wiki/lib/plugins/authplain/lang/ia/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/id-ni/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/id/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/is/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/it/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/ja/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/ka/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/kk/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/km/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ko/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/ku/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/la/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/lb/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/lt/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/lv/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/mg/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/mk/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/mr/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ms/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/ne/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/nl/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/no/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/pl/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/pt-br/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/lang/pt/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/ro/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/ru/lang.php13
-rw-r--r--wiki/lib/plugins/authplain/lang/sk/lang.php11
-rw-r--r--wiki/lib/plugins/authplain/lang/sl/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/sq/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/sr/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/sv/lang.php10
-rw-r--r--wiki/lib/plugins/authplain/lang/th/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/tr/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/uk/lang.php9
-rw-r--r--wiki/lib/plugins/authplain/lang/vi/lang.php6
-rw-r--r--wiki/lib/plugins/authplain/lang/zh-tw/lang.php7
-rw-r--r--wiki/lib/plugins/authplain/lang/zh/lang.php12
-rw-r--r--wiki/lib/plugins/authplain/plugin.info.txt7
66 files changed, 975 insertions, 0 deletions
diff --git a/wiki/lib/plugins/authplain/auth.php b/wiki/lib/plugins/authplain/auth.php
new file mode 100644
index 0000000..7dfa43a
--- /dev/null
+++ b/wiki/lib/plugins/authplain/auth.php
@@ -0,0 +1,443 @@
+<?php
+// must be run within Dokuwiki
+if(!defined('DOKU_INC')) die();
+
+/**
+ * Plaintext authentication backend
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Andreas Gohr <andi@splitbrain.org>
+ * @author     Chris Smith <chris@jalakai.co.uk>
+ * @author     Jan Schumann <js@schumann-it.com>
+ */
+class auth_plugin_authplain extends DokuWiki_Auth_Plugin {
+    /** @var array user cache */
+    protected $users = null;
+
+    /** @var array filter pattern */
+    protected $_pattern = array();
+
+    /** @var bool safe version of preg_split */
+    protected $_pregsplit_safe = false;
+
+    /**
+     * Constructor
+     *
+     * Carry out sanity checks to ensure the object is
+     * able to operate. Set capabilities.
+     *
+     * @author  Christopher Smith <chris@jalakai.co.uk>
+     */
+    public function __construct() {
+        parent::__construct();
+        global $config_cascade;
+
+        if(!@is_readable($config_cascade['plainauth.users']['default'])) {
+            $this->success = false;
+        } else {
+            if(@is_writable($config_cascade['plainauth.users']['default'])) {
+                $this->cando['addUser']   = true;
+                $this->cando['delUser']   = true;
+                $this->cando['modLogin']  = true;
+                $this->cando['modPass']   = true;
+                $this->cando['modName']   = true;
+                $this->cando['modMail']   = true;
+                $this->cando['modGroups'] = true;
+            }
+            $this->cando['getUsers']     = true;
+            $this->cando['getUserCount'] = true;
+        }
+
+        $this->_pregsplit_safe = version_compare(PCRE_VERSION,'6.7','>=');
+    }
+
+    /**
+     * Check user+password
+     *
+     * Checks if the given user exists and the given
+     * plaintext password is correct
+     *
+     * @author  Andreas Gohr <andi@splitbrain.org>
+     * @param string $user
+     * @param string $pass
+     * @return  bool
+     */
+    public function checkPass($user, $pass) {
+        $userinfo = $this->getUserData($user);
+        if($userinfo === false) return false;
+
+        return auth_verifyPassword($pass, $this->users[$user]['pass']);
+    }
+
+    /**
+     * Return user info
+     *
+     * Returns info about the given user needs to contain
+     * at least these fields:
+     *
+     * name string  full name of the user
+     * mail string  email addres of the user
+     * grps array   list of groups the user is in
+     *
+     * @author  Andreas Gohr <andi@splitbrain.org>
+     * @param string $user
+     * @param bool $requireGroups  (optional) ignored by this plugin, grps info always supplied
+     * @return array|false
+     */
+    public function getUserData($user, $requireGroups=true) {
+        if($this->users === null) $this->_loadUserData();
+        return isset($this->users[$user]) ? $this->users[$user] : false;
+    }
+
+    /**
+     * Creates a string suitable for saving as a line
+     * in the file database
+     * (delimiters escaped, etc.)
+     *
+     * @param string $user
+     * @param string $pass
+     * @param string $name
+     * @param string $mail
+     * @param array  $grps list of groups the user is in
+     * @return string
+     */
+    protected function _createUserLine($user, $pass, $name, $mail, $grps) {
+        $groups   = join(',', $grps);
+        $userline = array($user, $pass, $name, $mail, $groups);
+        $userline = str_replace('\\', '\\\\', $userline); // escape \ as \\
+        $userline = str_replace(':', '\\:', $userline); // escape : as \:
+        $userline = join(':', $userline)."\n";
+        return $userline;
+    }
+
+    /**
+     * Create a new User
+     *
+     * Returns false if the user already exists, null when an error
+     * occurred and true if everything went well.
+     *
+     * The new user will be added to the default group by this
+     * function if grps are not specified (default behaviour).
+     *
+     * @author  Andreas Gohr <andi@splitbrain.org>
+     * @author  Chris Smith <chris@jalakai.co.uk>
+     *
+     * @param string $user
+     * @param string $pwd
+     * @param string $name
+     * @param string $mail
+     * @param array  $grps
+     * @return bool|null|string
+     */
+    public function createUser($user, $pwd, $name, $mail, $grps = null) {
+        global $conf;
+        global $config_cascade;
+
+        // user mustn't already exist
+        if($this->getUserData($user) !== false) {
+            msg($this->getLang('userexists'), -1);
+            return false;
+        }
+
+        $pass = auth_cryptPassword($pwd);
+
+        // set default group if no groups specified
+        if(!is_array($grps)) $grps = array($conf['defaultgroup']);
+
+        // prepare user line
+        $userline = $this->_createUserLine($user, $pass, $name, $mail, $grps);
+
+        if(!io_saveFile($config_cascade['plainauth.users']['default'], $userline, true)) {
+            msg($this->getLang('writefail'), -1);
+            return null;
+        }
+
+        $this->users[$user] = compact('pass', 'name', 'mail', 'grps');
+        return $pwd;
+    }
+
+    /**
+     * Modify user data
+     *
+     * @author  Chris Smith <chris@jalakai.co.uk>
+     * @param   string $user      nick of the user to be changed
+     * @param   array  $changes   array of field/value pairs to be changed (password will be clear text)
+     * @return  bool
+     */
+    public function modifyUser($user, $changes) {
+        global $ACT;
+        global $config_cascade;
+
+        // sanity checks, user must already exist and there must be something to change
+        if(($userinfo = $this->getUserData($user)) === false) {
+            msg($this->getLang('usernotexists'), -1);
+            return false;
+        }
+
+        // don't modify protected users
+        if(!empty($userinfo['protected'])) {
+            msg(sprintf($this->getLang('protected'), hsc($user)), -1);
+            return false;
+        }
+
+        if(!is_array($changes) || !count($changes)) return true;
+
+        // update userinfo with new data, remembering to encrypt any password
+        $newuser = $user;
+        foreach($changes as $field => $value) {
+            if($field == 'user') {
+                $newuser = $value;
+                continue;
+            }
+            if($field == 'pass') $value = auth_cryptPassword($value);
+            $userinfo[$field] = $value;
+        }
+
+        $userline = $this->_createUserLine($newuser, $userinfo['pass'], $userinfo['name'], $userinfo['mail'], $userinfo['grps']);
+
+        if(!io_replaceInFile($config_cascade['plainauth.users']['default'], '/^'.$user.':/', $userline, true)) {
+            msg('There was an error modifying your user data. You may need to register again.', -1);
+            // FIXME, io functions should be fail-safe so existing data isn't lost
+            $ACT = 'register';
+            return false;
+        }
+
+        $this->users[$newuser] = $userinfo;
+        return true;
+    }
+
+    /**
+     * Remove one or more users from the list of registered users
+     *
+     * @author  Christopher Smith <chris@jalakai.co.uk>
+     * @param   array  $users   array of users to be deleted
+     * @return  int             the number of users deleted
+     */
+    public function deleteUsers($users) {
+        global $config_cascade;
+
+        if(!is_array($users) || empty($users)) return 0;
+
+        if($this->users === null) $this->_loadUserData();
+
+        $deleted = array();
+        foreach($users as $user) {
+            // don't delete protected users
+            if(!empty($this->users[$user]['protected'])) {
+                msg(sprintf($this->getLang('protected'), hsc($user)), -1);
+                continue;
+            }
+            if(isset($this->users[$user])) $deleted[] = preg_quote($user, '/');
+        }
+
+        if(empty($deleted)) return 0;
+
+        $pattern = '/^('.join('|', $deleted).'):/';
+        if (!io_deleteFromFile($config_cascade['plainauth.users']['default'], $pattern, true)) {
+            msg($this->getLang('writefail'), -1);
+            return 0;
+        }
+
+        // reload the user list and count the difference
+        $count = count($this->users);
+        $this->_loadUserData();
+        $count -= count($this->users);
+        return $count;
+    }
+
+    /**
+     * Return a count of the number of user which meet $filter criteria
+     *
+     * @author  Chris Smith <chris@jalakai.co.uk>
+     *
+     * @param array $filter
+     * @return int
+     */
+    public function getUserCount($filter = array()) {
+
+        if($this->users === null) $this->_loadUserData();
+
+        if(!count($filter)) return count($this->users);
+
+        $count = 0;
+        $this->_constructPattern($filter);
+
+        foreach($this->users as $user => $info) {
+            $count += $this->_filter($user, $info);
+        }
+
+        return $count;
+    }
+
+    /**
+     * Bulk retrieval of user data
+     *
+     * @author  Chris Smith <chris@jalakai.co.uk>
+     *
+     * @param   int   $start index of first user to be returned
+     * @param   int   $limit max number of users to be returned
+     * @param   array $filter array of field/pattern pairs
+     * @return  array userinfo (refer getUserData for internal userinfo details)
+     */
+    public function retrieveUsers($start = 0, $limit = 0, $filter = array()) {
+
+        if($this->users === null) $this->_loadUserData();
+
+        ksort($this->users);
+
+        $i     = 0;
+        $count = 0;
+        $out   = array();
+        $this->_constructPattern($filter);
+
+        foreach($this->users as $user => $info) {
+            if($this->_filter($user, $info)) {
+                if($i >= $start) {
+                    $out[$user] = $info;
+                    $count++;
+                    if(($limit > 0) && ($count >= $limit)) break;
+                }
+                $i++;
+            }
+        }
+
+        return $out;
+    }
+
+    /**
+     * Only valid pageid's (no namespaces) for usernames
+     *
+     * @param string $user
+     * @return string
+     */
+    public function cleanUser($user) {
+        global $conf;
+        return cleanID(str_replace(':', $conf['sepchar'], $user));
+    }
+
+    /**
+     * Only valid pageid's (no namespaces) for groupnames
+     *
+     * @param string $group
+     * @return string
+     */
+    public function cleanGroup($group) {
+        global $conf;
+        return cleanID(str_replace(':', $conf['sepchar'], $group));
+    }
+
+    /**
+     * Load all user data
+     *
+     * loads the user file into a datastructure
+     *
+     * @author  Andreas Gohr <andi@splitbrain.org>
+     */
+    protected function _loadUserData() {
+        global $config_cascade;
+
+        $this->users = $this->_readUserFile($config_cascade['plainauth.users']['default']);
+
+        // support protected users
+        if(!empty($config_cascade['plainauth.users']['protected'])) {
+            $protected = $this->_readUserFile($config_cascade['plainauth.users']['protected']);
+            foreach(array_keys($protected) as $key) {
+                $protected[$key]['protected'] = true;
+            }
+            $this->users = array_merge($this->users, $protected);
+        }
+    }
+
+    /**
+     * Read user data from given file
+     *
+     * ignores non existing files
+     *
+     * @param string $file the file to load data from
+     * @return array
+     */
+    protected function _readUserFile($file) {
+        $users = array();
+        if(!file_exists($file)) return $users;
+
+        $lines = file($file);
+        foreach($lines as $line) {
+            $line = preg_replace('/#.*$/', '', $line); //ignore comments
+            $line = trim($line);
+            if(empty($line)) continue;
+
+            $row = $this->_splitUserData($line);
+            $row = str_replace('\\:', ':', $row);
+            $row = str_replace('\\\\', '\\', $row);
+
+            $groups = array_values(array_filter(explode(",", $row[4])));
+
+            $users[$row[0]]['pass'] = $row[1];
+            $users[$row[0]]['name'] = urldecode($row[2]);
+            $users[$row[0]]['mail'] = $row[3];
+            $users[$row[0]]['grps'] = $groups;
+        }
+        return $users;
+    }
+
+    protected function _splitUserData($line){
+        // due to a bug in PCRE 6.6, preg_split will fail with the regex we use here
+        // refer github issues 877 & 885
+        if ($this->_pregsplit_safe){
+            return preg_split('/(?<![^\\\\]\\\\)\:/', $line, 5);       // allow for : escaped as \:
+        }
+
+        $row = array();
+        $piece = '';
+        $len = strlen($line);
+        for($i=0; $i<$len; $i++){
+            if ($line[$i]=='\\'){
+                $piece .= $line[$i];
+                $i++;
+                if ($i>=$len) break;
+            } else if ($line[$i]==':'){
+                $row[] = $piece;
+                $piece = '';
+                continue;
+            }
+            $piece .= $line[$i];
+        }
+        $row[] = $piece;
+
+        return $row;
+    }
+
+    /**
+     * return true if $user + $info match $filter criteria, false otherwise
+     *
+     * @author   Chris Smith <chris@jalakai.co.uk>
+     *
+     * @param string $user User login
+     * @param array  $info User's userinfo array
+     * @return bool
+     */
+    protected function _filter($user, $info) {
+        foreach($this->_pattern as $item => $pattern) {
+            if($item == 'user') {
+                if(!preg_match($pattern, $user)) return false;
+            } else if($item == 'grps') {
+                if(!count(preg_grep($pattern, $info['grps']))) return false;
+            } else {
+                if(!preg_match($pattern, $info[$item])) return false;
+            }
+        }
+        return true;
+    }
+
+    /**
+     * construct a filter pattern
+     *
+     * @param array $filter
+     */
+    protected function _constructPattern($filter) {
+        $this->_pattern = array();
+        foreach($filter as $item => $pattern) {
+            $this->_pattern[$item] = '/'.str_replace('/', '\/', $pattern).'/i'; // allow regex characters
+        }
+    }
+}
diff --git a/wiki/lib/plugins/authplain/lang/af/lang.php b/wiki/lib/plugins/authplain/lang/af/lang.php
new file mode 100644
index 0000000..29742cf
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/af/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Die gebruikersnaam wat jy gebruik het, is alreeds gebruik. Kies asseblief \'n ander gebruikersnaam.';
diff --git a/wiki/lib/plugins/authplain/lang/ar/lang.php b/wiki/lib/plugins/authplain/lang/ar/lang.php
new file mode 100644
index 0000000..16d59f3
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ar/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'عذرا، يوجد مشترك بنفس الاسم.';
diff --git a/wiki/lib/plugins/authplain/lang/az/lang.php b/wiki/lib/plugins/authplain/lang/az/lang.php
new file mode 100644
index 0000000..8d29d4c
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/az/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Təssüf ki bu ad ilə istifadəçi artıq mövcuddur.';
diff --git a/wiki/lib/plugins/authplain/lang/bg/lang.php b/wiki/lib/plugins/authplain/lang/bg/lang.php
new file mode 100644
index 0000000..62e62dc
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/bg/lang.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Kiril <neohidra@gmail.com>
+ */
+$lang['userexists']            = 'Вече съществува потребител с избраното име.';
+$lang['usernotexists']         = 'За съжаление потребителят не съществува.';
diff --git a/wiki/lib/plugins/authplain/lang/bn/lang.php b/wiki/lib/plugins/authplain/lang/bn/lang.php
new file mode 100644
index 0000000..43fe4ca
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/bn/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'দুঃখিত, এই লগইন সঙ্গে একটি ব্যবহারকারী ইতিমধ্যেই বিদ্যমান.';
diff --git a/wiki/lib/plugins/authplain/lang/ca-valencia/lang.php b/wiki/lib/plugins/authplain/lang/ca-valencia/lang.php
new file mode 100644
index 0000000..3e973be
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ca-valencia/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Disculpe, pero ya existix un usuari en este nom.';
diff --git a/wiki/lib/plugins/authplain/lang/ca/lang.php b/wiki/lib/plugins/authplain/lang/ca/lang.php
new file mode 100644
index 0000000..f792817
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ca/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Ja existeix un altre usuari amb aquest nom.';
diff --git a/wiki/lib/plugins/authplain/lang/cs/lang.php b/wiki/lib/plugins/authplain/lang/cs/lang.php
new file mode 100644
index 0000000..4eaacdc
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/cs/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Jaroslav Lichtblau <jlichtblau@seznam.cz>
+ * @author Daniel Slováček <danslo@danslo.cz>
+ */
+$lang['userexists']            = 'Uživatel se stejným jménem už je zaregistrován.';
+$lang['usernotexists']         = 'Omlouváme se, uživatel tohoto jména neexistuje.';
+$lang['writefail']             = 'Nelze změnit údaje uživatele. Informujte prosím správce wiki';
+$lang['protected']             = 'Data pro uživatele %s jsou chráněna a nemůžou být upravena nebo smazána.';
diff --git a/wiki/lib/plugins/authplain/lang/cy/lang.php b/wiki/lib/plugins/authplain/lang/cy/lang.php
new file mode 100644
index 0000000..7f789e5
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/cy/lang.php
@@ -0,0 +1,8 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Sori, mae defnyddiwr gyda\'r enw hwnnw eisoes yn bodoli.';
+$lang['usernotexists']  = 'Sori, \'dyw\'r defnyddiwr hwnnw ddim yn bodoli.';
+$lang['writefail']      = 'Methu â newid data defnyddiwr. Rhowch wybod i Weinydd y Wici';
diff --git a/wiki/lib/plugins/authplain/lang/da/lang.php b/wiki/lib/plugins/authplain/lang/da/lang.php
new file mode 100644
index 0000000..ff683ed
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/da/lang.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Kenneth Schack Banner <kescba@gmail.com>
+ */
+$lang['userexists']            = 'Dette brugernavn er allerede i brug.';
+$lang['writefail']             = 'Ude af stand til at redigere bruger data. Kontakt venligst Wiki-Administratoren';
diff --git a/wiki/lib/plugins/authplain/lang/de-informal/lang.php b/wiki/lib/plugins/authplain/lang/de-informal/lang.php
new file mode 100644
index 0000000..c087073
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/de-informal/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author rnck <dokuwiki@rnck.de>
+ */
+$lang['userexists']            = 'Der Benutzername existiert leider schon.';
+$lang['usernotexists']         = 'Entschuldigung, dieser Nutzer existiert nicht.';
+$lang['writefail']             = 'Konnte Nutzer-Daten nicht modifizieren. Bitte informiere einen Admin.';
+$lang['protected']             = 'Die Daten für den Nutzer %s sind geschützt und können nicht verändert oder gelöscht werden.';
diff --git a/wiki/lib/plugins/authplain/lang/de/lang.php b/wiki/lib/plugins/authplain/lang/de/lang.php
new file mode 100644
index 0000000..e524372
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/de/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Anika Henke <anika@selfthinker.org>
+ * @author Carsten Perthel <carsten@cpesoft.com>
+ */
+$lang['userexists']            = 'Der Benutzername existiert leider schon.';
+$lang['usernotexists']         = 'Dieser Benutzer existiert nicht.';
+$lang['writefail']             = 'Kann Benutzerdaten nicht ändern. Bitte informieren Sie den Wiki-Administratoren';
+$lang['protected']             = 'Die Daten des Benutzers %s sind geschützt und können nicht verändert oder gelöscht werden.';
diff --git a/wiki/lib/plugins/authplain/lang/el/lang.php b/wiki/lib/plugins/authplain/lang/el/lang.php
new file mode 100644
index 0000000..1d83eb1
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/el/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Αυτός ο λογαριασμός υπάρχει ήδη.';
diff --git a/wiki/lib/plugins/authplain/lang/en/lang.php b/wiki/lib/plugins/authplain/lang/en/lang.php
new file mode 100644
index 0000000..7108f38
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/en/lang.php
@@ -0,0 +1,9 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Sorry, a user with this login already exists.';
+$lang['usernotexists']  = 'Sorry, that user doesn\'t exist.';
+$lang['writefail']      = 'Unable to modify user data. Please inform the Wiki-Admin';
+$lang['protected']      = 'Data for user %s is protected and can not be modified or deleted.';
diff --git a/wiki/lib/plugins/authplain/lang/eo/lang.php b/wiki/lib/plugins/authplain/lang/eo/lang.php
new file mode 100644
index 0000000..3a3f45c
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/eo/lang.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Kristjan SCHMIDT <kristjan.schmidt@googlemail.com>
+ */
+$lang['userexists']            = 'Pardonu, ĉi tiu uzanto-nomo jam ekzistas.';
+$lang['usernotexists']         = 'Pardonu, tiu uzanto ne ekzistas.';
diff --git a/wiki/lib/plugins/authplain/lang/es/lang.php b/wiki/lib/plugins/authplain/lang/es/lang.php
new file mode 100644
index 0000000..b81bbb8
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/es/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Domingo Redal <docxml@gmail.com>
+ * @author Enny Rodriguez <aquilez.4@gmail.com>
+ */
+$lang['userexists']            = 'Lo siento, ya existe un usuario con este nombre.';
+$lang['usernotexists']         = 'Lo sentimos, no existe ese usuario.';
+$lang['writefail']             = 'No es posible modificar los datos del usuario. Por favor, informa al Administrador del Wiki';
+$lang['protected']             = 'Los datos del usuario %s están protegidos y no pueden ser modificados o eliminados.';
diff --git a/wiki/lib/plugins/authplain/lang/et/lang.php b/wiki/lib/plugins/authplain/lang/et/lang.php
new file mode 100644
index 0000000..7f9f777
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/et/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Tegelikult on sellise nimega kasutaja juba olemas.';
diff --git a/wiki/lib/plugins/authplain/lang/eu/lang.php b/wiki/lib/plugins/authplain/lang/eu/lang.php
new file mode 100644
index 0000000..2c7e853
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/eu/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Barkatu, izen bereko erabiltzailea existitzen da.';
diff --git a/wiki/lib/plugins/authplain/lang/fa/lang.php b/wiki/lib/plugins/authplain/lang/fa/lang.php
new file mode 100644
index 0000000..4c92aea
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/fa/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Masoud Sadrnezhaad <masoud@sadrnezhaad.ir>
+ * @author sam01 <m.sajad079@gmail.com>
+ */
+$lang['userexists']            = 'نام کاربری‌ای که وارد کردید قبلن استفاده شده است. خواهشمندیم یک نام دیگر انتخاب کنید.';
+$lang['usernotexists']         = 'متاسفانه این کاربر وجود ندارد.';
+$lang['writefail']             = 'امکان ویرایش اطلاعات کاربر وجود ندارد. لطفا ادمین ویکی را مطلع نمایید.';
+$lang['protected']             = 'داده‌ها برای کاربر %s محافظت شده و قابل تغییر نیست یا حذف شده اند.';
diff --git a/wiki/lib/plugins/authplain/lang/fi/lang.php b/wiki/lib/plugins/authplain/lang/fi/lang.php
new file mode 100644
index 0000000..abdaf67
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/fi/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ */
+$lang['userexists']            = 'Käyttäjä tällä käyttäjänimellä on jo olemassa.';
diff --git a/wiki/lib/plugins/authplain/lang/fo/lang.php b/wiki/lib/plugins/authplain/lang/fo/lang.php
new file mode 100644
index 0000000..a965466
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/fo/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Hetta brúkaranavn er upptiki.';
diff --git a/wiki/lib/plugins/authplain/lang/fr/lang.php b/wiki/lib/plugins/authplain/lang/fr/lang.php
new file mode 100644
index 0000000..b675455
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/fr/lang.php
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Carbain Frédéric <fcarbain@yahoo.fr>
+ * @author Nicolas Friedli <nicolas@theologique.ch>
+ * @author Schplurtz le Déboulonné <Schplurtz@laposte.net>
+ */
+$lang['userexists']            = 'Désolé, ce nom d\'utilisateur est déjà pris.';
+$lang['usernotexists']         = 'Désolé, cet utilisateur n\'existe pas.';
+$lang['writefail']             = 'Impossible de modifier les données utilisateur. Merci d\'en informer l\'administrateur du wiki.';
+$lang['protected']             = 'Les données du compte d\'utilisateur %s sont protégées et ne peuvent être ni modifiées ni supprimées.';
diff --git a/wiki/lib/plugins/authplain/lang/gl/lang.php b/wiki/lib/plugins/authplain/lang/gl/lang.php
new file mode 100644
index 0000000..35138d3
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/gl/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Sentímolo, mais xa existe un usuario con ese nome.';
diff --git a/wiki/lib/plugins/authplain/lang/he/lang.php b/wiki/lib/plugins/authplain/lang/he/lang.php
new file mode 100644
index 0000000..a2e1324
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/he/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'משתמש בשם זה כבר נרשם, עמך הסליחה.';
diff --git a/wiki/lib/plugins/authplain/lang/hr/lang.php b/wiki/lib/plugins/authplain/lang/hr/lang.php
new file mode 100644
index 0000000..f15a25e
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/hr/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Davor Turkalj <turki.bsc@gmail.com>
+ */
+$lang['userexists']            = 'Korisnik s tim korisničkim imenom već postoji.';
+$lang['usernotexists']         = 'Nažalost korisnik ne postoji';
+$lang['writefail']             = 'Ne mogu izmijeniti korisničke podatke. Molim obavijestite svog Wiki administratora';
+$lang['protected']             = 'Podaci za korisnika %s su zaštićeni i ne mogu biti izmijenjeni ili obrisani.';
diff --git a/wiki/lib/plugins/authplain/lang/hu/lang.php b/wiki/lib/plugins/authplain/lang/hu/lang.php
new file mode 100644
index 0000000..5f684d7
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/hu/lang.php
@@ -0,0 +1,10 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Marton Sebok <sebokmarton@gmail.com>
+ */
+$lang['userexists']            = 'Sajnáljuk, ilyen azonosítójú felhasználónk már van.';
+$lang['usernotexists']         = 'Sajnos ez a felhasználó nem létezik.';
+$lang['writefail']             = 'A felhasználói adatok módosítása sikertelen. Kérlek, fordulj a wiki rendszergazdájához!';
diff --git a/wiki/lib/plugins/authplain/lang/ia/lang.php b/wiki/lib/plugins/authplain/lang/ia/lang.php
new file mode 100644
index 0000000..7596f3f
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ia/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Regrettabilemente, un usator con iste nomine ja existe.';
diff --git a/wiki/lib/plugins/authplain/lang/id-ni/lang.php b/wiki/lib/plugins/authplain/lang/id-ni/lang.php
new file mode 100644
index 0000000..729c9f9
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/id-ni/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Bologö dödöu, no so zangoguna\'ö töi da\'a.';
diff --git a/wiki/lib/plugins/authplain/lang/id/lang.php b/wiki/lib/plugins/authplain/lang/id/lang.php
new file mode 100644
index 0000000..5e6a998
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/id/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Maaf, user dengan user login ini telah ada.';
diff --git a/wiki/lib/plugins/authplain/lang/is/lang.php b/wiki/lib/plugins/authplain/lang/is/lang.php
new file mode 100644
index 0000000..21392ee
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/is/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Afsakið, notandi með þessu nafni er þegar skráður inn.';
diff --git a/wiki/lib/plugins/authplain/lang/it/lang.php b/wiki/lib/plugins/authplain/lang/it/lang.php
new file mode 100644
index 0000000..1627a15
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/it/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Torpedo <dgtorpedo@gmail.com>
+ * @author Riccardo <riccardofila@gmail.com>
+ */
+$lang['userexists']            = 'Il nome utente inserito esiste già.';
+$lang['usernotexists']         = 'Spiacente, quell\'utente non esiste.';
+$lang['writefail']             = 'Impossibile modificare i dati utente. Per favore informa l\'Amministratore del Wiki';
+$lang['protected']             = 'I dati relativi all\'utente %s sono protetti e non possono essere modificati o cancellati.';
diff --git a/wiki/lib/plugins/authplain/lang/ja/lang.php b/wiki/lib/plugins/authplain/lang/ja/lang.php
new file mode 100644
index 0000000..f290cba
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ja/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Hideaki SAWADA <chuno@live.jp>
+ */
+$lang['userexists']            = 'このユーザー名は既に存在しています。';
+$lang['usernotexists']         = 'このユーザーは未登録です。';
+$lang['writefail']             = 'ユーザーデータを変更できません。管理者に問い合わせてください。';
+$lang['protected']             = 'ユーザ %s のデータは保護されており、変更・削除はできません。';
diff --git a/wiki/lib/plugins/authplain/lang/ka/lang.php b/wiki/lib/plugins/authplain/lang/ka/lang.php
new file mode 100644
index 0000000..1a1a297
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ka/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'მსგავსი ლოგინი უკვე არსებობს';
diff --git a/wiki/lib/plugins/authplain/lang/kk/lang.php b/wiki/lib/plugins/authplain/lang/kk/lang.php
new file mode 100644
index 0000000..95fe532
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/kk/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Кешіріңіз, бұл түпнұскамен де пайдаланушы бар.';
diff --git a/wiki/lib/plugins/authplain/lang/km/lang.php b/wiki/lib/plugins/authplain/lang/km/lang.php
new file mode 100644
index 0000000..322e454
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/km/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'សុំអាទោស​ នាមប្រើនេះមានរួចហើ។';
diff --git a/wiki/lib/plugins/authplain/lang/ko/lang.php b/wiki/lib/plugins/authplain/lang/ko/lang.php
new file mode 100644
index 0000000..402a963
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ko/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Myeongjin <aranet100@gmail.com>
+ */
+$lang['userexists']            = '죄송하지만 같은 이름을 사용하는 사용자가 있습니다.';
+$lang['usernotexists']         = '죄송하지만 해당 사용자가 존재하지 않습니다.';
+$lang['writefail']             = '사용자 데이터를 수정할 수 없습니다. 위키 관리자에게 문의하시기 바랍니다';
+$lang['protected']             = '%s 사용자의 데이터는 잠겨 있어 수정하거나 삭제할 수 없습니다.';
diff --git a/wiki/lib/plugins/authplain/lang/ku/lang.php b/wiki/lib/plugins/authplain/lang/ku/lang.php
new file mode 100644
index 0000000..64cb834
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ku/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Sorry, a user with this login already exists.';
diff --git a/wiki/lib/plugins/authplain/lang/la/lang.php b/wiki/lib/plugins/authplain/lang/la/lang.php
new file mode 100644
index 0000000..5f2eecf
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/la/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Nomen Sodalis ab aliquo iam elegitur.';
diff --git a/wiki/lib/plugins/authplain/lang/lb/lang.php b/wiki/lib/plugins/authplain/lang/lb/lang.php
new file mode 100644
index 0000000..4c760df
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/lb/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Et get schonn e Benotzer mat deem Numm.';
diff --git a/wiki/lib/plugins/authplain/lang/lt/lang.php b/wiki/lib/plugins/authplain/lang/lt/lang.php
new file mode 100644
index 0000000..5ad435a
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/lt/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Vartotojas su pasirinktu prisijungimo vardu jau egzistuoja.';
diff --git a/wiki/lib/plugins/authplain/lang/lv/lang.php b/wiki/lib/plugins/authplain/lang/lv/lang.php
new file mode 100644
index 0000000..afc89e4
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/lv/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Atvaino, tāds lietotājs jau ir.';
diff --git a/wiki/lib/plugins/authplain/lang/mg/lang.php b/wiki/lib/plugins/authplain/lang/mg/lang.php
new file mode 100644
index 0000000..8472161
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/mg/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Indrisy fa efa nisy namandrika io anarana io.';
diff --git a/wiki/lib/plugins/authplain/lang/mk/lang.php b/wiki/lib/plugins/authplain/lang/mk/lang.php
new file mode 100644
index 0000000..8ebb9fa
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/mk/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Жалам, корисник со ова корисничко име веќе постои.';
diff --git a/wiki/lib/plugins/authplain/lang/mr/lang.php b/wiki/lib/plugins/authplain/lang/mr/lang.php
new file mode 100644
index 0000000..15dcf18
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/mr/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'या नावाने सदस्याची नोंदणी झालेली आहे, कृपया दुसरे सदस्य नाव निवडा.';
diff --git a/wiki/lib/plugins/authplain/lang/ms/lang.php b/wiki/lib/plugins/authplain/lang/ms/lang.php
new file mode 100644
index 0000000..14c3b11
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ms/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Maaf, nama pengguna yang dimasukkan telah diguna. Sila pilih nama yang lain.';
diff --git a/wiki/lib/plugins/authplain/lang/ne/lang.php b/wiki/lib/plugins/authplain/lang/ne/lang.php
new file mode 100644
index 0000000..9427578
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ne/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'यो नामको प्रयोगकर्ता पहिले देखि रहेको छ।';
diff --git a/wiki/lib/plugins/authplain/lang/nl/lang.php b/wiki/lib/plugins/authplain/lang/nl/lang.php
new file mode 100644
index 0000000..e1d81d2
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/nl/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Hugo Smet <hugo.smet@scarlet.be>
+ * @author Sjoerd <sjoerd@sjomar.eu>
+ */
+$lang['userexists']            = 'Er bestaat al een gebruiker met deze loginnaam.';
+$lang['usernotexists']         = 'Sorry, deze gebruiker bestaat niet.';
+$lang['writefail']             = 'Onmogelijk om de gebruikers data te wijzigen. Gelieve de Wiki-Admin te informeren.';
+$lang['protected']             = 'Gegevens van gebruiker %s zijn beschermd en kunnen niet worden veranderd of verwijderd';
diff --git a/wiki/lib/plugins/authplain/lang/no/lang.php b/wiki/lib/plugins/authplain/lang/no/lang.php
new file mode 100644
index 0000000..a92c262
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/no/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Arne Hanssen <arne.hanssen@getmail.no>
+ */
+$lang['userexists']            = 'Det finnes allerede en konto med dette brukernavnet.';
+$lang['usernotexists']         = 'Beklager, denne bruker fins ikke.';
+$lang['writefail']             = 'Klarte ikke endre brukerdata. Dette bør meldes til wikiens administrator';
+$lang['protected']             = 'Data for bruker %s er beskyttet og kan ikke endres eller slettes.';
diff --git a/wiki/lib/plugins/authplain/lang/pl/lang.php b/wiki/lib/plugins/authplain/lang/pl/lang.php
new file mode 100644
index 0000000..95b46fe
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/pl/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Max <maxrb146@gmail.com>
+ */
+$lang['userexists']            = 'Użytkownik o tej nazwie już istnieje.';
+$lang['usernotexists']         = 'Przepraszamy, użytkownik nie istnieje';
+$lang['writefail']             = 'Nie można modyfikować danych użytkownika. Proszę skontaktować się z administratorem ';
+$lang['protected']             = 'Dane użytkownika %s są chronione, nie mogą być modyfikowane oraz usuwane';
diff --git a/wiki/lib/plugins/authplain/lang/pt-br/lang.php b/wiki/lib/plugins/authplain/lang/pt-br/lang.php
new file mode 100644
index 0000000..ee42b83
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/pt-br/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Frederico Gonçalves Guimarães <frederico@teia.bio.br>
+ * @author Felipe Castro <fefcas@gmail.com>
+ */
+$lang['userexists']            = 'Desculpe, mas já existe um usuário com esse nome.';
+$lang['usernotexists']         = 'Desculpe, mas esse usuário não existe.';
+$lang['writefail']             = 'Não foi possível modificar os dados do usuário. Por favor, informe ao administrador do Wiki.';
+$lang['protected']             = 'Dados para o usuário %s estão protegidos e não podem ser modificados ou apagados.';
diff --git a/wiki/lib/plugins/authplain/lang/pt/lang.php b/wiki/lib/plugins/authplain/lang/pt/lang.php
new file mode 100644
index 0000000..3334ea6
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/pt/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Paulo Carmino <contato@paulocarmino.com>
+ * @author Guilherme Sá <guilherme.sa@hotmail.com>
+ */
+$lang['userexists']            = 'Este utilizador já está inscrito. Por favor escolha outro nome de utilizador.';
+$lang['usernotexists']         = 'Desculpe, esse login não existe.';
+$lang['writefail']             = 'Incapaz de modificar dados do usuário. Favor informar ao Wiki-Admin.';
diff --git a/wiki/lib/plugins/authplain/lang/ro/lang.php b/wiki/lib/plugins/authplain/lang/ro/lang.php
new file mode 100644
index 0000000..d549e1f
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ro/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Ne pare rău, un utilizator cu acest nume este deja autentificat.';
diff --git a/wiki/lib/plugins/authplain/lang/ru/lang.php b/wiki/lib/plugins/authplain/lang/ru/lang.php
new file mode 100644
index 0000000..0ee34f9
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/ru/lang.php
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author RainbowSpike <1@2.ru>
+ * @author Aleksandr Selivanov <alexgearbox@yandex.ru>
+ * @author Radimir <radimir.shevchenko@gmail.com>
+ */
+$lang['userexists']            = 'Извините, пользователь с таким логином уже существует.';
+$lang['usernotexists']         = 'Этот пользователь не зарегистрирован.';
+$lang['writefail']             = 'Невозможно обновить данные пользователя. Свяжитесь с администратором вики';
+$lang['protected']             = 'Данные пользователя %s защищены и не могут быть изменены или удалены.';
diff --git a/wiki/lib/plugins/authplain/lang/sk/lang.php b/wiki/lib/plugins/authplain/lang/sk/lang.php
new file mode 100644
index 0000000..d1cfbfd
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/sk/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Martin Michalek <michalek.dev@gmail.com>
+ */
+$lang['userexists']            = 'Užívateľ s rovnakým menom je už zaregistrovaný.';
+$lang['usernotexists']         = 'Ľutujem, daný používateľ neexistuje.';
+$lang['writefail']             = 'Nie je možné zmeniť údaje používateľa, informujte prosím administrátora Wiki.';
+$lang['protected']             = 'Údaje používateľa %s sú chránené a nemôžu by zmenené alebo vymazané.';
diff --git a/wiki/lib/plugins/authplain/lang/sl/lang.php b/wiki/lib/plugins/authplain/lang/sl/lang.php
new file mode 100644
index 0000000..46eb4bf
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/sl/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Uporabnik s tem imenom že obstaja.';
diff --git a/wiki/lib/plugins/authplain/lang/sq/lang.php b/wiki/lib/plugins/authplain/lang/sq/lang.php
new file mode 100644
index 0000000..e3a9350
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/sq/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Na vjen keq, ekziston një përdorues tjetër me të njëjtin emër.';
diff --git a/wiki/lib/plugins/authplain/lang/sr/lang.php b/wiki/lib/plugins/authplain/lang/sr/lang.php
new file mode 100644
index 0000000..19bd8b7
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/sr/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']            = 'Извините, корисник са истим именом већ постоји.';
diff --git a/wiki/lib/plugins/authplain/lang/sv/lang.php b/wiki/lib/plugins/authplain/lang/sv/lang.php
new file mode 100644
index 0000000..83c24d7
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/sv/lang.php
@@ -0,0 +1,10 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Tor Härnqvist <tor@harnqvist.se>
+ */
+$lang['userexists']            = 'Det finns redan en användare med det användarnamnet.';
+$lang['usernotexists']         = 'Tyvärr, den användaren existerar inte.';
+$lang['writefail']             = 'Kunde inte ändra användardata. Var god informera Wiki-administratören';
diff --git a/wiki/lib/plugins/authplain/lang/th/lang.php b/wiki/lib/plugins/authplain/lang/th/lang.php
new file mode 100644
index 0000000..463a279
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/th/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ */
+$lang['userexists']            = 'ชื่อบัญชีที่ใส่นั้นมีผู้อื่นได้ใช้แล้ว กรุณาเลือกชื่อผู้ใช้อื่น';
diff --git a/wiki/lib/plugins/authplain/lang/tr/lang.php b/wiki/lib/plugins/authplain/lang/tr/lang.php
new file mode 100644
index 0000000..6111085
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/tr/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ */
+$lang['userexists']            = 'Üzgünüz, bu isime sahip bir kullanıcı zaten mevcut.';
diff --git a/wiki/lib/plugins/authplain/lang/uk/lang.php b/wiki/lib/plugins/authplain/lang/uk/lang.php
new file mode 100644
index 0000000..86ab3d1
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/uk/lang.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author Nina Zolotova <nina-z@i.ua>
+ */
+$lang['userexists']            = 'Користувач з таким іменем вже існує.';
+$lang['usernotexists']         = 'Вибачте, такого користувача не існує.';
diff --git a/wiki/lib/plugins/authplain/lang/vi/lang.php b/wiki/lib/plugins/authplain/lang/vi/lang.php
new file mode 100644
index 0000000..7ecb0a2
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/vi/lang.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ */
+$lang['userexists']     = 'Bạn khác đã dùng username này rồi.';
diff --git a/wiki/lib/plugins/authplain/lang/zh-tw/lang.php b/wiki/lib/plugins/authplain/lang/zh-tw/lang.php
new file mode 100644
index 0000000..39578f5
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/zh-tw/lang.php
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ */
+$lang['userexists']            = '很抱歉,有人已使用了這個帳號。';
diff --git a/wiki/lib/plugins/authplain/lang/zh/lang.php b/wiki/lib/plugins/authplain/lang/zh/lang.php
new file mode 100644
index 0000000..1e0dd10
--- /dev/null
+++ b/wiki/lib/plugins/authplain/lang/zh/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ *
+ * @author lainme <lainme993@gmail.com>
+ * @author tai <tai_tang@126.com>
+ */
+$lang['userexists']            = '对不起,该用户名已经存在。';
+$lang['usernotexists']         = '抱歉,该用户不存在';
+$lang['writefail']             = '无法修改用户数据。请联系维基管理员';
+$lang['protected']             = '用户 %s 的数据被保护和无法被编辑或删除。';
diff --git a/wiki/lib/plugins/authplain/plugin.info.txt b/wiki/lib/plugins/authplain/plugin.info.txt
new file mode 100644
index 0000000..c09dbcb
--- /dev/null
+++ b/wiki/lib/plugins/authplain/plugin.info.txt
@@ -0,0 +1,7 @@
+base   authplain
+author Andreas Gohr
+email  andi@splitbrain.org
+date   2015-07-18
+name   Plain Auth Plugin
+desc   Provides user authentication against DokuWiki's local password storage
+url    http://www.dokuwiki.org/plugin:authplain