mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
Update manifest.json
This commit is contained in:
parent
6ea455104d
commit
a6bd48a844
490 changed files with 80101 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Dokuwiki",
|
"name": "Dokuwiki",
|
||||||
"id": "dokuwiki",
|
"id": "dokuwiki_new",
|
||||||
"description": {
|
"description": {
|
||||||
"en": "DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.",
|
"en": "DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.",
|
||||||
"fr": "DokuWiki est un wiki Open Source simple à utiliser et très polyvalent qui n'exige aucune base de données.",
|
"fr": "DokuWiki est un wiki Open Source simple à utiliser et très polyvalent qui n'exige aucune base de données.",
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
},
|
},
|
||||||
"url": "https://www.dokuwiki.org",
|
"url": "https://www.dokuwiki.org",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "opi",
|
"name": "phiwui",
|
||||||
"email": "opi@zeropi.net"
|
"email": "onesmalllebowsky@yahoo.fr"
|
||||||
},
|
},
|
||||||
"multi_instance": "false",
|
"multi_instance": "false",
|
||||||
"services": [
|
"services": [
|
||||||
|
|
34
sources/inc/Form/ButtonElement.php
Normal file
34
sources/inc/Form/ButtonElement.php
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ButtonElement
|
||||||
|
*
|
||||||
|
* Represents a simple button
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class ButtonElement extends Element {
|
||||||
|
|
||||||
|
/** @var string HTML content */
|
||||||
|
protected $content = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $name
|
||||||
|
* @param string $content HTML content of the button. You have to escape it yourself.
|
||||||
|
*/
|
||||||
|
function __construct($name, $content = '') {
|
||||||
|
parent::__construct('button', array('name' => $name, 'value' => 1));
|
||||||
|
$this->content = $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '<button ' . buildAttributes($this->attrs()) . '>'.$this->content.'</button>';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
62
sources/inc/Form/CheckableElement.php
Normal file
62
sources/inc/Form/CheckableElement.php
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class CheckableElement
|
||||||
|
*
|
||||||
|
* For Radio- and Checkboxes
|
||||||
|
*
|
||||||
|
* @package DokuForm
|
||||||
|
*/
|
||||||
|
class CheckableElement extends InputElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $type The type of this element
|
||||||
|
* @param string $name The name of this form element
|
||||||
|
* @param string $label The label text for this element
|
||||||
|
*/
|
||||||
|
public function __construct($type, $name, $label) {
|
||||||
|
parent::__construct($type, $name, $label);
|
||||||
|
// default value is 1
|
||||||
|
$this->attr('value', 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles the useInput flag and sets the checked attribute accordingly
|
||||||
|
*/
|
||||||
|
protected function prefillInput() {
|
||||||
|
global $INPUT;
|
||||||
|
list($name, $key) = $this->getInputName();
|
||||||
|
$myvalue = $this->val();
|
||||||
|
|
||||||
|
if(!$INPUT->has($name)) return;
|
||||||
|
|
||||||
|
if($key === null) {
|
||||||
|
// no key - single value
|
||||||
|
$value = $INPUT->str($name);
|
||||||
|
if($value == $myvalue) {
|
||||||
|
$this->attr('checked', 'checked');
|
||||||
|
} else {
|
||||||
|
$this->rmattr('checked');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// we have an array, there might be several values in it
|
||||||
|
$input = $INPUT->arr($name);
|
||||||
|
if(isset($input[$key])) {
|
||||||
|
$this->rmattr('checked');
|
||||||
|
|
||||||
|
// values seem to be in another sub array
|
||||||
|
if(is_array($input[$key])) {
|
||||||
|
$input = $input[$key];
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($input as $value) {
|
||||||
|
if($value == $myvalue) {
|
||||||
|
$this->attr('checked', 'checked');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
151
sources/inc/Form/Element.php
Normal file
151
sources/inc/Form/Element.php
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Element
|
||||||
|
*
|
||||||
|
* The basic building block of a form
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
abstract class Element {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array the attributes of this element
|
||||||
|
*/
|
||||||
|
protected $attributes = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string The type of this element
|
||||||
|
*/
|
||||||
|
protected $type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $type The type of this element
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($type, $attributes = array()) {
|
||||||
|
$this->type = $type;
|
||||||
|
$this->attributes = $attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Type of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getType() {
|
||||||
|
return $this->type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or sets an attribute
|
||||||
|
*
|
||||||
|
* When no $value is given, the current content of the attribute is returned.
|
||||||
|
* An empty string is returned for unset attributes.
|
||||||
|
*
|
||||||
|
* When a $value is given, the content is set to that value and the Element
|
||||||
|
* itself is returned for easy chaining
|
||||||
|
*
|
||||||
|
* @param string $name Name of the attribute to access
|
||||||
|
* @param null|string $value New value to set
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function attr($name, $value = null) {
|
||||||
|
// set
|
||||||
|
if($value !== null) {
|
||||||
|
$this->attributes[$name] = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get
|
||||||
|
if(isset($this->attributes[$name])) {
|
||||||
|
return $this->attributes[$name];
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the given attribute if it exists
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function rmattr($name) {
|
||||||
|
if(isset($this->attributes[$name])) {
|
||||||
|
unset($this->attributes[$name]);
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or adds a all given attributes at once
|
||||||
|
*
|
||||||
|
* @param array|null $attributes
|
||||||
|
* @return array|$this
|
||||||
|
*/
|
||||||
|
public function attrs($attributes = null) {
|
||||||
|
// set
|
||||||
|
if($attributes) {
|
||||||
|
foreach((array) $attributes as $key => $val) {
|
||||||
|
$this->attr($key, $val);
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
// get
|
||||||
|
return $this->attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a class to the class attribute
|
||||||
|
*
|
||||||
|
* This is the preferred method of setting the element's class
|
||||||
|
*
|
||||||
|
* @param string $class the new class to add
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function addClass($class) {
|
||||||
|
$classes = explode(' ', $this->attr('class'));
|
||||||
|
$classes[] = $class;
|
||||||
|
$classes = array_unique($classes);
|
||||||
|
$classes = array_filter($classes);
|
||||||
|
$this->attr('class', join(' ', $classes));
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get or set the element's ID
|
||||||
|
*
|
||||||
|
* This is the preferred way of setting the element's ID
|
||||||
|
*
|
||||||
|
* @param null|string $id
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function id($id = null) {
|
||||||
|
if(strpos($id, '__') === false) {
|
||||||
|
throw new \InvalidArgumentException('IDs in DokuWiki have to contain two subsequent underscores');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->attr('id', $id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get or set the element's value
|
||||||
|
*
|
||||||
|
* This is the preferred way of setting the element's value
|
||||||
|
*
|
||||||
|
* @param null|string $value
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function val($value = null) {
|
||||||
|
return $this->attr('value', $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
abstract public function toHTML();
|
||||||
|
}
|
30
sources/inc/Form/FieldsetCloseElement.php
Normal file
30
sources/inc/Form/FieldsetCloseElement.php
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class FieldsetCloseElement
|
||||||
|
*
|
||||||
|
* Closes an open Fieldset
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class FieldsetCloseElement extends TagCloseElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($attributes = array()) {
|
||||||
|
parent::__construct('', $attributes);
|
||||||
|
$this->type = 'fieldsetclose';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '</fieldset>';
|
||||||
|
}
|
||||||
|
}
|
36
sources/inc/Form/FieldsetOpenElement.php
Normal file
36
sources/inc/Form/FieldsetOpenElement.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class FieldsetOpenElement
|
||||||
|
*
|
||||||
|
* Opens a Fieldset with an optional legend
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class FieldsetOpenElement extends TagOpenElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $legend
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($legend='', $attributes = array()) {
|
||||||
|
// this is a bit messy and we just do it for the nicer class hierarchy
|
||||||
|
// the parent would expect the tag in $value but we're storing the
|
||||||
|
// legend there, so we have to set the type manually
|
||||||
|
parent::__construct($legend, $attributes);
|
||||||
|
$this->type = 'fieldsetopen';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
$html = '<fieldset '.buildAttributes($this->attrs()).'>';
|
||||||
|
$legend = $this->val();
|
||||||
|
if($legend) $html .= DOKU_LF.'<legend>'.hsc($legend).'</legend>';
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
}
|
426
sources/inc/Form/Form.php
Normal file
426
sources/inc/Form/Form.php
Normal file
|
@ -0,0 +1,426 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Form
|
||||||
|
*
|
||||||
|
* Represents the whole Form. This is what you work on, and add Elements to
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class Form extends Element {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array name value pairs for hidden values
|
||||||
|
*/
|
||||||
|
protected $hidden = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Element[] the elements of the form
|
||||||
|
*/
|
||||||
|
protected $elements = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new, empty form with some default attributes
|
||||||
|
*
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($attributes = array()) {
|
||||||
|
global $ID;
|
||||||
|
|
||||||
|
parent::__construct('form', $attributes);
|
||||||
|
|
||||||
|
// use the current URL as default action
|
||||||
|
if(!$this->attr('action')) {
|
||||||
|
$get = $_GET;
|
||||||
|
if(isset($get['id'])) unset($get['id']);
|
||||||
|
$self = wl($ID, $get, false, '&'); //attributes are escaped later
|
||||||
|
$this->attr('action', $self);
|
||||||
|
}
|
||||||
|
|
||||||
|
// post is default
|
||||||
|
if(!$this->attr('method')) {
|
||||||
|
$this->attr('method', 'post');
|
||||||
|
}
|
||||||
|
|
||||||
|
// we like UTF-8
|
||||||
|
if(!$this->attr('accept-charset')) {
|
||||||
|
$this->attr('accept-charset', 'utf-8');
|
||||||
|
}
|
||||||
|
|
||||||
|
// add the security token by default
|
||||||
|
$this->setHiddenField('sectok', getSecurityToken());
|
||||||
|
|
||||||
|
// identify this as a new form based form in HTML
|
||||||
|
$this->addClass('doku_form');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a hidden field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $value
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setHiddenField($name, $value) {
|
||||||
|
$this->hidden[$name] = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
#region element query function
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the numbers of elements in the form
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function elementCount() {
|
||||||
|
return count($this->elements);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a reference to the element at a position.
|
||||||
|
* A position out-of-bounds will return either the
|
||||||
|
* first (underflow) or last (overflow) element.
|
||||||
|
*
|
||||||
|
* @param $pos
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function getElementAt($pos) {
|
||||||
|
if($pos < 0) $pos = count($this->elements) + $pos;
|
||||||
|
if($pos < 0) $pos = 0;
|
||||||
|
if($pos >= count($this->elements)) $pos = count($this->elements) - 1;
|
||||||
|
return $this->elements[$pos];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the position of the first of a type of element
|
||||||
|
*
|
||||||
|
* @param string $type Element type to look for.
|
||||||
|
* @param int $offset search from this position onward
|
||||||
|
* @return false|int position of element if found, otherwise false
|
||||||
|
*/
|
||||||
|
public function findPositionByType($type, $offset = 0) {
|
||||||
|
$len = $this->elementCount();
|
||||||
|
for($pos = $offset; $pos < $len; $pos++) {
|
||||||
|
if($this->elements[$pos]->getType() == $type) {
|
||||||
|
return $pos;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the position of the first element matching the attribute
|
||||||
|
*
|
||||||
|
* @param string $name Name of the attribute
|
||||||
|
* @param string $value Value the attribute should have
|
||||||
|
* @param int $offset search from this position onward
|
||||||
|
* @return false|int position of element if found, otherwise false
|
||||||
|
*/
|
||||||
|
public function findPositionByAttribute($name, $value, $offset = 0) {
|
||||||
|
$len = $this->elementCount();
|
||||||
|
for($pos = $offset; $pos < $len; $pos++) {
|
||||||
|
if($this->elements[$pos]->attr($name) == $value) {
|
||||||
|
return $pos;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Element positioning functions
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds or inserts an element to the form
|
||||||
|
*
|
||||||
|
* @param Element $element
|
||||||
|
* @param int $pos 0-based position in the form, -1 for at the end
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function addElement(Element $element, $pos = -1) {
|
||||||
|
if(is_a($element, '\dokuwiki\Form\Form')) throw new \InvalidArgumentException('You can\'t add a form to a form');
|
||||||
|
if($pos < 0) {
|
||||||
|
$this->elements[] = $element;
|
||||||
|
} else {
|
||||||
|
array_splice($this->elements, $pos, 0, array($element));
|
||||||
|
}
|
||||||
|
return $element;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replaces an existing element with a new one
|
||||||
|
*
|
||||||
|
* @param Element $element the new element
|
||||||
|
* @param $pos 0-based position of the element to replace
|
||||||
|
*/
|
||||||
|
public function replaceElement(Element $element, $pos) {
|
||||||
|
if(is_a($element, '\dokuwiki\Form\Form')) throw new \InvalidArgumentException('You can\'t add a form to a form');
|
||||||
|
array_splice($this->elements, $pos, 1, array($element));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove an element from the form completely
|
||||||
|
*
|
||||||
|
* @param $pos 0-based position of the element to remove
|
||||||
|
*/
|
||||||
|
public function removeElement($pos) {
|
||||||
|
array_splice($this->elements, $pos, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Element adding functions
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a text input field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $label
|
||||||
|
* @param int $pos
|
||||||
|
* @return InputElement
|
||||||
|
*/
|
||||||
|
public function addTextInput($name, $label = '', $pos = -1) {
|
||||||
|
return $this->addElement(new InputElement('text', $name, $label), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a password input field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $label
|
||||||
|
* @param int $pos
|
||||||
|
* @return InputElement
|
||||||
|
*/
|
||||||
|
public function addPasswordInput($name, $label = '', $pos = -1) {
|
||||||
|
return $this->addElement(new InputElement('password', $name, $label), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a radio button field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $label
|
||||||
|
* @param int $pos
|
||||||
|
* @return CheckableElement
|
||||||
|
*/
|
||||||
|
public function addRadioButton($name, $label = '', $pos = -1) {
|
||||||
|
return $this->addElement(new CheckableElement('radio', $name, $label), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a checkbox field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $label
|
||||||
|
* @param int $pos
|
||||||
|
* @return CheckableElement
|
||||||
|
*/
|
||||||
|
public function addCheckbox($name, $label = '', $pos = -1) {
|
||||||
|
return $this->addElement(new CheckableElement('checkbox', $name, $label), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a textarea field
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $label
|
||||||
|
* @param int $pos
|
||||||
|
* @return TextareaElement
|
||||||
|
*/
|
||||||
|
public function addTextarea($name, $label = '', $pos = -1) {
|
||||||
|
return $this->addElement(new TextareaElement($name, $label), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a simple button, escapes the content for you
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param string $content
|
||||||
|
* @param int $pos
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function addButton($name, $content, $pos = -1) {
|
||||||
|
return $this->addElement(new ButtonElement($name, hsc($content)), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a simple button, allows HTML for content
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param string $html
|
||||||
|
* @param int $pos
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function addButtonHTML($name, $html, $pos = -1) {
|
||||||
|
return $this->addElement(new ButtonElement($name, $html), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a label referencing another input element, escapes the label for you
|
||||||
|
*
|
||||||
|
* @param $label
|
||||||
|
* @param string $for
|
||||||
|
* @param int $pos
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function addLabel($label, $for='', $pos = -1) {
|
||||||
|
return $this->addLabelHTML(hsc($label), $for, $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a label referencing another input element, allows HTML for content
|
||||||
|
*
|
||||||
|
* @param string $content
|
||||||
|
* @param string|Element $for
|
||||||
|
* @param int $pos
|
||||||
|
* @return Element
|
||||||
|
*/
|
||||||
|
public function addLabelHTML($content, $for='', $pos = -1) {
|
||||||
|
$element = new LabelElement(hsc($content));
|
||||||
|
|
||||||
|
if(is_a($for, '\dokuwiki\Form\Element')) {
|
||||||
|
/** @var Element $for */
|
||||||
|
$for = $for->id();
|
||||||
|
}
|
||||||
|
$for = (string) $for;
|
||||||
|
if($for !== '') {
|
||||||
|
$element->attr('for', $for);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->addElement($element, $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add fixed HTML to the form
|
||||||
|
*
|
||||||
|
* @param $html
|
||||||
|
* @param int $pos
|
||||||
|
* @return HTMLElement
|
||||||
|
*/
|
||||||
|
public function addHTML($html, $pos = -1) {
|
||||||
|
return $this->addElement(new HTMLElement($html), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a closed HTML tag to the form
|
||||||
|
*
|
||||||
|
* @param $tag
|
||||||
|
* @param int $pos
|
||||||
|
* @return TagElement
|
||||||
|
*/
|
||||||
|
public function addTag($tag, $pos = -1) {
|
||||||
|
return $this->addElement(new TagElement($tag), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add an open HTML tag to the form
|
||||||
|
*
|
||||||
|
* Be sure to close it again!
|
||||||
|
*
|
||||||
|
* @param $tag
|
||||||
|
* @param int $pos
|
||||||
|
* @return TagOpenElement
|
||||||
|
*/
|
||||||
|
public function addTagOpen($tag, $pos = -1) {
|
||||||
|
return $this->addElement(new TagOpenElement($tag), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a closing HTML tag to the form
|
||||||
|
*
|
||||||
|
* Be sure it had been opened before
|
||||||
|
*
|
||||||
|
* @param $tag
|
||||||
|
* @param int $pos
|
||||||
|
* @return TagCloseElement
|
||||||
|
*/
|
||||||
|
public function addTagClose($tag, $pos = -1) {
|
||||||
|
return $this->addElement(new TagCloseElement($tag), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open a Fieldset
|
||||||
|
*
|
||||||
|
* @param $legend
|
||||||
|
* @param int $pos
|
||||||
|
* @return FieldsetOpenElement
|
||||||
|
*/
|
||||||
|
public function addFieldsetOpen($legend = '', $pos = -1) {
|
||||||
|
return $this->addElement(new FieldsetOpenElement($legend), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close a fieldset
|
||||||
|
*
|
||||||
|
* @param int $pos
|
||||||
|
* @return TagCloseElement
|
||||||
|
*/
|
||||||
|
public function addFieldsetClose($pos = -1) {
|
||||||
|
return $this->addElement(new FieldsetCloseElement(), $pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adjust the elements so that fieldset open and closes are matching
|
||||||
|
*/
|
||||||
|
protected function balanceFieldsets() {
|
||||||
|
$lastclose = 0;
|
||||||
|
$isopen = false;
|
||||||
|
$len = count($this->elements);
|
||||||
|
|
||||||
|
for($pos = 0; $pos < $len; $pos++) {
|
||||||
|
$type = $this->elements[$pos]->getType();
|
||||||
|
if($type == 'fieldsetopen') {
|
||||||
|
if($isopen) {
|
||||||
|
//close previous fieldset
|
||||||
|
$this->addFieldsetClose($pos);
|
||||||
|
$lastclose = $pos + 1;
|
||||||
|
$pos++;
|
||||||
|
$len++;
|
||||||
|
}
|
||||||
|
$isopen = true;
|
||||||
|
} else if($type == 'fieldsetclose') {
|
||||||
|
if(!$isopen) {
|
||||||
|
// make sure there was a fieldsetopen
|
||||||
|
// either right after the last close or at the begining
|
||||||
|
$this->addFieldsetOpen('', $lastclose);
|
||||||
|
$len++;
|
||||||
|
$pos++;
|
||||||
|
}
|
||||||
|
$lastclose = $pos;
|
||||||
|
$isopen = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// close open fieldset at the end
|
||||||
|
if($isopen) {
|
||||||
|
$this->addFieldsetClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of the whole form
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
$this->balanceFieldsets();
|
||||||
|
|
||||||
|
$html = '<form ' . buildAttributes($this->attrs()) . '>' . DOKU_LF;
|
||||||
|
|
||||||
|
foreach($this->hidden as $name => $value) {
|
||||||
|
$html .= '<input type="hidden" name="' . $name . '" value="' . formText($value) . '" />' . DOKU_LF;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($this->elements as $element) {
|
||||||
|
$html .= $element->toHTML() . DOKU_LF;
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= '</form>' . DOKU_LF;
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
}
|
29
sources/inc/Form/HTMLElement.php
Normal file
29
sources/inc/Form/HTMLElement.php
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class HTMLElement
|
||||||
|
*
|
||||||
|
* Holds arbitrary HTML that is added as is to the Form
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class HTMLElement extends ValueElement {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $html
|
||||||
|
*/
|
||||||
|
public function __construct($html) {
|
||||||
|
parent::__construct('html', $html);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return $this->val();
|
||||||
|
}
|
||||||
|
}
|
161
sources/inc/Form/InputElement.php
Normal file
161
sources/inc/Form/InputElement.php
Normal file
|
@ -0,0 +1,161 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InputElement
|
||||||
|
*
|
||||||
|
* Base class for all input elements. Uses a wrapping label when label
|
||||||
|
* text is given.
|
||||||
|
*
|
||||||
|
* @todo figure out how to make wrapping or related label configurable
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class InputElement extends Element {
|
||||||
|
/**
|
||||||
|
* @var LabelElement
|
||||||
|
*/
|
||||||
|
protected $label = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool if the element should reflect posted values
|
||||||
|
*/
|
||||||
|
protected $useInput = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $type The type of this element
|
||||||
|
* @param string $name The name of this form element
|
||||||
|
* @param string $label The label text for this element (will be autoescaped)
|
||||||
|
*/
|
||||||
|
public function __construct($type, $name, $label = '') {
|
||||||
|
parent::__construct($type, array('name' => $name));
|
||||||
|
$this->attr('name', $name);
|
||||||
|
$this->attr('type', $type);
|
||||||
|
if($label) $this->label = new LabelElement($label);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the label element if there's one set
|
||||||
|
*
|
||||||
|
* @return LabelElement|null
|
||||||
|
*/
|
||||||
|
public function getLabel() {
|
||||||
|
return $this->label;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should the user sent input be used to initialize the input field
|
||||||
|
*
|
||||||
|
* The default is true. Any set values will be overwritten by the INPUT
|
||||||
|
* provided values.
|
||||||
|
*
|
||||||
|
* @param bool $useinput
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function useInput($useinput) {
|
||||||
|
$this->useInput = (bool) $useinput;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get or set the element's ID
|
||||||
|
*
|
||||||
|
* @param null|string $id
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function id($id = null) {
|
||||||
|
if($this->label) $this->label->attr('for', $id);
|
||||||
|
return parent::id($id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a class to the class attribute
|
||||||
|
*
|
||||||
|
* This is the preferred method of setting the element's class
|
||||||
|
*
|
||||||
|
* @param string $class the new class to add
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function addClass($class) {
|
||||||
|
if($this->label) $this->label->addClass($class);
|
||||||
|
return parent::addClass($class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Figures out how to access the value for this field from INPUT data
|
||||||
|
*
|
||||||
|
* The element's name could have been given as a simple string ('foo')
|
||||||
|
* or in array notation ('foo[bar]').
|
||||||
|
*
|
||||||
|
* Note: this function only handles one level of arrays. If your data
|
||||||
|
* is nested deeper, you should call useInput(false) and set the
|
||||||
|
* correct value yourself
|
||||||
|
*
|
||||||
|
* @return array name and array key (null if not an array)
|
||||||
|
*/
|
||||||
|
protected function getInputName() {
|
||||||
|
$name = $this->attr('name');
|
||||||
|
parse_str("$name=1", $parsed);
|
||||||
|
|
||||||
|
$name = array_keys($parsed);
|
||||||
|
$name = array_shift($name);
|
||||||
|
|
||||||
|
if(is_array($parsed[$name])) {
|
||||||
|
$key = array_keys($parsed[$name]);
|
||||||
|
$key = array_shift($key);
|
||||||
|
} else {
|
||||||
|
$key = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array($name, $key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles the useInput flag and set the value attribute accordingly
|
||||||
|
*/
|
||||||
|
protected function prefillInput() {
|
||||||
|
global $INPUT;
|
||||||
|
|
||||||
|
list($name, $key) = $this->getInputName();
|
||||||
|
if(!$INPUT->has($name)) return;
|
||||||
|
|
||||||
|
if($key === null) {
|
||||||
|
$value = $INPUT->str($name);
|
||||||
|
} else {
|
||||||
|
$value = $INPUT->arr($name);
|
||||||
|
if(isset($value[$key])) {
|
||||||
|
$value = $value[$key];
|
||||||
|
} else {
|
||||||
|
$value = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($value !== '') {
|
||||||
|
$this->val($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function mainElementHTML() {
|
||||||
|
if($this->useInput) $this->prefillInput();
|
||||||
|
return '<input ' . buildAttributes($this->attrs()) . ' />';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element wrapped in a label
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
if($this->label) {
|
||||||
|
return '<label ' . buildAttributes($this->label->attrs()) . '>' . DOKU_LF .
|
||||||
|
'<span>' . hsc($this->label->val()) . '</span>' . DOKU_LF .
|
||||||
|
$this->mainElementHTML() . DOKU_LF .
|
||||||
|
'</label>';
|
||||||
|
} else {
|
||||||
|
return $this->mainElementHTML();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
27
sources/inc/Form/LabelElement.php
Normal file
27
sources/inc/Form/LabelElement.php
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Label
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class LabelElement extends ValueElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new Label
|
||||||
|
*
|
||||||
|
* @param string $label This is is raw HTML and will not be escaped
|
||||||
|
*/
|
||||||
|
public function __construct($label) {
|
||||||
|
parent::__construct('label', $label);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '<label ' . buildAttributes($this->attrs()) . '>' . $this->val() . '</label>';
|
||||||
|
}
|
||||||
|
}
|
181
sources/inc/Form/LegacyForm.php
Normal file
181
sources/inc/Form/LegacyForm.php
Normal file
|
@ -0,0 +1,181 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class LegacyForm
|
||||||
|
*
|
||||||
|
* Provides a compatibility layer to the old Doku_Form API
|
||||||
|
*
|
||||||
|
* This can be used to work with the modern API on forms provided by old events for
|
||||||
|
* example. When you start new forms, just use Form\Form
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class LegacyForm extends Form {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new modern form from an old legacy Doku_Form
|
||||||
|
*
|
||||||
|
* @param \Doku_Form $oldform
|
||||||
|
*/
|
||||||
|
public function __construct(\Doku_Form $oldform) {
|
||||||
|
parent::__construct($oldform->params);
|
||||||
|
|
||||||
|
$this->hidden = $oldform->_hidden;
|
||||||
|
|
||||||
|
foreach($oldform->_content as $element) {
|
||||||
|
list($ctl, $attr) = $this->parseLegacyAttr($element);
|
||||||
|
|
||||||
|
if(is_array($element)) {
|
||||||
|
switch($ctl['elem']) {
|
||||||
|
case 'wikitext':
|
||||||
|
$this->addTextarea('wikitext')
|
||||||
|
->attrs($attr)
|
||||||
|
->id('wiki__text')
|
||||||
|
->val($ctl['text'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'textfield':
|
||||||
|
$this->addTextInput($ctl['name'], $ctl['text'])
|
||||||
|
->attrs($attr)
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'passwordfield':
|
||||||
|
$this->addPasswordInput($ctl['name'], $ctl['text'])
|
||||||
|
->attrs($attr)
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'checkboxfield':
|
||||||
|
$this->addCheckbox($ctl['name'], $ctl['text'])
|
||||||
|
->attrs($attr)
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'radiofield':
|
||||||
|
$this->addRadioButton($ctl['name'], $ctl['text'])
|
||||||
|
->attrs($attr)
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'tag':
|
||||||
|
$this->addTag($ctl['tag'])
|
||||||
|
->attrs($attr)
|
||||||
|
->attr('name', $ctl['name'])
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'opentag':
|
||||||
|
$this->addTagOpen($ctl['tag'])
|
||||||
|
->attrs($attr)
|
||||||
|
->attr('name', $ctl['name'])
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'closetag':
|
||||||
|
$this->addTagClose($ctl['tag']);
|
||||||
|
break;
|
||||||
|
case 'openfieldset':
|
||||||
|
$this->addFieldsetOpen($ctl['legend'])
|
||||||
|
->attrs($attr)
|
||||||
|
->attr('name', $ctl['name'])
|
||||||
|
->id($ctl['id'])
|
||||||
|
->addClass($ctl['class']);
|
||||||
|
break;
|
||||||
|
case 'closefieldset':
|
||||||
|
$this->addFieldsetClose();
|
||||||
|
break;
|
||||||
|
case 'button':
|
||||||
|
case 'field':
|
||||||
|
case 'fieldright':
|
||||||
|
case 'filefield':
|
||||||
|
case 'menufield':
|
||||||
|
case 'listboxfield':
|
||||||
|
throw new \UnexpectedValueException('Unsupported legacy field ' . $ctl['elem']);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new \UnexpectedValueException('Unknown legacy field ' . $ctl['elem']);
|
||||||
|
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$this->addHTML($element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parses out what is the elements attributes and what is control info
|
||||||
|
*
|
||||||
|
* @param array $legacy
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected function parseLegacyAttr($legacy) {
|
||||||
|
$attributes = array();
|
||||||
|
$control = array();
|
||||||
|
|
||||||
|
foreach($legacy as $key => $val) {
|
||||||
|
if($key{0} == '_') {
|
||||||
|
$control[substr($key, 1)] = $val;
|
||||||
|
} elseif($key == 'name') {
|
||||||
|
$control[$key] = $val;
|
||||||
|
} elseif($key == 'id') {
|
||||||
|
$control[$key] = $val;
|
||||||
|
} else {
|
||||||
|
$attributes[$key] = $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return array($control, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translates our types to the legacy types
|
||||||
|
*
|
||||||
|
* @param string $type
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function legacyType($type) {
|
||||||
|
static $types = array(
|
||||||
|
'text' => 'textfield',
|
||||||
|
'password' => 'passwordfield',
|
||||||
|
'checkbox' => 'checkboxfield',
|
||||||
|
'radio' => 'radiofield',
|
||||||
|
'tagopen' => 'opentag',
|
||||||
|
'tagclose' => 'closetag',
|
||||||
|
'fieldsetopen' => 'openfieldset',
|
||||||
|
'fieldsetclose' => 'closefieldset',
|
||||||
|
);
|
||||||
|
if(isset($types[$type])) return $types[$type];
|
||||||
|
return $type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an old legacy form from this modern form's data
|
||||||
|
*
|
||||||
|
* @return \Doku_Form
|
||||||
|
*/
|
||||||
|
public function toLegacy() {
|
||||||
|
$this->balanceFieldsets();
|
||||||
|
|
||||||
|
$legacy = new \Doku_Form($this->attrs());
|
||||||
|
$legacy->_hidden = $this->hidden;
|
||||||
|
foreach($this->elements as $element) {
|
||||||
|
if(is_a($element, 'dokuwiki\Form\HTMLElement')) {
|
||||||
|
$legacy->_content[] = $element->toHTML();
|
||||||
|
} elseif(is_a($element, 'dokuwiki\Form\InputElement')) {
|
||||||
|
/** @var InputElement $element */
|
||||||
|
$data = $element->attrs();
|
||||||
|
$data['_elem'] = $this->legacyType($element->getType());
|
||||||
|
$label = $element->getLabel();
|
||||||
|
if($label) {
|
||||||
|
$data['_class'] = $label->attr('class');
|
||||||
|
}
|
||||||
|
$legacy->_content[] = $data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $legacy;
|
||||||
|
}
|
||||||
|
}
|
76
sources/inc/Form/TagCloseElement.php
Normal file
76
sources/inc/Form/TagCloseElement.php
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TagCloseElement
|
||||||
|
*
|
||||||
|
* Creates an HTML close tag. You have to make sure it has been opened
|
||||||
|
* before or this will produce invalid HTML
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class TagCloseElement extends ValueElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $tag
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($tag, $attributes = array()) {
|
||||||
|
parent::__construct('tagclose', $tag, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* do not call this
|
||||||
|
*
|
||||||
|
* @param $class
|
||||||
|
* @return void
|
||||||
|
* @throws \BadMethodCallException
|
||||||
|
*/
|
||||||
|
public function addClass($class) {
|
||||||
|
throw new \BadMethodCallException('You can\t add classes to closing tag');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* do not call this
|
||||||
|
*
|
||||||
|
* @param $id
|
||||||
|
* @return void
|
||||||
|
* @throws \BadMethodCallException
|
||||||
|
*/
|
||||||
|
public function id($id = null) {
|
||||||
|
throw new \BadMethodCallException('You can\t add ID to closing tag');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* do not call this
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* @param $value
|
||||||
|
* @return void
|
||||||
|
* @throws \BadMethodCallException
|
||||||
|
*/
|
||||||
|
public function attr($name, $value = null) {
|
||||||
|
throw new \BadMethodCallException('You can\t add attributes to closing tag');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* do not call this
|
||||||
|
*
|
||||||
|
* @param $attributes
|
||||||
|
* @return void
|
||||||
|
* @throws \BadMethodCallException
|
||||||
|
*/
|
||||||
|
public function attrs($attributes = null) {
|
||||||
|
throw new \BadMethodCallException('You can\t add attributes to closing tag');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '</'.$this->val().'>';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
29
sources/inc/Form/TagElement.php
Normal file
29
sources/inc/Form/TagElement.php
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TagElement
|
||||||
|
*
|
||||||
|
* Creates a self closing HTML tag
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class TagElement extends ValueElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $tag
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($tag, $attributes = array()) {
|
||||||
|
parent::__construct('tag', $tag, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '<'.$this->val().' '.buildAttributes($this->attrs()).' />';
|
||||||
|
}
|
||||||
|
}
|
30
sources/inc/Form/TagOpenElement.php
Normal file
30
sources/inc/Form/TagOpenElement.php
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TagOpenElement
|
||||||
|
*
|
||||||
|
* Creates an open HTML tag. You have to make sure you close it
|
||||||
|
* again or this will produce invalid HTML
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class TagOpenElement extends ValueElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $tag
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($tag, $attributes = array()) {
|
||||||
|
parent::__construct('tagopen', $tag, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function toHTML() {
|
||||||
|
return '<'.$this->val().' '.buildAttributes($this->attrs()).'>';
|
||||||
|
}
|
||||||
|
}
|
51
sources/inc/Form/TextareaElement.php
Normal file
51
sources/inc/Form/TextareaElement.php
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TextareaElement
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
class TextareaElement extends InputElement {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string the actual text within the area
|
||||||
|
*/
|
||||||
|
protected $text;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $name The name of this form element
|
||||||
|
* @param string $label The label text for this element
|
||||||
|
*/
|
||||||
|
public function __construct($name, $label) {
|
||||||
|
parent::__construct('textarea', $name, $label);
|
||||||
|
$this->attr('dir', 'auto');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get or set the element's value
|
||||||
|
*
|
||||||
|
* This is the preferred way of setting the element's value
|
||||||
|
*
|
||||||
|
* @param null|string $value
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function val($value = null) {
|
||||||
|
if($value !== null) {
|
||||||
|
$this->text = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
return $this->text;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The HTML representation of this element
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected function mainElementHTML() {
|
||||||
|
if($this->useInput) $this->prefillInput();
|
||||||
|
return '<textarea ' . buildAttributes($this->attrs()) . '>' .
|
||||||
|
formText($this->val()) . '</textarea>';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
45
sources/inc/Form/ValueElement.php
Normal file
45
sources/inc/Form/ValueElement.php
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dokuwiki\Form;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ValueElement
|
||||||
|
*
|
||||||
|
* Just like an Element but it's value is not part of its attributes
|
||||||
|
*
|
||||||
|
* What the value is (tag name, content, etc) is defined by the actual implementations
|
||||||
|
*
|
||||||
|
* @package dokuwiki\Form
|
||||||
|
*/
|
||||||
|
abstract class ValueElement extends Element {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string holds the element's value
|
||||||
|
*/
|
||||||
|
protected $value = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $type
|
||||||
|
* @param array|string $value
|
||||||
|
* @param array $attributes
|
||||||
|
*/
|
||||||
|
public function __construct($type, $value, $attributes = array()) {
|
||||||
|
parent::__construct($type, $attributes);
|
||||||
|
$this->val($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get or set the element's value
|
||||||
|
*
|
||||||
|
* @param null|string $value
|
||||||
|
* @return string|$this
|
||||||
|
*/
|
||||||
|
public function val($value = null) {
|
||||||
|
if($value !== null) {
|
||||||
|
$this->value = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
return $this->value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
3
sources/inc/lang/he/resetpwd.txt
Normal file
3
sources/inc/lang/he/resetpwd.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== קבע סיסמה חדשה ======
|
||||||
|
|
||||||
|
אנא הכנס סיסמה חדשה לחשבון שלך בויקי זה.
|
35
sources/inc/lang/ka/jquery.ui.datepicker.js
vendored
Normal file
35
sources/inc/lang/ka/jquery.ui.datepicker.js
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
/* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||||
|
/* Written by Lado Lomidze (lado.lomidze@gmail.com). */
|
||||||
|
(function( factory ) {
|
||||||
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define([ "../datepicker" ], factory );
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Browser globals
|
||||||
|
factory( jQuery.datepicker );
|
||||||
|
}
|
||||||
|
}(function( datepicker ) {
|
||||||
|
|
||||||
|
datepicker.regional['ka'] = {
|
||||||
|
closeText: 'დახურვა',
|
||||||
|
prevText: '< წინა',
|
||||||
|
nextText: 'შემდეგი >',
|
||||||
|
currentText: 'დღეს',
|
||||||
|
monthNames: ['იანვარი','თებერვალი','მარტი','აპრილი','მაისი','ივნისი', 'ივლისი','აგვისტო','სექტემბერი','ოქტომბერი','ნოემბერი','დეკემბერი'],
|
||||||
|
monthNamesShort: ['იან','თებ','მარ','აპრ','მაი','ივნ', 'ივლ','აგვ','სექ','ოქტ','ნოე','დეკ'],
|
||||||
|
dayNames: ['კვირა','ორშაბათი','სამშაბათი','ოთხშაბათი','ხუთშაბათი','პარასკევი','შაბათი'],
|
||||||
|
dayNamesShort: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||||
|
dayNamesMin: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||||
|
weekHeader: 'კვირა',
|
||||||
|
dateFormat: 'dd-mm-yy',
|
||||||
|
firstDay: 1,
|
||||||
|
isRTL: false,
|
||||||
|
showMonthAfterYear: false,
|
||||||
|
yearSuffix: ''};
|
||||||
|
datepicker.setDefaults(datepicker.regional['ka']);
|
||||||
|
|
||||||
|
return datepicker.regional['ka'];
|
||||||
|
|
||||||
|
}));
|
3
sources/inc/lang/ml/admin.txt
Normal file
3
sources/inc/lang/ml/admin.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== പൊതു സെറ്റിംഗ്സ് ======
|
||||||
|
|
||||||
|
താഴെ കാണുന്ന പട്ടിക ഡോക്കുവിക്കിയിൽ ഉള്ള പൊതു സെറ്റിംഗ്സ് ആണ് .
|
1
sources/inc/lang/ne/adminplugins.txt
Normal file
1
sources/inc/lang/ne/adminplugins.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
===== थप प्लगिनहरू =====
|
3
sources/inc/lang/pt/resetpwd.txt
Normal file
3
sources/inc/lang/pt/resetpwd.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== Definir nova senha ======
|
||||||
|
|
||||||
|
Digite uma nova senha para a sua conta nesta wiki.
|
3
sources/inc/lang/ta/admin.txt
Normal file
3
sources/inc/lang/ta/admin.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== நிர்வாகம் ======
|
||||||
|
|
||||||
|
கீழே டோகுவிக்கியின் நிர்வாகம் தொடர்பான முறைமைகளைப் பார்க்கலாம்.
|
1
sources/inc/lang/ta/adminplugins.txt
Normal file
1
sources/inc/lang/ta/adminplugins.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
===== மேலதிக சொருகிகள் =====
|
3
sources/inc/lang/ta/backlinks.txt
Normal file
3
sources/inc/lang/ta/backlinks.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== பின்னிணைப்புக்கள் ======
|
||||||
|
|
||||||
|
குறித்த பக்கத்திற்கான இணைப்பைக் கொண்டிருக்கும் அனைத்துப் பக்கங்களும்
|
3
sources/inc/lang/ta/conflict.txt
Normal file
3
sources/inc/lang/ta/conflict.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== புதிய பதிப்பு உண்டு ======
|
||||||
|
|
||||||
|
நீங்கள் திருத்திய பக்கத்திற்கு புதிய பதிப்பு உருவாகியுள்ளது. நீங்கள் குறித்த பக்கத்தை திருத்தும் போது, இன்னுமொரு பயனர் அதே பக்கத்தைத் திருத்தினால் இப்படி ஏற்பட வாய்ப்புண்டு.
|
3
sources/inc/lang/ta/diff.txt
Normal file
3
sources/inc/lang/ta/diff.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
====== வேறுபாடுகள் ======
|
||||||
|
|
||||||
|
குறித்த பக்கத்திற்கான இருவேறுபட்ட மாறுதல்களைக் காட்டுகின்றது.
|
1
sources/inc/lang/ta/draft.txt
Normal file
1
sources/inc/lang/ta/draft.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
====== பூரணமாகத கோப்பு ======
|
1
sources/inc/lang/ta/edit.txt
Normal file
1
sources/inc/lang/ta/edit.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
பக்கத்தைத் திருத்தி முடிந்தவுடன், "செமி" என்ற பட்டனை அழுத்தவும். விக்கியின் வாக்கிய அமைப்புக்களைப் அறிந்துகொள்ள [[wiki:syntax]] ஐ பார்க்கவும். நீங்கள் விக்கியில் எழுதிப் பயிற்சிபெற [playground:playground|விளையாட்டுத்தாடலை]] பயன்படுத்தவும்.
|
37
sources/inc/lang/ta/jquery.ui.datepicker.js
vendored
Normal file
37
sources/inc/lang/ta/jquery.ui.datepicker.js
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
/* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||||
|
/* Written by S A Sureshkumar (saskumar@live.com). */
|
||||||
|
(function( factory ) {
|
||||||
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define([ "../datepicker" ], factory );
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Browser globals
|
||||||
|
factory( jQuery.datepicker );
|
||||||
|
}
|
||||||
|
}(function( datepicker ) {
|
||||||
|
|
||||||
|
datepicker.regional['ta'] = {
|
||||||
|
closeText: 'மூடு',
|
||||||
|
prevText: 'முன்னையது',
|
||||||
|
nextText: 'அடுத்தது',
|
||||||
|
currentText: 'இன்று',
|
||||||
|
monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி',
|
||||||
|
'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'],
|
||||||
|
monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி',
|
||||||
|
'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'],
|
||||||
|
dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'],
|
||||||
|
dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'],
|
||||||
|
dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'],
|
||||||
|
weekHeader: 'Не',
|
||||||
|
dateFormat: 'dd/mm/yy',
|
||||||
|
firstDay: 1,
|
||||||
|
isRTL: false,
|
||||||
|
showMonthAfterYear: false,
|
||||||
|
yearSuffix: ''};
|
||||||
|
datepicker.setDefaults(datepicker.regional['ta']);
|
||||||
|
|
||||||
|
return datepicker.regional['ta'];
|
||||||
|
|
||||||
|
}));
|
BIN
sources/lib/images/admin/styling.png
Normal file
BIN
sources/lib/images/admin/styling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 970 B |
BIN
sources/lib/images/interwiki/tel.gif
Normal file
BIN
sources/lib/images/interwiki/tel.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 177 B |
8
sources/lib/plugins/authad/lang/bg/lang.php
Normal file
8
sources/lib/plugins/authad/lang/bg/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Kiril <neohidra@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Срока на паролата ви ще изтече след %d дни. Препоръчително е да я смените по-скоро.';
|
8
sources/lib/plugins/authad/lang/ca/lang.php
Normal file
8
sources/lib/plugins/authad/lang/ca/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Daniel López Prat <daniel@6temes.cat>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'La vostra contrasenya caducarà en %d dies, l\'hauríeu de canviar aviat.';
|
10
sources/lib/plugins/authad/lang/da/lang.php
Normal file
10
sources/lib/plugins/authad/lang/da/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jacob Palm <mail@jacobpalm.dk>
|
||||||
|
* @author Mikael Lyngvig <mikael@lyngvig.org>
|
||||||
|
*/
|
||||||
|
$lang['domain'] = 'Logondomæne';
|
||||||
|
$lang['authpwdexpire'] = 'Din adgangskode vil udløbe om %d dage, du bør ændre det snart.';
|
11
sources/lib/plugins/authad/lang/de-informal/lang.php
Normal file
11
sources/lib/plugins/authad/lang/de-informal/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Andreas Gohr <gohr@cosmocode.de>
|
||||||
|
* @author rnck <dokuwiki@rnck.de>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Dein Passwort läuft in %d Tag(en) ab. Du solltest es es frühzeitig ändern.';
|
||||||
|
$lang['passchangefail'] = 'Das Passwort konnte nicht geändert werden. Eventuell wurde die Passwort-Richtlinie nicht eingehalten.';
|
||||||
|
$lang['connectfail'] = 'Verbindung zum Active Directory Server fehlgeschlagen.';
|
8
sources/lib/plugins/authad/lang/el/lang.php
Normal file
8
sources/lib/plugins/authad/lang/el/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Vasileios Karavasilis vasileioskaravasilis@gmail.com
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Ο κωδικός πρόσβασης θα λήξει σε %d ημέρες. Προτείνουμε να τον αλλάξετε σύντομα.';
|
8
sources/lib/plugins/authad/lang/et/lang.php
Normal file
8
sources/lib/plugins/authad/lang/et/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Janar Leas <janar.leas@eesti.ee>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Sinu salasõna aegub %d päeva pärast, võiksid seda peatselt muuta.';
|
8
sources/lib/plugins/authad/lang/eu/lang.php
Normal file
8
sources/lib/plugins/authad/lang/eu/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Zigor Astarbe <astarbe@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Zure pasahitza %d egun barru iraungiko da, laster aldatu beharko zenuke.';
|
10
sources/lib/plugins/authad/lang/fa/settings.php
Normal file
10
sources/lib/plugins/authad/lang/fa/settings.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Omid Hezaveh <hezpublic@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['admin_password'] = 'رمز کاربر بالایی ';
|
||||||
|
$lang['use_ssl'] = 'از اساسال استفاده میکنید؟ در این صورت تیالاس را در پایین فعال نکنید. ';
|
||||||
|
$lang['use_tls'] = 'از تیالاس استفاده میکنید؟ در این صورت اساسال را در بالا فعال نکنید. ';
|
8
sources/lib/plugins/authad/lang/fi/lang.php
Normal file
8
sources/lib/plugins/authad/lang/fi/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jussi Takala <jussi.takala@live.fi>
|
||||||
|
*/
|
||||||
|
|
||||||
|
$lang['authpwdexpire'] = 'Salasanasi vanhenee %d pv:n päästä, vaihda salasanasi pikaisesti.';
|
8
sources/lib/plugins/authad/lang/gl/lang.php
Normal file
8
sources/lib/plugins/authad/lang/gl/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Rodrigo Rega <rodrigorega@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'A túa contrasinal expirará en %d días, deberías cambiala pronto.';
|
10
sources/lib/plugins/authad/lang/he/lang.php
Normal file
10
sources/lib/plugins/authad/lang/he/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author tomer <tomercarolldergicz@gmail.com>
|
||||||
|
* @author Menashe Tomer <menashesite@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'הסיסמה שלך תפוג ב %d ימים, אתה צריך לשנות את זה בקרוב.';
|
||||||
|
$lang['passchangefail'] = 'שגיאה בשינוי סיסמה. האם הסיסמה תואמת למדיניות המערכת?';
|
8
sources/lib/plugins/authad/lang/he/settings.php
Normal file
8
sources/lib/plugins/authad/lang/he/settings.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Menashe Tomer <menashesite@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['admin_password'] = 'סיסמת המשתמש המוזכן';
|
8
sources/lib/plugins/authad/lang/it/lang.php
Normal file
8
sources/lib/plugins/authad/lang/it/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Matteo Pasotti <matteo@xquiet.eu>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'La tua password scadrà in %d giorni, dovresti cambiarla quanto prima.';
|
8
sources/lib/plugins/authad/lang/ka/lang.php
Normal file
8
sources/lib/plugins/authad/lang/ka/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Luka Lejava <luka.lejava@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'თქვენს პაროლს ვადა გაუვა %d დღეში, მალე შეცვლა მოგიწევთ.';
|
13
sources/lib/plugins/authad/lang/no/lang.php
Normal file
13
sources/lib/plugins/authad/lang/no/lang.php
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Patrick <spill.p@hotmail.com>
|
||||||
|
* @author Thomas Juberg <Thomas.Juberg@Gmail.com>
|
||||||
|
* @author Danny Buckhof <daniel.raknes@hotmail.no>
|
||||||
|
*/
|
||||||
|
$lang['domain'] = 'Loggpå-domene';
|
||||||
|
$lang['authpwdexpire'] = 'Ditt passord går ut om %d dager, du bør endre det snarest.';
|
||||||
|
$lang['passchangefail'] = 'Feil ved endring av passord. Det kan være at passordet ikke er i tråd med passordpolicyen ';
|
||||||
|
$lang['connectfail'] = 'Feil ved kontakt med Active Directory serveren.';
|
8
sources/lib/plugins/authad/lang/pl/lang.php
Normal file
8
sources/lib/plugins/authad/lang/pl/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Aoi Karasu <aoikarasu@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Twoje hasło wygaśnie za %d dni. Należy je zmienić w krótkim czasie.';
|
8
sources/lib/plugins/authad/lang/ro/lang.php
Normal file
8
sources/lib/plugins/authad/lang/ro/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Parola va expira în %d zile, ar trebui să o schimbi în curând.';
|
8
sources/lib/plugins/authad/lang/sk/lang.php
Normal file
8
sources/lib/plugins/authad/lang/sk/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Martin Michalek <michalek.dev@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Platnosť hesla vyprší za %d dní, mali by ste ho zmeniť čo najskôr.';
|
8
sources/lib/plugins/authad/lang/sl/lang.php
Normal file
8
sources/lib/plugins/authad/lang/sl/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author matej <mateju@svn.gnome.org>
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Geslo bo poteklo v %d dneh. Priporočljivo ga je zamenjati.';
|
8
sources/lib/plugins/authad/lang/sv/lang.php
Normal file
8
sources/lib/plugins/authad/lang/sv/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Smorkster Andersson smorkster@gmail.com
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Ditt lösenord kommer att bli ogiltigt om %d dagar, du bör ändra det snart.';
|
8
sources/lib/plugins/authad/lang/tr/lang.php
Normal file
8
sources/lib/plugins/authad/lang/tr/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author farukerdemoncel@gmail.com
|
||||||
|
*/
|
||||||
|
$lang['authpwdexpire'] = 'Şifreniz %d gün sonra geçersiz hale gelecek, yakın bir zamanda değiştirmelisiniz.';
|
9
sources/lib/plugins/authldap/lang/cs/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/cs/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jaroslav Lichtblau <jlichtblau@seznam.cz>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP připojení nefunkční: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP nenalezlo uživatelské dn';
|
9
sources/lib/plugins/authldap/lang/de/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/de/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Philip Knack <p.knack@stollfuss.de>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP-Verbindung scheitert: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP kann nicht dein Benutzer finden dn';
|
11
sources/lib/plugins/authldap/lang/en/lang.php
Normal file
11
sources/lib/plugins/authldap/lang/en/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* English language file for authldap plugin
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
$lang['connectfail'] = 'LDAP cannot connect: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP cannot find your user dn';
|
||||||
|
|
||||||
|
//Setup VIM: ex: et ts=4 :
|
8
sources/lib/plugins/authldap/lang/es/lang.php
Normal file
8
sources/lib/plugins/authldap/lang/es/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Mauricio Segura <maose38@yahoo.es>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP no se puede conectar: %s';
|
10
sources/lib/plugins/authldap/lang/fa/settings.php
Normal file
10
sources/lib/plugins/authldap/lang/fa/settings.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Mohammad Sadegh <msdn2013@gmail.com>
|
||||||
|
* @author Omid Hezaveh <hezpublic@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['starttls'] = 'از تیالاس (TLS) استفاده میکنید؟';
|
||||||
|
$lang['bindpw'] = 'رمزعبور کاربر بالا';
|
9
sources/lib/plugins/authldap/lang/fr/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/fr/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Pietroni <pietroni@informatique.univ-paris-diderot.fr>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP ne peux se connecter : %s';
|
||||||
|
$lang['domainfail'] = 'LDAP ne trouve pas l\'utilisateur dn';
|
9
sources/lib/plugins/authldap/lang/hr/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/hr/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Davor Turkalj <turki.bsc@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP se ne može spojiti: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP ne može pronaći Vaš korisnički dn';
|
9
sources/lib/plugins/authldap/lang/hu/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/hu/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Marton Sebok <sebokmarton@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Az LDAP nem tudott csatlakozni: %s';
|
||||||
|
$lang['domainfail'] = 'Az LDAP nem találta a felhasználód megkülönböztető nevét (DN)';
|
9
sources/lib/plugins/authldap/lang/ja/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/ja/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Hideaki SAWADA <chuno@live.jp>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP に接続できません: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP で user dn を発見できません。';
|
9
sources/lib/plugins/authldap/lang/ko/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/ko/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Myeongjin <aranet100@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP가 연결할 수 없습니다: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP가 사용자 DN을 찾을 수 없습니다';
|
9
sources/lib/plugins/authldap/lang/nl/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/nl/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Hugo Smet <hugo.smet@scarlet.be>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP kan niet connecteren: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP kan je gebruikers dn niet vinden';
|
9
sources/lib/plugins/authldap/lang/pt-br/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/pt-br/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Frederico Gonçalves Guimarães <frederico@teia.bio.br>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Não foi possível conectar ao LDAP: %s';
|
||||||
|
$lang['domainfail'] = 'Não foi possível encontrar o seu user dn no LDAP';
|
9
sources/lib/plugins/authldap/lang/pt/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/pt/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Paulo Carmino <contato@paulocarmino.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Não foi possível conectar o LDAP: %s';
|
||||||
|
$lang['domainfail'] = 'O LDAP não encontrou seu usuário';
|
9
sources/lib/plugins/authldap/lang/ru/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/ru/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Takumo <9206984@mail.ru>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Ошибка соединения LDAP с %s';
|
||||||
|
$lang['domainfail'] = 'Не найдено имя пользователя LDAP (dn)';
|
9
sources/lib/plugins/authldap/lang/zh/lang.php
Normal file
9
sources/lib/plugins/authldap/lang/zh/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Errol <errol@hotmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'LDAP 无法连接: %s';
|
||||||
|
$lang['domainfail'] = 'LDAP 无法找到你的用户 dn';
|
10
sources/lib/plugins/authmysql/lang/bg/lang.php
Normal file
10
sources/lib/plugins/authmysql/lang/bg/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Kiril <neohidra@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Свързването с базата данни се провали.';
|
||||||
|
$lang['userexists'] = 'За съжаление вече съществува потребител с това име.';
|
||||||
|
$lang['usernotexists'] = 'За съжаление не съществува такъв потребител.';
|
11
sources/lib/plugins/authmysql/lang/cs/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/cs/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jaroslav Lichtblau <jlichtblau@seznam.cz>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Selhalo připojení k databázi.';
|
||||||
|
$lang['userexists'] = 'Omlouváme se, ale uživatel s tímto jménem již existuje.';
|
||||||
|
$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';
|
13
sources/lib/plugins/authmysql/lang/de/lang.php
Normal file
13
sources/lib/plugins/authmysql/lang/de/lang.php
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Noel Tilliot <noeltilliot@byom.de>
|
||||||
|
* @author Hendrik Diel <diel.hendrik@gmail.com>
|
||||||
|
* @author Philip Knack <p.knack@stollfuss.de>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Verbindung zur Datenbank fehlgeschlagen.';
|
||||||
|
$lang['userexists'] = 'Entschuldigung, aber dieser Benutzername ist bereits vergeben.';
|
||||||
|
$lang['usernotexists'] = 'Sorry, dieser Nutzer existiert nicht.';
|
||||||
|
$lang['writefail'] = 'Die Benutzerdaten konnten nicht geändert werden. Bitte wenden Sie sich an den Wiki-Admin.';
|
13
sources/lib/plugins/authmysql/lang/en/lang.php
Normal file
13
sources/lib/plugins/authmysql/lang/en/lang.php
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* English language file for authmysql plugin
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
$lang['connectfail'] = 'Failed to connect to database.';
|
||||||
|
$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';
|
||||||
|
|
||||||
|
//Setup VIM: ex: et ts=4 :
|
11
sources/lib/plugins/authmysql/lang/es/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/es/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Domingo Redal <docxml@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Error al conectar con la base de datos.';
|
||||||
|
$lang['userexists'] = 'Lo sentimos, ya existe un usuario con ese inicio de sesión.';
|
||||||
|
$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';
|
11
sources/lib/plugins/authmysql/lang/fi/settings.php
Normal file
11
sources/lib/plugins/authmysql/lang/fi/settings.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jussi Takala <jussi.takala@live.fi>
|
||||||
|
*/
|
||||||
|
$lang['server'] = 'Sinun MySQL-serveri';
|
||||||
|
$lang['user'] = 'MySQL-käyttäjänimi';
|
||||||
|
$lang['password'] = 'Salasana yläolevalle käyttäjälle';
|
||||||
|
$lang['charset'] = 'Käytetty merkistö tietokannassa';
|
11
sources/lib/plugins/authmysql/lang/fr/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/fr/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Pietroni <pietroni@informatique.univ-paris-diderot.fr>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Impossible de se connecter à la base de données.';
|
||||||
|
$lang['userexists'] = 'Désolé, un utilisateur avec cet identifiant existe déjà.';
|
||||||
|
$lang['usernotexists'] = 'Désolé, cet utilisateur n\'existe pas.';
|
||||||
|
$lang['writefail'] = 'Impossible de modifier les données utilisateur. Veuillez en informer l\'administrateur du Wiki.';
|
12
sources/lib/plugins/authmysql/lang/he/settings.php
Normal file
12
sources/lib/plugins/authmysql/lang/he/settings.php
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Menashe Tomer <menashesite@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['getUserID'] = 'שאילתת SQL לקבלת מפתח ראשי של המשתמש';
|
||||||
|
$lang['UpdateLogin'] = 'שאילתת SQL לעדכון שם המשתמש';
|
||||||
|
$lang['UpdatePass'] = 'שאילתת SQL לעדכון סיסמת המשתמש';
|
||||||
|
$lang['UpdateEmail'] = 'שאילתת SQL לעדכון כתובת הדוא"ל של המשתמש';
|
||||||
|
$lang['UpdateName'] = 'שאילתת SQL לעדכון שם המשתמש';
|
11
sources/lib/plugins/authmysql/lang/hr/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/hr/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Davor Turkalj <turki.bsc@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Ne mogu se spojiti na bazu.';
|
||||||
|
$lang['userexists'] = 'Oprostite ali korisnik s ovom prijavom već postoji.';
|
||||||
|
$lang['usernotexists'] = 'Oprostite ali ovaj korisnik ne postoji.';
|
||||||
|
$lang['writefail'] = 'Ne mogu izmijeniti podatke. Molim obavijestite Wiki administratora';
|
11
sources/lib/plugins/authmysql/lang/hu/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/hu/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Marton Sebok <sebokmarton@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Az adatbázishoz való csatlakozás sikertelen.';
|
||||||
|
$lang['userexists'] = 'Sajnos már létezik ilyen azonosítójú felhasználó.';
|
||||||
|
$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!';
|
11
sources/lib/plugins/authmysql/lang/it/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/it/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Torpedo <dgtorpedo@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Connessione fallita al database.';
|
||||||
|
$lang['userexists'] = 'Spiacente, esiste già un utente con queste credenziali.';
|
||||||
|
$lang['usernotexists'] = 'Spiacente, quell\'utente non esiste.';
|
||||||
|
$lang['writefail'] = 'Non è possibile cambiare le informazioni utente. Si prega di informare l\'Amministratore del wiki';
|
11
sources/lib/plugins/authmysql/lang/ja/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/ja/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Hideaki SAWADA <chuno@live.jp>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'データベースへの接続に失敗しました。';
|
||||||
|
$lang['userexists'] = 'このログイン名のユーザーが既に存在しています。';
|
||||||
|
$lang['usernotexists'] = 'そのユーザーは存在しません。';
|
||||||
|
$lang['writefail'] = 'ユーザーデータを変更できません。Wiki の管理者に連絡してください。';
|
12
sources/lib/plugins/authmysql/lang/ko/lang.php
Normal file
12
sources/lib/plugins/authmysql/lang/ko/lang.php
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author hyeonsoft <hyeonsoft@live.co.kr>
|
||||||
|
* @author Myeongjin <aranet100@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = '데이터베이스에 연결하는 데 실패했습니다.';
|
||||||
|
$lang['userexists'] = '죄송하지만 이 계정으로 이미 로그인한 사용자가 있습니다.';
|
||||||
|
$lang['usernotexists'] = '죄송하지만 해당 사용자가 존재하지 않습니다.';
|
||||||
|
$lang['writefail'] = '사용자 데이터를 수정할 수 없습니다. 위키 관리자에게 문의하시기 바랍니다';
|
11
sources/lib/plugins/authmysql/lang/nl/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/nl/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Hugo Smet <hugo.smet@scarlet.be>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Connectie met de database mislukt.';
|
||||||
|
$lang['userexists'] = 'Sorry, een gebruiker met deze login bestaat reeds.';
|
||||||
|
$lang['usernotexists'] = 'Sorry, deze gebruiker bestaat niet.';
|
||||||
|
$lang['writefail'] = 'Onmogelijk om de gebruikers data te wijzigen. Gelieve de Wiki-Admin te informeren.';
|
14
sources/lib/plugins/authmysql/lang/no/settings.php
Normal file
14
sources/lib/plugins/authmysql/lang/no/settings.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Patrick <spill.p@hotmail.com>
|
||||||
|
*/
|
||||||
|
$lang['server'] = 'Din MySQL-server';
|
||||||
|
$lang['user'] = 'Ditt MySQL-brukernavn';
|
||||||
|
$lang['password'] = 'Passord til brukeren';
|
||||||
|
$lang['database'] = 'Database som skal brukes';
|
||||||
|
$lang['debug_o_0'] = 'ingen';
|
||||||
|
$lang['debug_o_1'] = 'bare ved feil';
|
||||||
|
$lang['debug_o_2'] = 'alle SQL-forespørsler';
|
11
sources/lib/plugins/authmysql/lang/pt-br/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/pt-br/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Frederico Gonçalves Guimarães <frederico@teia.bio.br>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Não foi possível conectar ao banco de dados.';
|
||||||
|
$lang['userexists'] = 'Desculpe, mas já existe esse nome de usuário.';
|
||||||
|
$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.';
|
10
sources/lib/plugins/authmysql/lang/pt/lang.php
Normal file
10
sources/lib/plugins/authmysql/lang/pt/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Paulo Carmino <contato@paulocarmino.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Falha ao conectar com o banco de dados.';
|
||||||
|
$lang['userexists'] = 'Desculpe, esse login já está sendo usado.';
|
||||||
|
$lang['usernotexists'] = 'Desculpe, esse login não existe.';
|
11
sources/lib/plugins/authmysql/lang/ru/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/ru/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Takumo <9206984@mail.ru>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Ошибка соединения с базой данных.';
|
||||||
|
$lang['userexists'] = 'Извините, пользователь с таким логином уже существует.';
|
||||||
|
$lang['usernotexists'] = 'Извините, такой пользователь не существует.';
|
||||||
|
$lang['writefail'] = 'Невозможно изменить данные пользователя. Сообщите об этом администратору Вики.';
|
9
sources/lib/plugins/authmysql/lang/tr/lang.php
Normal file
9
sources/lib/plugins/authmysql/lang/tr/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Mete Cuma <mcumax@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = 'Veritabanına bağlantı kurulamadı.';
|
||||||
|
$lang['usernotexists'] = 'Üzgünüz, kullanıcı mevcut değil.';
|
11
sources/lib/plugins/authmysql/lang/zh/lang.php
Normal file
11
sources/lib/plugins/authmysql/lang/zh/lang.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Errol <errol@hotmail.com>
|
||||||
|
*/
|
||||||
|
$lang['connectfail'] = '连接数据库失败';
|
||||||
|
$lang['userexists'] = '抱歉,用户名已被使用。';
|
||||||
|
$lang['usernotexists'] = '抱歉,用户不存在。';
|
||||||
|
$lang['writefail'] = '无法修改用户数据。请通知管理员';
|
6
sources/lib/plugins/authplain/lang/af/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/af/lang.php
Normal file
|
@ -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.';
|
6
sources/lib/plugins/authplain/lang/ar/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/ar/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'عذرا، يوجد مشترك بنفس الاسم.';
|
6
sources/lib/plugins/authplain/lang/az/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/az/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?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.';
|
9
sources/lib/plugins/authplain/lang/bg/lang.php
Normal file
9
sources/lib/plugins/authplain/lang/bg/lang.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Kiril <neohidra@gmail.com>
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'Вече съществува потребител с избраното име.';
|
||||||
|
$lang['usernotexists'] = 'За съжаление потребителят не съществува.';
|
6
sources/lib/plugins/authplain/lang/bn/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/bn/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'দুঃখিত, এই লগইন সঙ্গে একটি ব্যবহারকারী ইতিমধ্যেই বিদ্যমান.';
|
6
sources/lib/plugins/authplain/lang/ca-valencia/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/ca-valencia/lang.php
Normal file
|
@ -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.';
|
7
sources/lib/plugins/authplain/lang/ca/lang.php
Normal file
7
sources/lib/plugins/authplain/lang/ca/lang.php
Normal file
|
@ -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.';
|
10
sources/lib/plugins/authplain/lang/cs/lang.php
Normal file
10
sources/lib/plugins/authplain/lang/cs/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Jaroslav Lichtblau <jlichtblau@seznam.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';
|
6
sources/lib/plugins/authplain/lang/da/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/da/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'Dette brugernavn er allerede i brug.';
|
6
sources/lib/plugins/authplain/lang/de-informal/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/de-informal/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'Der Benutzername existiert leider schon.';
|
10
sources/lib/plugins/authplain/lang/de/lang.php
Normal file
10
sources/lib/plugins/authplain/lang/de/lang.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
* @author Anika Henke <anika@selfthinker.org>
|
||||||
|
*/
|
||||||
|
$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';
|
6
sources/lib/plugins/authplain/lang/el/lang.php
Normal file
6
sources/lib/plugins/authplain/lang/el/lang.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$lang['userexists'] = 'Αυτός ο λογαριασμός υπάρχει ήδη.';
|
8
sources/lib/plugins/authplain/lang/en/lang.php
Normal file
8
sources/lib/plugins/authplain/lang/en/lang.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?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';
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue