@@ -15,7 +15,7 @@ |
||
15 | 15 | * @access public |
16 | 16 | * @return void |
17 | 17 | */ |
18 | - public function __construct($elementName=null, $value=null, $attributes=null) |
|
18 | + public function __construct($elementName = null, $value = null, $attributes = null) |
|
19 | 19 | { |
20 | 20 | parent::__construct($elementName, null, $attributes); |
21 | 21 | $this->setValue($value); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Freeze the element so that only its value is returned |
61 | 61 | * |
62 | 62 | * @access public |
63 | - * @return void |
|
63 | + * @return boolean |
|
64 | 64 | */ |
65 | 65 | function freeze() |
66 | 66 | { |
@@ -116,10 +116,10 @@ discard block |
||
116 | 116 | function toHtml() |
117 | 117 | { |
118 | 118 | // prevent problems with grouped elements |
119 | - $arrayName = str_replace(array('[', ']'), array('__', ''), $this->getName()) . '_values'; |
|
119 | + $arrayName = str_replace(array('[', ']'), array('__', ''), $this->getName()).'_values'; |
|
120 | 120 | |
121 | 121 | $this->updateAttributes(array( |
122 | - 'onkeypress' => 'return autocomplete(this, event, ' . $arrayName . ');' |
|
122 | + 'onkeypress' => 'return autocomplete(this, event, '.$arrayName.');' |
|
123 | 123 | )); |
124 | 124 | if ($this->_flagFrozen) { |
125 | 125 | $js = ''; |
@@ -239,13 +239,13 @@ discard block |
||
239 | 239 | ); |
240 | 240 | |
241 | 241 | $js .= $this->_js; |
242 | - $js .= 'var ' . $arrayName . " = new Array();\n"; |
|
242 | + $js .= 'var '.$arrayName." = new Array();\n"; |
|
243 | 243 | for ($i = 0; $i < count($this->_options); $i++) { |
244 | - $js .= $arrayName . '[' . $i . "] = '" . strtr($this->_options[$i], $jsEscape) . "';\n"; |
|
244 | + $js .= $arrayName.'['.$i."] = '".strtr($this->_options[$i], $jsEscape)."';\n"; |
|
245 | 245 | } |
246 | 246 | $js .= "//]]>\n</script>"; |
247 | 247 | } |
248 | - return $js . parent::toHtml(); |
|
248 | + return $js.parent::toHtml(); |
|
249 | 249 | }// end func toHtml |
250 | 250 | |
251 | 251 | // }}} |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | class HTML_QuickForm_Renderer_ObjectFlexy extends HTML_QuickForm_Renderer_Object |
52 | 52 | { |
53 | - /**#@+ |
|
53 | + /**#@+ |
|
54 | 54 | * @access private |
55 | 55 | */ |
56 | 56 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @var string $_elementType |
92 | 92 | */ |
93 | 93 | var $_elementType = 'QuickformFlexyElement'; |
94 | - /**#@-*/ |
|
94 | + /**#@-*/ |
|
95 | 95 | |
96 | 96 | /** |
97 | 97 | * Constructor |
@@ -103,12 +103,12 @@ discard block |
||
103 | 103 | { |
104 | 104 | $this->HTML_QuickForm_Renderer_Object(true); |
105 | 105 | $this->_obj = new QuickformFlexyForm(); |
106 | - $this->_flexy =& $flexy; |
|
106 | + $this->_flexy = & $flexy; |
|
107 | 107 | } // end constructor |
108 | 108 | |
109 | 109 | function renderHeader(&$header) |
110 | 110 | { |
111 | - if($name = $header->getName()) { |
|
111 | + if ($name = $header->getName()) { |
|
112 | 112 | $this->_obj->header->$name = $header->toHtml(); |
113 | 113 | } else { |
114 | 114 | $this->_obj->header[$this->_sectionCount] = $header->toHtml(); |
@@ -135,15 +135,15 @@ discard block |
||
135 | 135 | function _elementToObject(&$element, $required, $error) |
136 | 136 | { |
137 | 137 | $ret = parent::_elementToObject($element, $required, $error); |
138 | - if($ret->type == 'group') { |
|
138 | + if ($ret->type == 'group') { |
|
139 | 139 | $ret->html = $element->toHtml(); |
140 | 140 | unset($ret->elements); |
141 | 141 | } |
142 | - if(!empty($this->_label)) { |
|
142 | + if (!empty($this->_label)) { |
|
143 | 143 | $this->_renderLabel($ret); |
144 | 144 | } |
145 | 145 | |
146 | - if(!empty($this->_html)) { |
|
146 | + if (!empty($this->_html)) { |
|
147 | 147 | $this->_renderHtml($ret); |
148 | 148 | $ret->error = $error; |
149 | 149 | } |
@@ -151,12 +151,12 @@ discard block |
||
151 | 151 | // Create an element key from the name |
152 | 152 | if (false !== ($pos = strpos($ret->name, '[')) || is_object($this->_currentGroup)) { |
153 | 153 | if (!$pos) { |
154 | - $keys = '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name) . '\'}'; |
|
154 | + $keys = '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name).'\'}'; |
|
155 | 155 | } else { |
156 | - $keys = '->{\'' . str_replace( |
|
156 | + $keys = '->{\''.str_replace( |
|
157 | 157 | array('\\', '\'', '[', ']'), array('\\\\', '\\\'', '\'}->{\'', ''), |
158 | 158 | $ret->name |
159 | - ) . '\'}'; |
|
159 | + ).'\'}'; |
|
160 | 160 | } |
161 | 161 | // special handling for elements in native groups |
162 | 162 | if (is_object($this->_currentGroup)) { |
@@ -171,13 +171,13 @@ discard block |
||
171 | 171 | } |
172 | 172 | } |
173 | 173 | } elseif (0 == strlen($ret->name)) { |
174 | - $keys = '->{\'element_' . $this->_elementIdx . '\'}'; |
|
174 | + $keys = '->{\'element_'.$this->_elementIdx.'\'}'; |
|
175 | 175 | } else { |
176 | - $keys = '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name) . '\'}'; |
|
176 | + $keys = '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name).'\'}'; |
|
177 | 177 | } |
178 | 178 | // for radios: add extra key from value |
179 | 179 | if ('radio' == $ret->type && '[]' != substr($keys, -2)) { |
180 | - $keys .= '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->value) . '\'}'; |
|
180 | + $keys .= '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->value).'\'}'; |
|
181 | 181 | } |
182 | 182 | $ret->keys = $keys; |
183 | 183 | $this->_elementIdx++; |
@@ -197,10 +197,10 @@ discard block |
||
197 | 197 | if ($elObj) { |
198 | 198 | $keys = $elObj->keys; |
199 | 199 | unset($elObj->keys); |
200 | - if(is_object($this->_currentGroup) && ('group' != $elObj->type)) { |
|
201 | - $code = '$this->_currentGroup' . $keys . ' = $elObj;'; |
|
200 | + if (is_object($this->_currentGroup) && ('group' != $elObj->type)) { |
|
201 | + $code = '$this->_currentGroup'.$keys.' = $elObj;'; |
|
202 | 202 | } else { |
203 | - $code = '$this->_obj' . $keys . ' = $elObj;'; |
|
203 | + $code = '$this->_obj'.$keys.' = $elObj;'; |
|
204 | 204 | } |
205 | 205 | eval($code); |
206 | 206 | } |
@@ -78,12 +78,12 @@ discard block |
||
78 | 78 | foreach (array_keys($this->renderedElements) as $key) { |
79 | 79 | if (!$this->renderedElements[$key]['rendered']) { |
80 | 80 | $this->renderedElements[$key]['rendered'] = true; |
81 | - $data .= $this->renderedElements[$key]['html'] . "\n"; |
|
81 | + $data .= $this->renderedElements[$key]['html']."\n"; |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
85 | 85 | // Insert the extra data and form elements at the end of the form |
86 | - $this->_html = str_replace('</form>', $data . "\n</form>", $this->_html); |
|
86 | + $this->_html = str_replace('</form>', $data."\n</form>", $this->_html); |
|
87 | 87 | return $this->_html; |
88 | 88 | } // end func toHtml |
89 | 89 | |
@@ -117,13 +117,11 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | if (is_null($elementKey)) { |
120 | - $msg = is_null($elementValue) ? "Element $elementName does not exist." : |
|
121 | - "Element $elementName with value of $elementValue does not exist."; |
|
120 | + $msg = is_null($elementValue) ? "Element $elementName does not exist." : "Element $elementName with value of $elementValue does not exist."; |
|
122 | 121 | return PEAR::raiseError(null, QUICKFORM_UNREGISTERED_ELEMENT, null, E_USER_WARNING, $msg, 'HTML_QuickForm_Error', true); |
123 | 122 | } else { |
124 | 123 | if ($this->renderedElements[$elementKey]['rendered']) { |
125 | - $msg = is_null($elementValue) ? "Element $elementName has already been rendered." : |
|
126 | - "Element $elementName with value of $elementValue has already been rendered."; |
|
124 | + $msg = is_null($elementValue) ? "Element $elementName has already been rendered." : "Element $elementName with value of $elementValue has already been rendered."; |
|
127 | 125 | return PEAR::raiseError(null, QUICKFORM_ERROR, null, E_USER_WARNING, $msg, 'HTML_QuickForm_Error', true); |
128 | 126 | } else { |
129 | 127 | $this->renderedElements[$elementKey]['rendered'] = true; |
@@ -109,60 +109,60 @@ discard block |
||
109 | 109 | */ |
110 | 110 | class HTML_QuickForm_Renderer_Array extends HTML_QuickForm_Renderer |
111 | 111 | { |
112 | - /**#@+ |
|
112 | + /**#@+ |
|
113 | 113 | * @access private |
114 | 114 | */ |
115 | - /** |
|
116 | - * An array being generated |
|
117 | - * @var array |
|
118 | - */ |
|
115 | + /** |
|
116 | + * An array being generated |
|
117 | + * @var array |
|
118 | + */ |
|
119 | 119 | var $_ary; |
120 | 120 | |
121 | - /** |
|
122 | - * Number of sections in the form (i.e. number of headers in it) |
|
123 | - * @var integer |
|
124 | - */ |
|
121 | + /** |
|
122 | + * Number of sections in the form (i.e. number of headers in it) |
|
123 | + * @var integer |
|
124 | + */ |
|
125 | 125 | var $_sectionCount; |
126 | 126 | |
127 | - /** |
|
128 | - * Current section number |
|
129 | - * @var integer |
|
130 | - */ |
|
127 | + /** |
|
128 | + * Current section number |
|
129 | + * @var integer |
|
130 | + */ |
|
131 | 131 | var $_currentSection; |
132 | 132 | |
133 | - /** |
|
134 | - * Array representing current group |
|
135 | - * @var array |
|
136 | - */ |
|
133 | + /** |
|
134 | + * Array representing current group |
|
135 | + * @var array |
|
136 | + */ |
|
137 | 137 | var $_currentGroup = null; |
138 | 138 | |
139 | - /** |
|
140 | - * Additional style information for different elements |
|
141 | - * @var array |
|
142 | - */ |
|
139 | + /** |
|
140 | + * Additional style information for different elements |
|
141 | + * @var array |
|
142 | + */ |
|
143 | 143 | var $_elementStyles = array(); |
144 | 144 | |
145 | - /** |
|
146 | - * true: collect all hidden elements into string; false: process them as usual form elements |
|
147 | - * @var bool |
|
148 | - */ |
|
145 | + /** |
|
146 | + * true: collect all hidden elements into string; false: process them as usual form elements |
|
147 | + * @var bool |
|
148 | + */ |
|
149 | 149 | var $_collectHidden = false; |
150 | 150 | |
151 | - /** |
|
152 | - * true: render an array of labels to many labels, $key 0 named 'label', the rest "label_$key" |
|
153 | - * false: leave labels as defined |
|
154 | - * @var bool |
|
155 | - */ |
|
151 | + /** |
|
152 | + * true: render an array of labels to many labels, $key 0 named 'label', the rest "label_$key" |
|
153 | + * false: leave labels as defined |
|
154 | + * @var bool |
|
155 | + */ |
|
156 | 156 | var $_staticLabels = false; |
157 | - /**#@-*/ |
|
157 | + /**#@-*/ |
|
158 | 158 | |
159 | - /** |
|
160 | - * Constructor |
|
161 | - * |
|
162 | - * @param bool true: collect all hidden elements into string; false: process them as usual form elements |
|
163 | - * @param bool true: render an array of labels to many labels, $key 0 to 'label' and the oterh to "label_$key" |
|
164 | - * @access public |
|
165 | - */ |
|
159 | + /** |
|
160 | + * Constructor |
|
161 | + * |
|
162 | + * @param bool true: collect all hidden elements into string; false: process them as usual form elements |
|
163 | + * @param bool true: render an array of labels to many labels, $key 0 to 'label' and the oterh to "label_$key" |
|
164 | + * @access public |
|
165 | + */ |
|
166 | 166 | function HTML_QuickForm_Renderer_Array($collectHidden = false, $staticLabels = false) |
167 | 167 | { |
168 | 168 | $this->HTML_QuickForm_Renderer(); |
@@ -171,12 +171,12 @@ discard block |
||
171 | 171 | } // end constructor |
172 | 172 | |
173 | 173 | |
174 | - /** |
|
175 | - * Returns the resultant array |
|
176 | - * |
|
177 | - * @access public |
|
178 | - * @return array |
|
179 | - */ |
|
174 | + /** |
|
175 | + * Returns the resultant array |
|
176 | + * |
|
177 | + * @access public |
|
178 | + * @return array |
|
179 | + */ |
|
180 | 180 | function toArray() |
181 | 181 | { |
182 | 182 | return $this->_ary; |
@@ -247,15 +247,15 @@ discard block |
||
247 | 247 | } // end func finishGroup |
248 | 248 | |
249 | 249 | |
250 | - /** |
|
251 | - * Creates an array representing an element |
|
252 | - * |
|
253 | - * @access private |
|
254 | - * @param HTML_QuickForm_element element being processed |
|
255 | - * @param bool Whether an element is required |
|
256 | - * @param string Error associated with the element |
|
257 | - * @return array |
|
258 | - */ |
|
250 | + /** |
|
251 | + * Creates an array representing an element |
|
252 | + * |
|
253 | + * @access private |
|
254 | + * @param HTML_QuickForm_element element being processed |
|
255 | + * @param bool Whether an element is required |
|
256 | + * @param string Error associated with the element |
|
257 | + * @return array |
|
258 | + */ |
|
259 | 259 | function _elementToArray(&$element, $required, $error) |
260 | 260 | { |
261 | 261 | $ret = array( |
@@ -295,13 +295,13 @@ discard block |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | |
298 | - /** |
|
299 | - * Stores an array representation of an element in the form array |
|
300 | - * |
|
301 | - * @access private |
|
302 | - * @param array Array representation of an element |
|
303 | - * @return void |
|
304 | - */ |
|
298 | + /** |
|
299 | + * Stores an array representation of an element in the form array |
|
300 | + * |
|
301 | + * @access private |
|
302 | + * @param array Array representation of an element |
|
303 | + * @return void |
|
304 | + */ |
|
305 | 305 | function _storeArray($elAry) |
306 | 306 | { |
307 | 307 | // where should we put this element... |
@@ -315,14 +315,14 @@ discard block |
||
315 | 315 | } |
316 | 316 | |
317 | 317 | |
318 | - /** |
|
319 | - * Sets a style to use for element rendering |
|
320 | - * |
|
321 | - * @param mixed element name or array ('element name' => 'style name') |
|
322 | - * @param string style name if $elementName is not an array |
|
323 | - * @access public |
|
324 | - * @return void |
|
325 | - */ |
|
318 | + /** |
|
319 | + * Sets a style to use for element rendering |
|
320 | + * |
|
321 | + * @param mixed element name or array ('element name' => 'style name') |
|
322 | + * @param string style name if $elementName is not an array |
|
323 | + * @access public |
|
324 | + * @return void |
|
325 | + */ |
|
326 | 326 | function setElementStyle($elementName, $styleName = null) |
327 | 327 | { |
328 | 328 | if (is_array($elementName)) { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | function renderHidden(&$element) |
225 | 225 | { |
226 | 226 | if ($this->_collectHidden) { |
227 | - $this->_ary['hidden'] .= $element->toHtml() . "\n"; |
|
227 | + $this->_ary['hidden'] .= $element->toHtml()."\n"; |
|
228 | 228 | } else { |
229 | 229 | $this->renderElement($element, false, null); |
230 | 230 | } |
@@ -269,12 +269,12 @@ discard block |
||
269 | 269 | // render label(s) |
270 | 270 | $labels = $element->getLabel(); |
271 | 271 | if (is_array($labels) && $this->_staticLabels) { |
272 | - foreach($labels as $key => $label) { |
|
273 | - $key = is_int($key)? $key + 1: $key; |
|
272 | + foreach ($labels as $key => $label) { |
|
273 | + $key = is_int($key) ? $key + 1 : $key; |
|
274 | 274 | if (1 === $key) { |
275 | 275 | $ret['label'] = $label; |
276 | 276 | } else { |
277 | - $ret['label_' . $key] = $label; |
|
277 | + $ret['label_'.$key] = $label; |
|
278 | 278 | } |
279 | 279 | } |
280 | 280 | } else { |
@@ -137,6 +137,9 @@ |
||
137 | 137 | $this->_currentSection = $this->_sectionCount++; |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param boolean $required |
|
142 | + */ |
|
140 | 143 | function renderElement(&$element, $required, $error) |
141 | 144 | { |
142 | 145 | $elObj = $this->_elementToObject($element, $required, $error); |
@@ -40,58 +40,58 @@ discard block |
||
40 | 40 | */ |
41 | 41 | class HTML_QuickForm_Renderer_ITDynamic extends HTML_QuickForm_Renderer |
42 | 42 | { |
43 | - /**#@+ |
|
43 | + /**#@+ |
|
44 | 44 | * @access private |
45 | 45 | */ |
46 | - /** |
|
47 | - * A template class (HTML_Template_ITX or HTML_Template_Sigma) instance |
|
48 | - * @var HTML_Template_ITX|HTML_Template_Sigma |
|
49 | - */ |
|
46 | + /** |
|
47 | + * A template class (HTML_Template_ITX or HTML_Template_Sigma) instance |
|
48 | + * @var HTML_Template_ITX|HTML_Template_Sigma |
|
49 | + */ |
|
50 | 50 | var $_tpl = null; |
51 | 51 | |
52 | - /** |
|
53 | - * The errors that were not shown near concrete fields go here |
|
54 | - * @var array |
|
55 | - */ |
|
52 | + /** |
|
53 | + * The errors that were not shown near concrete fields go here |
|
54 | + * @var array |
|
55 | + */ |
|
56 | 56 | var $_errors = array(); |
57 | 57 | |
58 | - /** |
|
59 | - * Show the block with required note? |
|
60 | - * @var bool |
|
61 | - */ |
|
58 | + /** |
|
59 | + * Show the block with required note? |
|
60 | + * @var bool |
|
61 | + */ |
|
62 | 62 | var $_showRequired = false; |
63 | 63 | |
64 | - /** |
|
65 | - * A separator for group elements |
|
66 | - * @var mixed |
|
67 | - */ |
|
64 | + /** |
|
65 | + * A separator for group elements |
|
66 | + * @var mixed |
|
67 | + */ |
|
68 | 68 | var $_groupSeparator = null; |
69 | 69 | |
70 | - /** |
|
71 | - * The current element index inside a group |
|
72 | - * @var integer |
|
73 | - */ |
|
70 | + /** |
|
71 | + * The current element index inside a group |
|
72 | + * @var integer |
|
73 | + */ |
|
74 | 74 | var $_groupElementIdx = 0; |
75 | 75 | |
76 | - /** |
|
77 | - * Blocks to use for different elements |
|
78 | - * @var array |
|
79 | - */ |
|
76 | + /** |
|
77 | + * Blocks to use for different elements |
|
78 | + * @var array |
|
79 | + */ |
|
80 | 80 | var $_elementBlocks = array(); |
81 | 81 | |
82 | - /** |
|
83 | - * Block to use for headers |
|
84 | - * @var string |
|
85 | - */ |
|
82 | + /** |
|
83 | + * Block to use for headers |
|
84 | + * @var string |
|
85 | + */ |
|
86 | 86 | var $_headerBlock = null; |
87 | - /**#@-*/ |
|
87 | + /**#@-*/ |
|
88 | 88 | |
89 | 89 | |
90 | - /** |
|
91 | - * Constructor |
|
92 | - * |
|
93 | - * @param HTML_Template_ITX|HTML_Template_Sigma Template object to use |
|
94 | - */ |
|
90 | + /** |
|
91 | + * Constructor |
|
92 | + * |
|
93 | + * @param HTML_Template_ITX|HTML_Template_Sigma Template object to use |
|
94 | + */ |
|
95 | 95 | function HTML_QuickForm_Renderer_ITDynamic(&$tpl) |
96 | 96 | { |
97 | 97 | $this->HTML_QuickForm_Renderer(); |
@@ -227,17 +227,17 @@ discard block |
||
227 | 227 | } |
228 | 228 | |
229 | 229 | |
230 | - /** |
|
231 | - * Returns the name of a block to use for element rendering |
|
232 | - * |
|
233 | - * If a name was not explicitly set via setElementBlock(), it tries |
|
234 | - * the names '{prefix}_{element type}' and '{prefix}_{element}', where |
|
235 | - * prefix is either 'qf' or the name of the current group's block |
|
236 | - * |
|
237 | - * @param HTML_QuickForm_element form element being rendered |
|
238 | - * @access private |
|
239 | - * @return string block name |
|
240 | - */ |
|
230 | + /** |
|
231 | + * Returns the name of a block to use for element rendering |
|
232 | + * |
|
233 | + * If a name was not explicitly set via setElementBlock(), it tries |
|
234 | + * the names '{prefix}_{element type}' and '{prefix}_{element}', where |
|
235 | + * prefix is either 'qf' or the name of the current group's block |
|
236 | + * |
|
237 | + * @param HTML_QuickForm_element form element being rendered |
|
238 | + * @access private |
|
239 | + * @return string block name |
|
240 | + */ |
|
241 | 241 | function _matchBlock(&$element) |
242 | 242 | { |
243 | 243 | $name = $element->getName(); |
@@ -262,14 +262,14 @@ discard block |
||
262 | 262 | } |
263 | 263 | |
264 | 264 | |
265 | - /** |
|
266 | - * Sets the block to use for element rendering |
|
267 | - * |
|
268 | - * @param mixed element name or array ('element name' => 'block name') |
|
269 | - * @param string block name if $elementName is not an array |
|
270 | - * @access public |
|
271 | - * @return void |
|
272 | - */ |
|
265 | + /** |
|
266 | + * Sets the block to use for element rendering |
|
267 | + * |
|
268 | + * @param mixed element name or array ('element name' => 'block name') |
|
269 | + * @param string block name if $elementName is not an array |
|
270 | + * @access public |
|
271 | + * @return void |
|
272 | + */ |
|
273 | 273 | function setElementBlock($elementName, $blockName = null) |
274 | 274 | { |
275 | 275 | if (is_array($elementName)) { |
@@ -280,13 +280,13 @@ discard block |
||
280 | 280 | } |
281 | 281 | |
282 | 282 | |
283 | - /** |
|
284 | - * Sets the name of a block to use for header rendering |
|
285 | - * |
|
286 | - * @param string block name |
|
287 | - * @access public |
|
288 | - * @return void |
|
289 | - */ |
|
283 | + /** |
|
284 | + * Sets the name of a block to use for header rendering |
|
285 | + * |
|
286 | + * @param string block name |
|
287 | + * @access public |
|
288 | + * @return void |
|
289 | + */ |
|
290 | 290 | function setHeaderBlock($blockName) |
291 | 291 | { |
292 | 292 | $this->_headerBlock = $blockName; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | function HTML_QuickForm_Renderer_ITDynamic(&$tpl) |
96 | 96 | { |
97 | 97 | $this->HTML_QuickForm_Renderer(); |
98 | - $this->_tpl =& $tpl; |
|
98 | + $this->_tpl = & $tpl; |
|
99 | 99 | $this->_tpl->setCurrentBlock('qf_main_loop'); |
100 | 100 | } |
101 | 101 | |
@@ -141,14 +141,14 @@ discard block |
||
141 | 141 | if (is_array($this->_groupSeparator)) { |
142 | 142 | $this->_tpl->setVariable('qf_separator', $this->_groupSeparator[($this->_groupElementIdx - 1) % count($this->_groupSeparator)]); |
143 | 143 | } else { |
144 | - $this->_tpl->setVariable('qf_separator', (string)$this->_groupSeparator); |
|
144 | + $this->_tpl->setVariable('qf_separator', (string) $this->_groupSeparator); |
|
145 | 145 | } |
146 | 146 | } |
147 | 147 | $this->_groupElementIdx++; |
148 | 148 | |
149 | - } elseif(!empty($error)) { |
|
149 | + } elseif (!empty($error)) { |
|
150 | 150 | // show the error message or keep it for later use |
151 | - if ($this->_tpl->blockExists($blockName . '_error')) { |
|
151 | + if ($this->_tpl->blockExists($blockName.'_error')) { |
|
152 | 152 | $this->_tpl->setVariable('qf_error', $error); |
153 | 153 | } else { |
154 | 154 | $this->_errors[] = $error; |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | // show an '*' near the required element |
158 | 158 | if ($required) { |
159 | 159 | $this->_showRequired = true; |
160 | - if ($this->_tpl->blockExists($blockName . '_required')) { |
|
161 | - $this->_tpl->touchBlock($blockName . '_required'); |
|
160 | + if ($this->_tpl->blockExists($blockName.'_required')) { |
|
161 | + $this->_tpl->touchBlock($blockName.'_required'); |
|
162 | 162 | } |
163 | 163 | } |
164 | 164 | // Prepare multiple labels |
@@ -175,10 +175,10 @@ discard block |
||
175 | 175 | } |
176 | 176 | // render extra labels, if any |
177 | 177 | if (is_array($labels)) { |
178 | - foreach($labels as $key => $label) { |
|
179 | - $key = is_int($key)? $key + 2: $key; |
|
180 | - if ($this->_tpl->blockExists($blockName . '_label_' . $key)) { |
|
181 | - $this->_tpl->setVariable('qf_label_' . $key, $label); |
|
178 | + foreach ($labels as $key => $label) { |
|
179 | + $key = is_int($key) ? $key + 2 : $key; |
|
180 | + if ($this->_tpl->blockExists($blockName.'_label_'.$key)) { |
|
181 | + $this->_tpl->setVariable('qf_label_'.$key, $label); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -197,19 +197,19 @@ discard block |
||
197 | 197 | function startGroup(&$group, $required, $error) |
198 | 198 | { |
199 | 199 | $blockName = $this->_matchBlock($group); |
200 | - $this->_tpl->setCurrentBlock($blockName . '_loop'); |
|
200 | + $this->_tpl->setCurrentBlock($blockName.'_loop'); |
|
201 | 201 | $this->_groupElementIdx = 0; |
202 | - $this->_groupSeparator = is_null($group->_separator)? ' ': $group->_separator; |
|
202 | + $this->_groupSeparator = is_null($group->_separator) ? ' ' : $group->_separator; |
|
203 | 203 | // show an '*' near the required element |
204 | 204 | if ($required) { |
205 | 205 | $this->_showRequired = true; |
206 | - if ($this->_tpl->blockExists($blockName . '_required')) { |
|
207 | - $this->_tpl->touchBlock($blockName . '_required'); |
|
206 | + if ($this->_tpl->blockExists($blockName.'_required')) { |
|
207 | + $this->_tpl->touchBlock($blockName.'_required'); |
|
208 | 208 | } |
209 | 209 | } |
210 | 210 | // show the error message or keep it for later use |
211 | 211 | if (!empty($error)) { |
212 | - if ($this->_tpl->blockExists($blockName . '_error')) { |
|
212 | + if ($this->_tpl->blockExists($blockName.'_error')) { |
|
213 | 213 | $this->_tpl->setVariable('qf_error', $error); |
214 | 214 | } else { |
215 | 215 | $this->_errors[] = $error; |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $name = $element->getName(); |
244 | 244 | $type = $element->getType(); |
245 | 245 | if (isset($this->_elementBlocks[$name]) && $this->_tpl->blockExists($this->_elementBlocks[$name])) { |
246 | - if (('group' == $type) || ($this->_elementBlocks[$name] . '_loop' != $this->_tpl->currentBlock)) { |
|
246 | + if (('group' == $type) || ($this->_elementBlocks[$name].'_loop' != $this->_tpl->currentBlock)) { |
|
247 | 247 | return $this->_elementBlocks[$name]; |
248 | 248 | } |
249 | 249 | } |
@@ -252,12 +252,12 @@ discard block |
||
252 | 252 | } else { |
253 | 253 | $prefix = 'qf'; |
254 | 254 | } |
255 | - if ($this->_tpl->blockExists($prefix . '_' . $type)) { |
|
256 | - return $prefix . '_' . $type; |
|
257 | - } elseif ($this->_tpl->blockExists($prefix . '_' . $name)) { |
|
258 | - return $prefix . '_' . $name; |
|
255 | + if ($this->_tpl->blockExists($prefix.'_'.$type)) { |
|
256 | + return $prefix.'_'.$type; |
|
257 | + } elseif ($this->_tpl->blockExists($prefix.'_'.$name)) { |
|
258 | + return $prefix.'_'.$name; |
|
259 | 259 | } else { |
260 | - return $prefix . '_element'; |
|
260 | + return $prefix.'_element'; |
|
261 | 261 | } |
262 | 262 | } |
263 | 263 |
@@ -101,7 +101,7 @@ |
||
101 | 101 | unset($attr['name']); |
102 | 102 | |
103 | 103 | $html = $this->_getTabs() |
104 | - . '<div' . $this->_getAttrString($attr) . '>' |
|
104 | + . '<div'.$this->_getAttrString($attr).'>' |
|
105 | 105 | . $_SESSION[$this->_options['sessionVar']]->getCAPTCHA() |
106 | 106 | . '</div>'; |
107 | 107 | return $html; |
@@ -174,15 +174,15 @@ discard block |
||
174 | 174 | unset($attr['name']); |
175 | 175 | |
176 | 176 | $html = $tabs.'<a href="'.$this->_options['callback'] |
177 | - .'" target="_blank" ' |
|
178 | - .$this->_getAttrString($attr) |
|
179 | - .' onclick="var cancelClick = false; ' |
|
180 | - .$this->getOnclickJs($imgName) |
|
181 | - .' return !cancelClick;"><img src="' |
|
182 | - .$this->_options['callback'].'" name="'.$imgName |
|
183 | - .'" id="'.$imgName.'" width="'.$this->_options['width'] |
|
184 | - .'" height="'.$this->_options['height'].'" title="' |
|
185 | - .htmlspecialchars($this->_options['alt']).'" /></a>'; |
|
177 | + .'" target="_blank" ' |
|
178 | + .$this->_getAttrString($attr) |
|
179 | + .' onclick="var cancelClick = false; ' |
|
180 | + .$this->getOnclickJs($imgName) |
|
181 | + .' return !cancelClick;"><img src="' |
|
182 | + .$this->_options['callback'].'" name="'.$imgName |
|
183 | + .'" id="'.$imgName.'" width="'.$this->_options['width'] |
|
184 | + .'" height="'.$this->_options['height'].'" title="' |
|
185 | + .htmlspecialchars($this->_options['alt']).'" /></a>'; |
|
186 | 186 | |
187 | 187 | return $html; |
188 | 188 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | .' var img = new Image();' |
204 | 204 | .' var d = new Date();' |
205 | 205 | .' img.src = this.href + ((this.href.indexOf(\'?\') == -1) ' |
206 | - .'? \'?\' : \'&\') + d.getTime();' |
|
206 | + .'? \'?\' : \'&\') + d.getTime();' |
|
207 | 207 | .' document.images[\''.addslashes($imageName).'\'].src = img.src;' |
208 | 208 | .' cancelClick = true;' |
209 | 209 | .'}'; |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | { |
38 | 38 | // {{{ properties |
39 | 39 | |
40 | - /** |
|
41 | - * Various options to control the element's display. |
|
42 | - * |
|
43 | - * @access private |
|
44 | - * @var array |
|
45 | - */ |
|
40 | + /** |
|
41 | + * Various options to control the element's display. |
|
42 | + * |
|
43 | + * @access private |
|
44 | + * @var array |
|
45 | + */ |
|
46 | 46 | var $_options = array( |
47 | 47 | 'language' => 'en', |
48 | 48 | 'format' => 'dMY', |
@@ -54,22 +54,22 @@ discard block |
||
54 | 54 | 'optionIncrement' => array('i' => 1, 's' => 1) |
55 | 55 | ); |
56 | 56 | |
57 | - /** |
|
58 | - * These complement separators, they are appended to the resultant HTML |
|
59 | - * @access private |
|
60 | - * @var array |
|
61 | - */ |
|
57 | + /** |
|
58 | + * These complement separators, they are appended to the resultant HTML |
|
59 | + * @access private |
|
60 | + * @var array |
|
61 | + */ |
|
62 | 62 | var $_wrap = array('', ''); |
63 | 63 | |
64 | - /** |
|
65 | - * Options in different languages |
|
66 | - * |
|
67 | - * Note to potential translators: to avoid encoding problems please send |
|
68 | - * your translations with "weird" letters encoded as HTML Unicode entities |
|
69 | - * |
|
70 | - * @access private |
|
71 | - * @var array |
|
72 | - */ |
|
64 | + /** |
|
65 | + * Options in different languages |
|
66 | + * |
|
67 | + * Note to potential translators: to avoid encoding problems please send |
|
68 | + * your translations with "weird" letters encoded as HTML Unicode entities |
|
69 | + * |
|
70 | + * @access private |
|
71 | + * @var array |
|
72 | + */ |
|
73 | 73 | var $_locale = array( |
74 | 74 | 'en' => array ( |
75 | 75 | 'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'), |
@@ -232,43 +232,43 @@ discard block |
||
232 | 232 | // }}} |
233 | 233 | // {{{ constructor |
234 | 234 | |
235 | - /** |
|
236 | - * Class constructor |
|
237 | - * |
|
238 | - * The following keys may appear in $options array: |
|
239 | - * - 'language': date language |
|
240 | - * - 'format': Format of the date, based on PHP's date() function. |
|
241 | - * The following characters are currently recognised in format string: |
|
242 | - * <pre> |
|
243 | - * D => Short names of days |
|
244 | - * l => Long names of days |
|
245 | - * d => Day numbers |
|
246 | - * M => Short names of months |
|
247 | - * F => Long names of months |
|
248 | - * m => Month numbers |
|
249 | - * Y => Four digit year |
|
250 | - * y => Two digit year |
|
251 | - * h => 12 hour format |
|
252 | - * H => 23 hour format |
|
253 | - * i => Minutes |
|
254 | - * s => Seconds |
|
255 | - * a => am/pm |
|
256 | - * A => AM/PM |
|
257 | - * </pre> |
|
258 | - * - 'minYear': Minimum year in year select |
|
259 | - * - 'maxYear': Maximum year in year select |
|
260 | - * - 'addEmptyOption': Should an empty option be added to the top of |
|
261 | - * each select box? |
|
262 | - * - 'emptyOptionValue': The value passed by the empty option. |
|
263 | - * - 'emptyOptionText': The text displayed for the empty option. |
|
264 | - * - 'optionIncrement': Step to increase the option values by (works for 'i' and 's') |
|
265 | - * |
|
266 | - * @access public |
|
267 | - * @param string Element's name |
|
268 | - * @param mixed Label(s) for an element |
|
269 | - * @param array Options to control the element's display |
|
270 | - * @param mixed Either a typical HTML attribute string or an associative array |
|
271 | - */ |
|
235 | + /** |
|
236 | + * Class constructor |
|
237 | + * |
|
238 | + * The following keys may appear in $options array: |
|
239 | + * - 'language': date language |
|
240 | + * - 'format': Format of the date, based on PHP's date() function. |
|
241 | + * The following characters are currently recognised in format string: |
|
242 | + * <pre> |
|
243 | + * D => Short names of days |
|
244 | + * l => Long names of days |
|
245 | + * d => Day numbers |
|
246 | + * M => Short names of months |
|
247 | + * F => Long names of months |
|
248 | + * m => Month numbers |
|
249 | + * Y => Four digit year |
|
250 | + * y => Two digit year |
|
251 | + * h => 12 hour format |
|
252 | + * H => 23 hour format |
|
253 | + * i => Minutes |
|
254 | + * s => Seconds |
|
255 | + * a => am/pm |
|
256 | + * A => AM/PM |
|
257 | + * </pre> |
|
258 | + * - 'minYear': Minimum year in year select |
|
259 | + * - 'maxYear': Maximum year in year select |
|
260 | + * - 'addEmptyOption': Should an empty option be added to the top of |
|
261 | + * each select box? |
|
262 | + * - 'emptyOptionValue': The value passed by the empty option. |
|
263 | + * - 'emptyOptionText': The text displayed for the empty option. |
|
264 | + * - 'optionIncrement': Step to increase the option values by (works for 'i' and 's') |
|
265 | + * |
|
266 | + * @access public |
|
267 | + * @param string Element's name |
|
268 | + * @param mixed Label(s) for an element |
|
269 | + * @param array Options to control the element's display |
|
270 | + * @param mixed Either a typical HTML attribute string or an associative array |
|
271 | + */ |
|
272 | 272 | function HTML_QuickForm_date($elementName = null, $elementLabel = null, $options = array(), $attributes = null) |
273 | 273 | { |
274 | 274 | $this->HTML_QuickForm_element($elementName, $elementLabel, $attributes); |
@@ -412,15 +412,15 @@ discard block |
||
412 | 412 | // }}} |
413 | 413 | // {{{ _createOptionList() |
414 | 414 | |
415 | - /** |
|
416 | - * Creates an option list containing the numbers from the start number to the end, inclusive |
|
417 | - * |
|
418 | - * @param int The start number |
|
419 | - * @param int The end number |
|
420 | - * @param int Increment by this value |
|
421 | - * @access private |
|
422 | - * @return array An array of numeric options. |
|
423 | - */ |
|
415 | + /** |
|
416 | + * Creates an option list containing the numbers from the start number to the end, inclusive |
|
417 | + * |
|
418 | + * @param int The start number |
|
419 | + * @param int The end number |
|
420 | + * @param int Increment by this value |
|
421 | + * @access private |
|
422 | + * @return array An array of numeric options. |
|
423 | + */ |
|
424 | 424 | function _createOptionList($start, $end, $step = 1) |
425 | 425 | { |
426 | 426 | for ($i = $start, $options = array(); $start > $end? $i >= $end: $i <= $end; $i += $step) { |
@@ -432,12 +432,12 @@ discard block |
||
432 | 432 | // }}} |
433 | 433 | // {{{ _trimLeadingZeros() |
434 | 434 | |
435 | - /** |
|
436 | - * Trims leading zeros from the (numeric) string |
|
437 | - * |
|
438 | - * @param string A numeric string, possibly with leading zeros |
|
439 | - * @return string String with leading zeros removed |
|
440 | - */ |
|
435 | + /** |
|
436 | + * Trims leading zeros from the (numeric) string |
|
437 | + * |
|
438 | + * @param string A numeric string, possibly with leading zeros |
|
439 | + * @return string String with leading zeros removed |
|
440 | + */ |
|
441 | 441 | function _trimLeadingZeros($str) |
442 | 442 | { |
443 | 443 | if (0 == strcmp($str, $this->_options['emptyOptionValue'])) { |
@@ -71,161 +71,161 @@ discard block |
||
71 | 71 | * @var array |
72 | 72 | */ |
73 | 73 | var $_locale = array( |
74 | - 'en' => array ( |
|
75 | - 'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'), |
|
76 | - 'weekdays_long' => array ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'), |
|
77 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
|
78 | - 'months_long' => array ('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December') |
|
74 | + 'en' => array( |
|
75 | + 'weekdays_short'=> array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'), |
|
76 | + 'weekdays_long' => array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'), |
|
77 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
|
78 | + 'months_long' => array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December') |
|
79 | 79 | ), |
80 | - 'de' => array ( |
|
81 | - 'weekdays_short'=> array ('So', 'Mon', 'Di', 'Mi', 'Do', 'Fr', 'Sa'), |
|
82 | - 'weekdays_long' => array ('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'), |
|
83 | - 'months_short' => array ('Jan', 'Feb', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'), |
|
84 | - 'months_long' => array ('Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember') |
|
80 | + 'de' => array( |
|
81 | + 'weekdays_short'=> array('So', 'Mon', 'Di', 'Mi', 'Do', 'Fr', 'Sa'), |
|
82 | + 'weekdays_long' => array('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'), |
|
83 | + 'months_short' => array('Jan', 'Feb', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'), |
|
84 | + 'months_long' => array('Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember') |
|
85 | 85 | ), |
86 | - 'fr' => array ( |
|
87 | - 'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'), |
|
88 | - 'weekdays_long' => array ('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'), |
|
89 | - 'months_short' => array ('Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sep', 'Oct', 'Nov', 'Déc'), |
|
90 | - 'months_long' => array ('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre') |
|
86 | + 'fr' => array( |
|
87 | + 'weekdays_short'=> array('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'), |
|
88 | + 'weekdays_long' => array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'), |
|
89 | + 'months_short' => array('Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sep', 'Oct', 'Nov', 'Déc'), |
|
90 | + 'months_long' => array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre') |
|
91 | 91 | ), |
92 | - 'hu' => array ( |
|
93 | - 'weekdays_short'=> array ('V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'), |
|
94 | - 'weekdays_long' => array ('vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'), |
|
95 | - 'months_short' => array ('jan', 'feb', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'), |
|
96 | - 'months_long' => array ('január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december') |
|
92 | + 'hu' => array( |
|
93 | + 'weekdays_short'=> array('V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'), |
|
94 | + 'weekdays_long' => array('vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'), |
|
95 | + 'months_short' => array('jan', 'feb', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'), |
|
96 | + 'months_long' => array('január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december') |
|
97 | 97 | ), |
98 | - 'pl' => array ( |
|
99 | - 'weekdays_short'=> array ('Nie', 'Pn', 'Wt', 'Śr', 'Czw', 'Pt', 'Sob'), |
|
100 | - 'weekdays_long' => array ('Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'), |
|
101 | - 'months_short' => array ('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'), |
|
102 | - 'months_long' => array ('Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień') |
|
98 | + 'pl' => array( |
|
99 | + 'weekdays_short'=> array('Nie', 'Pn', 'Wt', 'Śr', 'Czw', 'Pt', 'Sob'), |
|
100 | + 'weekdays_long' => array('Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'), |
|
101 | + 'months_short' => array('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'), |
|
102 | + 'months_long' => array('Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień') |
|
103 | 103 | ), |
104 | - 'sl' => array ( |
|
105 | - 'weekdays_short'=> array ('Ned', 'Pon', 'Tor', 'Sre', 'Cet', 'Pet', 'Sob'), |
|
106 | - 'weekdays_long' => array ('Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Cetrtek', 'Petek', 'Sobota'), |
|
107 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
108 | - 'months_long' => array ('Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December') |
|
104 | + 'sl' => array( |
|
105 | + 'weekdays_short'=> array('Ned', 'Pon', 'Tor', 'Sre', 'Cet', 'Pet', 'Sob'), |
|
106 | + 'weekdays_long' => array('Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Cetrtek', 'Petek', 'Sobota'), |
|
107 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
108 | + 'months_long' => array('Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December') |
|
109 | 109 | ), |
110 | - 'ru' => array ( |
|
111 | - 'weekdays_short'=> array ('Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'), |
|
112 | - 'weekdays_long' => array ('Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'), |
|
113 | - 'months_short' => array ('Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'), |
|
114 | - 'months_long' => array ('Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь') |
|
110 | + 'ru' => array( |
|
111 | + 'weekdays_short'=> array('Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'), |
|
112 | + 'weekdays_long' => array('Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'), |
|
113 | + 'months_short' => array('Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'), |
|
114 | + 'months_long' => array('Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь') |
|
115 | 115 | ), |
116 | - 'es' => array ( |
|
117 | - 'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'), |
|
118 | - 'weekdays_long' => array ('Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'), |
|
119 | - 'months_short' => array ('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'), |
|
120 | - 'months_long' => array ('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre') |
|
116 | + 'es' => array( |
|
117 | + 'weekdays_short'=> array('Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'), |
|
118 | + 'weekdays_long' => array('Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'), |
|
119 | + 'months_short' => array('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'), |
|
120 | + 'months_long' => array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre') |
|
121 | 121 | ), |
122 | - 'da' => array ( |
|
123 | - 'weekdays_short'=> array ('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
|
124 | - 'weekdays_long' => array ('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
|
125 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
126 | - 'months_long' => array ('Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December') |
|
122 | + 'da' => array( |
|
123 | + 'weekdays_short'=> array('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
|
124 | + 'weekdays_long' => array('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
|
125 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
126 | + 'months_long' => array('Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December') |
|
127 | 127 | ), |
128 | - 'is' => array ( |
|
129 | - 'weekdays_short'=> array ('Sun', 'Mán', 'Þri', 'Mið', 'Fim', 'Fös', 'Lau'), |
|
130 | - 'weekdays_long' => array ('Sunnudagur', 'Mánudagur', 'Þriðjudagur', 'Miðvikudagur', 'Fimmtudagur', 'Föstudagur', 'Laugardagur'), |
|
131 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maí', 'Jún', 'Júl', 'Ágú', 'Sep', 'Okt', 'Nóv', 'Des'), |
|
132 | - 'months_long' => array ('Janúar', 'Febrúar', 'Mars', 'Apríl', 'Maí', 'Júní', 'Júlí', 'Ágúst', 'September', 'Október', 'Nóvember', 'Desember') |
|
128 | + 'is' => array( |
|
129 | + 'weekdays_short'=> array('Sun', 'Mán', 'Þri', 'Mið', 'Fim', 'Fös', 'Lau'), |
|
130 | + 'weekdays_long' => array('Sunnudagur', 'Mánudagur', 'Þriðjudagur', 'Miðvikudagur', 'Fimmtudagur', 'Föstudagur', 'Laugardagur'), |
|
131 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Maí', 'Jún', 'Júl', 'Ágú', 'Sep', 'Okt', 'Nóv', 'Des'), |
|
132 | + 'months_long' => array('Janúar', 'Febrúar', 'Mars', 'Apríl', 'Maí', 'Júní', 'Júlí', 'Ágúst', 'September', 'Október', 'Nóvember', 'Desember') |
|
133 | 133 | ), |
134 | - 'it' => array ( |
|
135 | - 'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'), |
|
136 | - 'weekdays_long' => array ('Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'), |
|
137 | - 'months_short' => array ('Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'), |
|
138 | - 'months_long' => array ('Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre') |
|
134 | + 'it' => array( |
|
135 | + 'weekdays_short'=> array('Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'), |
|
136 | + 'weekdays_long' => array('Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'), |
|
137 | + 'months_short' => array('Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'), |
|
138 | + 'months_long' => array('Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre') |
|
139 | 139 | ), |
140 | - 'sk' => array ( |
|
141 | - 'weekdays_short'=> array ('Ned', 'Pon', 'Uto', 'Str', 'Štv', 'Pia', 'Sob'), |
|
142 | - 'weekdays_long' => array ('Nedeža', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'), |
|
143 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
144 | - 'months_long' => array ('Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December') |
|
140 | + 'sk' => array( |
|
141 | + 'weekdays_short'=> array('Ned', 'Pon', 'Uto', 'Str', 'Štv', 'Pia', 'Sob'), |
|
142 | + 'weekdays_long' => array('Nedeža', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'), |
|
143 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
144 | + 'months_long' => array('Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December') |
|
145 | 145 | ), |
146 | - 'cs' => array ( |
|
147 | - 'weekdays_short'=> array ('Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'), |
|
148 | - 'weekdays_long' => array ('Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'), |
|
149 | - 'months_short' => array ('Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čen', 'Čec', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'), |
|
150 | - 'months_long' => array ('Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec') |
|
146 | + 'cs' => array( |
|
147 | + 'weekdays_short'=> array('Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'), |
|
148 | + 'weekdays_long' => array('Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'), |
|
149 | + 'months_short' => array('Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čen', 'Čec', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'), |
|
150 | + 'months_long' => array('Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec') |
|
151 | 151 | ), |
152 | - 'hy' => array ( |
|
153 | - 'weekdays_short'=> array ('Կրկ', 'Երկ', 'Երք', 'Չրք', 'Հնգ', 'Ուր', 'Շբթ'), |
|
154 | - 'weekdays_long' => array ('Կիրակի', 'Երկուշաբթի', 'Երեքշաբթի', 'Չորեքշաբթի', 'Հինգշաբթի', 'Ուրբաթ', 'Շաբաթ'), |
|
155 | - 'months_short' => array ('Հնվ', 'Փտր', 'Մրտ', 'Ապր', 'Մյս', 'Հնս', 'Հլս', 'Օգս', 'Սպտ', 'Հկտ', 'Նյմ', 'Դկտ'), |
|
156 | - 'months_long' => array ('Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր') |
|
152 | + 'hy' => array( |
|
153 | + 'weekdays_short'=> array('Կրկ', 'Երկ', 'Երք', 'Չրք', 'Հնգ', 'Ուր', 'Շբթ'), |
|
154 | + 'weekdays_long' => array('Կիրակի', 'Երկուշաբթի', 'Երեքշաբթի', 'Չորեքշաբթի', 'Հինգշաբթի', 'Ուրբաթ', 'Շաբաթ'), |
|
155 | + 'months_short' => array('Հնվ', 'Փտր', 'Մրտ', 'Ապր', 'Մյս', 'Հնս', 'Հլս', 'Օգս', 'Սպտ', 'Հկտ', 'Նյմ', 'Դկտ'), |
|
156 | + 'months_long' => array('Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր') |
|
157 | 157 | ), |
158 | - 'nl' => array ( |
|
159 | - 'weekdays_short'=> array ('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'), |
|
160 | - 'weekdays_long' => array ('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'), |
|
161 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
162 | - 'months_long' => array ('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December') |
|
158 | + 'nl' => array( |
|
159 | + 'weekdays_short'=> array('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'), |
|
160 | + 'weekdays_long' => array('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'), |
|
161 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
162 | + 'months_long' => array('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December') |
|
163 | 163 | ), |
164 | - 'et' => array ( |
|
165 | - 'weekdays_short'=> array ('P', 'E', 'T', 'K', 'N', 'R', 'L'), |
|
166 | - 'weekdays_long' => array ('Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'), |
|
167 | - 'months_short' => array ('Jaan', 'Veebr', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'), |
|
168 | - 'months_long' => array ('Jaanuar', 'Veebruar', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'August', 'September', 'Oktoober', 'November', 'Detsember') |
|
164 | + 'et' => array( |
|
165 | + 'weekdays_short'=> array('P', 'E', 'T', 'K', 'N', 'R', 'L'), |
|
166 | + 'weekdays_long' => array('Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'), |
|
167 | + 'months_short' => array('Jaan', 'Veebr', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'), |
|
168 | + 'months_long' => array('Jaanuar', 'Veebruar', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'August', 'September', 'Oktoober', 'November', 'Detsember') |
|
169 | 169 | ), |
170 | - 'tr' => array ( |
|
171 | - 'weekdays_short'=> array ('Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'), |
|
172 | - 'weekdays_long' => array ('Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'), |
|
173 | - 'months_short' => array ('Ock', 'Şbt', 'Mrt', 'Nsn', 'Mys', 'Hzrn', 'Tmmz', 'Ağst', 'Eyl', 'Ekm', 'Ksm', 'Arlk'), |
|
174 | - 'months_long' => array ('Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık') |
|
170 | + 'tr' => array( |
|
171 | + 'weekdays_short'=> array('Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'), |
|
172 | + 'weekdays_long' => array('Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'), |
|
173 | + 'months_short' => array('Ock', 'Şbt', 'Mrt', 'Nsn', 'Mys', 'Hzrn', 'Tmmz', 'Ağst', 'Eyl', 'Ekm', 'Ksm', 'Arlk'), |
|
174 | + 'months_long' => array('Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık') |
|
175 | 175 | ), |
176 | - 'no' => array ( |
|
177 | - 'weekdays_short'=> array ('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
|
178 | - 'weekdays_long' => array ('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
|
179 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'), |
|
180 | - 'months_long' => array ('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember') |
|
176 | + 'no' => array( |
|
177 | + 'weekdays_short'=> array('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
|
178 | + 'weekdays_long' => array('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
|
179 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'), |
|
180 | + 'months_long' => array('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember') |
|
181 | 181 | ), |
182 | - 'eo' => array ( |
|
183 | - 'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', 'Ĵaŭ', 'Ven', 'Sab'), |
|
184 | - 'weekdays_long' => array ('Dimanĉo', 'Lundo', 'Mardo', 'Merkredo', 'Ĵaŭdo', 'Vendredo', 'Sabato'), |
|
185 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aŭg', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
186 | - 'months_long' => array ('Januaro', 'Februaro', 'Marto', 'Aprilo', 'Majo', 'Junio', 'Julio', 'Aŭgusto', 'Septembro', 'Oktobro', 'Novembro', 'Decembro') |
|
182 | + 'eo' => array( |
|
183 | + 'weekdays_short'=> array('Dim', 'Lun', 'Mar', 'Mer', 'Ĵaŭ', 'Ven', 'Sab'), |
|
184 | + 'weekdays_long' => array('Dimanĉo', 'Lundo', 'Mardo', 'Merkredo', 'Ĵaŭdo', 'Vendredo', 'Sabato'), |
|
185 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aŭg', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
186 | + 'months_long' => array('Januaro', 'Februaro', 'Marto', 'Aprilo', 'Majo', 'Junio', 'Julio', 'Aŭgusto', 'Septembro', 'Oktobro', 'Novembro', 'Decembro') |
|
187 | 187 | ), |
188 | - 'ua' => array ( |
|
188 | + 'ua' => array( |
|
189 | 189 | 'weekdays_short'=> array('Ндл', 'Пнд', 'Втр', 'Срд', 'Чтв', 'Птн', 'Сбт'), |
190 | 190 | 'weekdays_long' => array('Неділя', 'Понеділок', 'Вівторок', 'Середа', 'Четвер', 'П\'ятниця', 'Субота'), |
191 | 191 | 'months_short' => array('Січ', 'Лют', 'Бер', 'Кві', 'Тра', 'Чер', 'Лип', 'Сер', 'Вер', 'Жов', 'Лис', 'Гру'), |
192 | 192 | 'months_long' => array('Січень', 'Лютий', 'Березень', 'Квітень', 'Травень', 'Червень', 'Липень', 'Серпень', 'Вересень', 'Жовтень', 'Листопад', 'Грудень') |
193 | 193 | ), |
194 | - 'ro' => array ( |
|
195 | - 'weekdays_short'=> array ('Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'), |
|
196 | - 'weekdays_long' => array ('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'), |
|
197 | - 'months_short' => array ('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
|
198 | - 'months_long' => array ('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie') |
|
194 | + 'ro' => array( |
|
195 | + 'weekdays_short'=> array('Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'), |
|
196 | + 'weekdays_long' => array('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'), |
|
197 | + 'months_short' => array('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
|
198 | + 'months_long' => array('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie') |
|
199 | 199 | ), |
200 | - 'he' => array ( |
|
201 | - 'weekdays_short'=> array ('ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'), |
|
202 | - 'weekdays_long' => array ('יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'שבת'), |
|
203 | - 'months_short' => array ('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'), |
|
204 | - 'months_long' => array ('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר') |
|
200 | + 'he' => array( |
|
201 | + 'weekdays_short'=> array('ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'), |
|
202 | + 'weekdays_long' => array('יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'שבת'), |
|
203 | + 'months_short' => array('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'), |
|
204 | + 'months_long' => array('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר') |
|
205 | 205 | ), |
206 | - 'sv' => array ( |
|
207 | - 'weekdays_short'=> array ('Sön', 'Mån', 'Tis', 'Ons', 'Tor', 'Fre', 'Lör'), |
|
208 | - 'weekdays_long' => array ('Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'), |
|
209 | - 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
210 | - 'months_long' => array ('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December') |
|
206 | + 'sv' => array( |
|
207 | + 'weekdays_short'=> array('Sön', 'Mån', 'Tis', 'Ons', 'Tor', 'Fre', 'Lör'), |
|
208 | + 'weekdays_long' => array('Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'), |
|
209 | + 'months_short' => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
|
210 | + 'months_long' => array('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December') |
|
211 | 211 | ), |
212 | - 'pt' => array ( |
|
213 | - 'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
|
214 | - 'weekdays_long' => array ('Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'), |
|
215 | - 'months_short' => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
|
216 | - 'months_long' => array ('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
|
212 | + 'pt' => array( |
|
213 | + 'weekdays_short'=> array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
|
214 | + 'weekdays_long' => array('Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'), |
|
215 | + 'months_short' => array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
|
216 | + 'months_long' => array('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
|
217 | 217 | ), |
218 | - 'tw' => array ( |
|
219 | - 'weekdays_short'=> array ('週日','週一', '週二','週三', '週四','週五', '週六'), |
|
220 | - 'weekdays_long' => array ('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'), |
|
221 | - 'months_short' => array ('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'), |
|
222 | - 'months_long' => array ('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月') |
|
218 | + 'tw' => array( |
|
219 | + 'weekdays_short'=> array('週日', '週一', '週二', '週三', '週四', '週五', '週六'), |
|
220 | + 'weekdays_long' => array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'), |
|
221 | + 'months_short' => array('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'), |
|
222 | + 'months_long' => array('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月') |
|
223 | 223 | ), |
224 | - 'pt-br' => array ( |
|
225 | - 'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
|
226 | - 'weekdays_long' => array ('Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'), |
|
227 | - 'months_short' => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
|
228 | - 'months_long' => array ('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
|
224 | + 'pt-br' => array( |
|
225 | + 'weekdays_short'=> array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
|
226 | + 'weekdays_long' => array('Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'), |
|
227 | + 'months_short' => array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
|
228 | + 'months_long' => array('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
|
229 | 229 | ) |
230 | 230 | ); |
231 | 231 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | if (is_array($options)) { |
285 | 285 | foreach ($options as $name => $value) { |
286 | 286 | if ('language' == $name) { |
287 | - $this->_options['language'] = isset($this->_locale[$value])? $value: 'en'; |
|
287 | + $this->_options['language'] = isset($this->_locale[$value]) ? $value : 'en'; |
|
288 | 288 | } elseif (isset($this->_options[$name])) { |
289 | 289 | if (is_array($value) && is_array($this->_options[$name])) { |
290 | 290 | $this->_options[$name] = @array_merge($this->_options[$name], $value); |
@@ -299,9 +299,9 @@ discard block |
||
299 | 299 | function _createElements() |
300 | 300 | { |
301 | 301 | $this->_separator = $this->_elements = array(); |
302 | - $separator = ''; |
|
303 | - $locale =& $this->_locale[$this->_options['language']]; |
|
304 | - $backslash = false; |
|
302 | + $separator = ''; |
|
303 | + $locale = & $this->_locale[$this->_options['language']]; |
|
304 | + $backslash = false; |
|
305 | 305 | // Modified by Ivan Tcholakov, 16-MAR-2010. |
306 | 306 | for ($i = 0, $length = api_strlen($this->_options['format']); $i < $length; $i++) { |
307 | 307 | $sign = api_substr($this->_options['format'], $i, 1); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | break; |
325 | 325 | case 'M': |
326 | 326 | $options = $locale['months_short']; |
327 | - array_unshift($options , ''); |
|
327 | + array_unshift($options, ''); |
|
328 | 328 | unset($options[0]); |
329 | 329 | break; |
330 | 330 | case 'm': |
@@ -332,23 +332,23 @@ discard block |
||
332 | 332 | break; |
333 | 333 | case 'F': |
334 | 334 | $options = $locale['months_long']; |
335 | - array_unshift($options , ''); |
|
335 | + array_unshift($options, ''); |
|
336 | 336 | unset($options[0]); |
337 | 337 | break; |
338 | 338 | case 'Y': |
339 | 339 | $options = $this->_createOptionList( |
340 | 340 | $this->_options['minYear'], |
341 | 341 | $this->_options['maxYear'], |
342 | - $this->_options['minYear'] > $this->_options['maxYear']? -1: 1 |
|
342 | + $this->_options['minYear'] > $this->_options['maxYear'] ? -1 : 1 |
|
343 | 343 | ); |
344 | 344 | break; |
345 | 345 | case 'y': |
346 | 346 | $options = $this->_createOptionList( |
347 | 347 | $this->_options['minYear'], |
348 | 348 | $this->_options['maxYear'], |
349 | - $this->_options['minYear'] > $this->_options['maxYear']? -1: 1 |
|
349 | + $this->_options['minYear'] > $this->_options['maxYear'] ? -1 : 1 |
|
350 | 350 | ); |
351 | - array_walk($options, create_function('&$v,$k','$v = substr($v,-2);')); |
|
351 | + array_walk($options, create_function('&$v,$k', '$v = substr($v,-2);')); |
|
352 | 352 | break; |
353 | 353 | case 'h': |
354 | 354 | $options = $this->_createOptionList(1, 12); |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | $loadSelect = false; |
381 | 381 | break; |
382 | 382 | default: |
383 | - $separator .= (' ' == $sign? ' ': $sign); |
|
383 | + $separator .= (' ' == $sign ? ' ' : $sign); |
|
384 | 384 | $loadSelect = false; |
385 | 385 | } |
386 | 386 | |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | } |
407 | 407 | } |
408 | 408 | } |
409 | - $this->_wrap[1] = $separator . ($backslash? '\\': ''); |
|
409 | + $this->_wrap[1] = $separator.($backslash ? '\\' : ''); |
|
410 | 410 | } |
411 | 411 | |
412 | 412 | // }}} |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | */ |
424 | 424 | function _createOptionList($start, $end, $step = 1) |
425 | 425 | { |
426 | - for ($i = $start, $options = array(); $start > $end? $i >= $end: $i <= $end; $i += $step) { |
|
426 | + for ($i = $start, $options = array(); $start > $end ? $i >= $end : $i <= $end; $i += $step) { |
|
427 | 427 | $options[$i] = sprintf('%02d', $i); |
428 | 428 | } |
429 | 429 | return $options; |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | return $str; |
445 | 445 | } |
446 | 446 | $trimmed = ltrim($str, '0'); |
447 | - return strlen($trimmed)? $trimmed: '0'; |
|
447 | + return strlen($trimmed) ? $trimmed : '0'; |
|
448 | 448 | } |
449 | 449 | |
450 | 450 | // }}} |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | $value = strtotime($value); |
460 | 460 | } |
461 | 461 | // might be a unix epoch, then we fill all possible values |
462 | - $arr = explode('-', date('w-j-n-Y-g-G-i-s-a-A-W', (int)$value)); |
|
462 | + $arr = explode('-', date('w-j-n-Y-g-G-i-s-a-A-W', (int) $value)); |
|
463 | 463 | $value = array( |
464 | 464 | 'D' => $arr[0], |
465 | 465 | 'l' => $arr[0], |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | $renderer = new HTML_QuickForm_Renderer_Default(); |
494 | 494 | $renderer->setElementTemplate('{element}'); |
495 | 495 | parent::accept($renderer); |
496 | - return $this->_wrap[0] . $renderer->toHtml() . $this->_wrap[1]; |
|
496 | + return $this->_wrap[0].$renderer->toHtml().$this->_wrap[1]; |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | // }}} |