From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/pages/Advanced/Samples/I18N/Home.php | 88 +++++++++++----------- .../pages/Advanced/Samples/I18N/LanguageList.php | 36 ++++----- 2 files changed, 62 insertions(+), 62 deletions(-) (limited to 'demos/quickstart/protected/pages/Advanced') diff --git a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php index cce1ed4e..634c1773 100644 --- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php +++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/Home.php @@ -1,45 +1,45 @@ -Request['lang']; - $info = new CultureInfo(); - if($info->validCulture($lang)) //only valid lang is permitted - $this->getApplication()->getGlobalization()->setCulture($lang); - } - - /** - * Initialize the page with some arbituary data. - * @param TEventParameter event parameter. - */ - public function onLoad($param) - { - parent::onLoad($param); - $time1 = $this->Time1; - $time1->Value = time(); - - $number2 = $this->Number2; - $number2->Value = 46412.416; - - $this->dataBind(); - } - - /** - * Get the localized current culture name. - * @return string localized curreny culture name. - */ - public function getCurrentCulture() - { - $culture = $this->getApplication()->getGlobalization()->getCulture(); - $cultureInfo = new CultureInfo($culture); - return $cultureInfo->getNativeName(); - } -} - +Request['lang']; + $info = new CultureInfo(); + if($info->validCulture($lang)) //only valid lang is permitted + $this->getApplication()->getGlobalization()->setCulture($lang); + } + + /** + * Initialize the page with some arbituary data. + * @param TEventParameter event parameter. + */ + public function onLoad($param) + { + parent::onLoad($param); + $time1 = $this->Time1; + $time1->Value = time(); + + $number2 = $this->Number2; + $number2->Value = 46412.416; + + $this->dataBind(); + } + + /** + * Get the localized current culture name. + * @return string localized curreny culture name. + */ + public function getCurrentCulture() + { + $culture = $this->getApplication()->getGlobalization()->getCulture(); + $cultureInfo = new CultureInfo($culture); + return $cultureInfo->getNativeName(); + } +} + ?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Advanced/Samples/I18N/LanguageList.php b/demos/quickstart/protected/pages/Advanced/Samples/I18N/LanguageList.php index d3db187d..bdeb5039 100644 --- a/demos/quickstart/protected/pages/Advanced/Samples/I18N/LanguageList.php +++ b/demos/quickstart/protected/pages/Advanced/Samples/I18N/LanguageList.php @@ -1,19 +1,19 @@ - \ No newline at end of file -- cgit v1.2.3