summaryrefslogtreecommitdiff
path: root/framework/I18N
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N')
-rw-r--r--framework/I18N/TDateFormat.php6
-rw-r--r--framework/I18N/TGlobalization.php2
-rw-r--r--framework/I18N/TGlobalizationAutoDetect.php7
-rw-r--r--framework/I18N/TNumberFormat.php6
4 files changed, 9 insertions, 12 deletions
diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php
index 638930fe..eedabfb4 100644
--- a/framework/I18N/TDateFormat.php
+++ b/framework/I18N/TDateFormat.php
@@ -59,7 +59,7 @@ Prado::using('System.I18N.TI18NControl');
* @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com>
* @package Prado\I18N
*/
-class TDateFormat extends TI18NControl implements IDataRenderer
+class TDateFormat extends TI18NControl implements \Prado\IDataRenderer
{
/**
* Default DateFormat, set to the application culture.
@@ -186,7 +186,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer
/**
* Get the date-time value for this control.
- * This method is required by {@link IDataRenderer}.
+ * This method is required by {@link \Prado\IDataRenderer}.
* It is the same as {@link getValue()}.
* @return string date time value.
* @see getValue
@@ -199,7 +199,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer
/**
* Set the date-time value for this control.
- * This method is required by {@link IDataRenderer}.
+ * This method is required by {@link \Prado\IDataRenderer}.
* It is the same as {@link setValue()}.
* @param string the date-time value.
* @see setValue
diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php
index d722d809..f50fdb7e 100644
--- a/framework/I18N/TGlobalization.php
+++ b/framework/I18N/TGlobalization.php
@@ -10,6 +10,8 @@
*/
namespace Prado\I18N;
+use Prado\TApplication;
+use Prado\TPropertyValue;
/**
* TGlobalization contains settings for Culture, Charset
diff --git a/framework/I18N/TGlobalizationAutoDetect.php b/framework/I18N/TGlobalizationAutoDetect.php
index b3e0f5db..e7249343 100644
--- a/framework/I18N/TGlobalizationAutoDetect.php
+++ b/framework/I18N/TGlobalizationAutoDetect.php
@@ -12,11 +12,6 @@
namespace Prado\I18N;
/**
- * Import the HTTPNeogtiator
- */
-Prado::using('System.I18N.core.HTTPNegotiator');
-
-/**
* TGlobalizationAutoDetect class will automatically try to resolve the default
* culture using the user browser language settings.
*
@@ -32,7 +27,7 @@ class TGlobalizationAutoDetect extends TGlobalization
parent::init($xml);
//set the culture according to browser language settings
- $http = new HTTPNegotiator();
+ $http = new core\HTTPNegotiator();
$languages = $http->getLanguages();
if(count($languages) > 0)
{
diff --git a/framework/I18N/TNumberFormat.php b/framework/I18N/TNumberFormat.php
index 0b327be3..7940c785 100644
--- a/framework/I18N/TNumberFormat.php
+++ b/framework/I18N/TNumberFormat.php
@@ -64,7 +64,7 @@ Prado::using('System.I18N.TI18NControl');
* @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com>
* @package Prado\I18N
*/
-class TNumberFormat extends TI18NControl implements IDataRenderer
+class TNumberFormat extends TI18NControl implements \Prado\IDataRenderer
{
/**
* Default NumberFormat, set to the application culture.
@@ -128,7 +128,7 @@ class TNumberFormat extends TI18NControl implements IDataRenderer
/**
* Get the numberic value for this control.
- * This method is required by {@link IDataRenderer}.
+ * This method is required by {@link \Prado\IDataRenderer}.
* It is the same as {@link getValue()}.
* @return string number
* @see getValue
@@ -141,7 +141,7 @@ class TNumberFormat extends TI18NControl implements IDataRenderer
/**
* Set the numberic value for this control.
- * This method is required by {@link IDataRenderer}.
+ * This method is required by {@link \Prado\IDataRenderer}.
* It is the same as {@link setValue()}.
* @param string the number value
* @see setValue