projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started to work on button labels in translation files.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
FloatField.class.php
diff --git
a/WEB-INF/lib/form/FloatField.class.php
b/WEB-INF/lib/form/FloatField.class.php
index
b5f8d0d
..
cb035c7
100644
(file)
--- a/
WEB-INF/lib/form/FloatField.class.php
+++ b/
WEB-INF/lib/form/FloatField.class.php
@@
-29,17
+29,18
@@
import('form.TextField');
class FloatField extends TextField {
import('form.TextField');
class FloatField extends TextField {
-
var $mDelimiter = '.';
var $mFFormat;
var $mDelimiter = '.';
var $mFFormat;
- var $cClassName = 'FloatField';
-
+
function __construct($name) {
function __construct($name) {
+ global $user;
+
+ $this->class = 'FloatField';
$this->name = $name;
$this->name = $name;
+ $this->mDelimiter = $user->decimal_mark;
}
}
- function setLocalization($i18n) {
- FormElement::setLocalization($i18n);
+ function localize() {
global $user;
$this->mDelimiter = $user->decimal_mark;
}
global $user;
$this->mDelimiter = $user->decimal_mark;
}