diff --git a/application/config/internal.php b/application/config/internal.php index b95cd659929..dfd44bf5d17 100644 --- a/application/config/internal.php +++ b/application/config/internal.php @@ -3,7 +3,7 @@ /** * This file contains configuration parameters for the Yii framework. * Do not change these unless you know what you are doing. - * + * */ @date_default_timezone_set(@date_default_timezone_get()); $internalConfig = array( @@ -28,7 +28,7 @@ 'rules' => require('routes.php'), 'showScriptName' => true, ), - + 'clientScript' => array( 'packages' => require('third_party.php') ), @@ -60,9 +60,9 @@ 'schemaCachingDuration' => 3600, ), 'messages' => array( - 'class' => 'GettextMessageSource', + 'class' => 'CGettextMessageSource', 'useMoFile' => true, - 'basePath' => __DIR__ . '/../../locale' + 'basePath' => __DIR__ . DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'locale' ) ) diff --git a/application/controllers/AdminController.php b/application/controllers/AdminController.php index 0e6f3a192d8..5eae44e9a07 100644 --- a/application/controllers/AdminController.php +++ b/application/controllers/AdminController.php @@ -14,7 +14,6 @@ class AdminController extends LSYii_Controller { - public $lang = null; public $layout = false; protected $user_id = 0; @@ -59,15 +58,14 @@ protected function _init() */ public function error($message, $sURL = array()) { - $clang = $this->lang; $this->_getAdminHeader(); $sOutput = "
\n"; - $sOutput .= '
'.$clang->gT('Error').'

'."\n"; + $sOutput .= '
'.gT('Error').'

'."\n"; $sOutput .= $message . '

'."\n"; if (!empty($sURL) && !is_array($sURL)) { - $sTitle = $clang->gT('Back'); + $sTitle = gT('Back'); } elseif (!empty($sURL['url'])) { @@ -77,13 +75,13 @@ public function error($message, $sURL = array()) } else { - $sTitle = $clang->gT('Back'); + $sTitle = gT('Back'); } $sURL = $sURL['url']; } else { - $sTitle = $clang->gT('Main Admin Screen'); + $sTitle = gT('Main Admin Screen'); $sURL = $this->createUrl('/admin'); } $sOutput .= '

'."\n"; @@ -91,7 +89,7 @@ public function error($message, $sURL = array()) $sOutput .= '
'."\n"; echo $sOutput; - $this->_getAdminFooter('http://manual.limesurvey.org', $clang->gT('LimeSurvey online manual')); + $this->_getAdminFooter('http://manual.limesurvey.org', gT('LimeSurvey online manual')); die; } @@ -103,7 +101,6 @@ public function error($message, $sURL = array()) */ protected function _sessioncontrol() { - Yii::import('application.libraries.Limesurvey_lang'); // From personal settings if (Yii::app()->request->getPost('action') == 'savepersonalsettings') { if (Yii::app()->request->getPost('lang')=='auto') @@ -120,9 +117,7 @@ protected function _sessioncontrol() if (empty(Yii::app()->session['adminlang'])) Yii::app()->session["adminlang"] = Yii::app()->getConfig("defaultlang"); - global $clang; // Needed so EM can localize equation hints until a better solution is found - $this->lang = $clang = new Limesurvey_lang(Yii::app()->session['adminlang']); - Yii::app()->setLang($this->lang); + Yii::app()->setLanguage(Yii::app()->session["adminlang"]); if (!empty($this->user_id)) $this->_GetSessionUserRights($this->user_id); @@ -163,7 +158,7 @@ public function run($action) Yii::app()->session->close(); $this->redirect(array('/admin/authentication/sa/login')); } - + } return parent::run($action); @@ -264,15 +259,13 @@ public function _getAdminHeader($meta = false, $return = false) Yii::app()->session["adminlang"] = Yii::app()->getConfig("defaultlang"); $aData = array(); - $aData['adminlang'] = $this->lang->getlangcode(); - //$data['admin'] = getLanguageRTL; - $aData['test'] = "t"; + $aData['adminlang'] = Yii::app()->language; $aData['languageRTL']=""; $aData['styleRTL']=""; Yii::app()->loadHelper("surveytranslator"); - if (getLanguageRTL($aData['adminlang'])) + if (getLanguageRTL(Yii::app()->language)) { $aData['languageRTL'] = " dir=\"rtl\" "; $aData['bIsRTL']=true; @@ -293,8 +286,8 @@ public function _getAdminHeader($meta = false, $return = false) $aData['datepickerlang']=""; if ($aData['adminlang'] != 'en') Yii::app()->getClientScript()->registerScriptFile(App()->baseUrl . "/third_party/jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-" . $aData['adminlang'] .".js"); - - + + $aData['sitename'] = Yii::app()->getConfig("sitename"); $aData['admintheme'] = Yii::app()->getConfig("admintheme"); $aData['firebug'] = useFirebug(); @@ -303,8 +296,8 @@ public function _getAdminHeader($meta = false, $return = false) $aData['formatdata'] = getDateFormatData(Yii::app()->session['dateformat']); $sOutput = $this->renderPartial("/admin/super/header", $aData, true); - - + + if ($return) { return $sOutput; @@ -326,9 +319,6 @@ public function _getAdminHeader($meta = false, $return = false) */ public function _getAdminFooter($url, $explanation, $return = false) { - $clang = $this->lang; - $aData['clang'] = $clang; - $aData['versionnumber'] = Yii::app()->getConfig("versionnumber"); $aData['buildtext'] = ""; @@ -345,7 +335,7 @@ public function _getAdminFooter($url, $explanation, $return = false) } else { - $aData['versiontitle'] = $clang->gT('Version'); + $aData['versiontitle'] = gT('Version'); } $aData['imageurl'] = Yii::app()->getConfig("imageurl"); @@ -369,8 +359,6 @@ public function _showMessageBox($title,$message,$class="header ui-widget-header" $aData['title'] = $title; $aData['message'] = $message; $aData['class'] = $class; - $aData['clang'] = $this->lang; - $this->renderPartial('/admin/super/messagebox', $aData); } @@ -388,12 +376,8 @@ public function _showMessageBox($title,$message,$class="header ui-widget-header" */ public function _showadminmenu($surveyid = false) { - - $clang = $this->lang; - $aData['clang']= $clang; - if (Yii::app()->session['pw_notify'] && Yii::app()->getConfig("debug")<2) { - Yii::app()->session['flashmessage'] = $clang->gT("Warning: You are still using the default password ('password'). Please change your password and re-login again."); + Yii::app()->session['flashmessage'] = gT("Warning: You are still using the default password ('password'). Please change your password and re-login again."); } $aData['showupdate'] = (Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1 && getGlobalSetting("updatenotification")!='never' && getGlobalSetting("updateavailable")==1 && Yii::app()->getConfig("updatable") ); @@ -405,7 +389,7 @@ public function _showadminmenu($surveyid = false) { $aUpdateTexts[]=$aVersion['versionnumber'].'('.$aVersion['build'].')'; } - $aData['sUpdateText']=implode(' '.$clang->gT('or').' ',$aUpdateTexts); + $aData['sUpdateText']=implode(' '.gT('or').' ',$aUpdateTexts); } $aData['surveyid'] = $surveyid; $aData['iconsize'] = Yii::app()->getConfig('adminthemeiconsize'); diff --git a/application/controllers/InstallerController.php b/application/controllers/InstallerController.php index 12d132767ce..999b8904218 100644 --- a/application/controllers/InstallerController.php +++ b/application/controllers/InstallerController.php @@ -138,8 +138,8 @@ private function stepWelcome() Yii::app()->session->remove('configFileWritten'); $aData['clang'] = $clang = $this->lang; - $aData['title'] = $clang->gT('Welcome'); - $aData['descp'] = $clang->gT('Welcome to the LimeSurvey installation wizard. This wizard will guide you through the installation, database setup and initial configuration of LimeSurvey.'); + $aData['title'] = gT('Welcome'); + $aData['descp'] = gT('Welcome to the LimeSurvey installation wizard. This wizard will guide you through the installation, database setup and initial configuration of LimeSurvey.'); $aData['classesForStep'] = array('on','off','off','off','off','off'); $aData['progressValue'] = 10; @@ -165,8 +165,8 @@ private function stepLicense() { $aData['clang'] = $clang = $this->lang; // $aData array contain all the information required by view. - $aData['title'] = $clang->gT('License'); - $aData['descp'] = $clang->gT('GNU General Public License:'); + $aData['title'] = gT('License'); + $aData['descp'] = gT('GNU General Public License:'); $aData['classesForStep'] = array('off','on','off','off','off','off'); $aData['progressValue']= 15; @@ -198,8 +198,8 @@ private function stepPreInstallationCheck() $aData['clang'] = $clang = $this->lang; $oModel = new InstallerConfigForm(); //usual data required by view - $aData['title'] = $clang->gT('Pre-installation check'); - $aData['descp'] = $clang->gT('Pre-installation check for LimeSurvey ').Yii::app()->getConfig('versionnumber'); + $aData['title'] = gT('Pre-installation check'); + $aData['descp'] = gT('Pre-installation check for LimeSurvey ').Yii::app()->getConfig('versionnumber'); $aData['classesForStep'] = array('off','off','on','off','off','off'); $aData['progressValue'] = 20; $aData['phpVersion'] = phpversion(); @@ -233,8 +233,8 @@ private function stepDatabaseConfiguration() $aData['clang'] = $clang = $this->lang; // usual data required by view - $aData['title'] = $clang->gT('Database configuration'); - $aData['descp'] = $clang->gT('Please enter the database settings you want to use for LimeSurvey:'); + $aData['title'] = gT('Database configuration'); + $aData['descp'] = gT('Please enter the database settings you want to use for LimeSurvey:'); $aData['classesForStep'] = array('off','off','off','on','off','off'); $aData['progressValue'] = 40; $aData['model'] = $oModel = new InstallerConfigForm; @@ -273,7 +273,7 @@ private function stepDatabaseConfiguration() if (self::_dbConnect($aDbConfig, array())) { $bDBConnectionWorks = true; } else { - $oModel->addError('dblocation', $clang->gT('Connection with database failed. Please check database location, user name and password and try again.')); + $oModel->addError('dblocation', gT('Connection with database failed. Please check database location, user name and password and try again.')); $oModel->addError('dbpwd',''); $oModel->addError('dbuser',''); } @@ -311,7 +311,7 @@ private function stepDatabaseConfiguration() // If database is up to date, redirect to administration screen. if ($bDBExists && !$bTablesDoNotExist) { - Yii::app()->session['optconfig_message'] = sprintf('%s', $clang->gT('The database you specified does already exist.')); + Yii::app()->session['optconfig_message'] = sprintf('%s', gT('The database you specified does already exist.')); Yii::app()->session['step3'] = true; //wrte config file! as we no longer redirect to optional view @@ -319,7 +319,7 @@ private function stepDatabaseConfiguration() //$this->redirect(array("installer/loadOptView")); header("refresh:5;url=".$this->createUrl("/admin")); - echo sprintf( $clang->gT('The database does exists and contains LimeSurvey tables. You\'ll be redirected to the database update or (if your database is already up to date) to the administration login in 5 seconds. If not, please click here.', 'unescaped'), $this->createUrl("/admin")); + echo sprintf( gT('The database does exists and contains LimeSurvey tables. You\'ll be redirected to the database update or (if your database is already up to date) to the administration login in 5 seconds. If not, please click here.', 'unescaped'), $this->createUrl("/admin")); exit(); } @@ -344,8 +344,8 @@ private function stepDatabaseConfiguration() } //$aData array won't work here. changing the name - $aValues['title'] = $clang->gT('Database settings'); - $aValues['descp'] = $clang->gT('Database settings'); + $aValues['title'] = gT('Database settings'); + $aValues['descp'] = gT('Database settings'); $aValues['classesForStep'] = array('off','off','off','off','on','off'); $aValues['progressValue'] = 60; @@ -360,28 +360,28 @@ private function stepDatabaseConfiguration() Yii::app()->session['databaseDontExist'] = true; $aValues['adminoutputText'].= "\t\n" - ."".$clang->gT("Database doesn't exist!")."

\n" - .$clang->gT("The database you specified does not exist:")."

\n".$oModel->dbname."

\n" - .$clang->gT("LimeSurvey can attempt to create this database for you.")."

\n"; + ."".gT("Database doesn't exist!")."

\n" + .gT("The database you specified does not exist:")."

\n".$oModel->dbname."

\n" + .gT("LimeSurvey can attempt to create this database for you.")."

\n"; $aValues['next'] = array( 'action' => 'installer/createdb', - 'label' => $clang->gT('Create database'), + 'label' => gT('Create database'), 'name' => '', ); } - elseif ($bDBExistsButEmpty) //&& !(returnGlobal('createdbstep2')==$clang->gT("Populate database"))) + elseif ($bDBExistsButEmpty) //&& !(returnGlobal('createdbstep2')==gT("Populate database"))) { Yii::app()->session['populatedatabase'] = true; //$this->connection->database = $model->dbname; // //$this->connection->createCommand("USE DATABASE `".$model->dbname."`")->execute(); - $aValues['adminoutputText'].= sprintf($clang->gT('A database named "%s" already exists.'),$oModel->dbname)."

\n" - .$clang->gT("Do you want to populate that database now by creating the necessary tables?")."

"; + $aValues['adminoutputText'].= sprintf(gT('A database named "%s" already exists.'),$oModel->dbname)."

\n" + .gT("Do you want to populate that database now by creating the necessary tables?")."

"; $aValues['next'] = array( 'action' => 'installer/populatedb', - 'label' => $clang->gT("Populate database"), + 'label' => gT("Populate database"), 'name' => 'createdbstep2', ); } @@ -392,9 +392,9 @@ private function stepDatabaseConfiguration() //$this->connection->createCommand("USE DATABASE `$databasename`")->execute(); /* @todo Implement Upgrade */ //$output=CheckForDBUpgrades(); - if ($output== '') {$aValues['adminoutput'].='
'.$clang->gT('LimeSurvey database is up to date. No action needed');} + if ($output== '') {$aValues['adminoutput'].='
'.gT('LimeSurvey database is up to date. No action needed');} else {$aValues['adminoutput'].=$output;} - $aValues['adminoutput'].= "
" . sprintf($clang->gT('Please log in.', 'unescaped'), $this->createUrl("/admin")); + $aValues['adminoutput'].= "
" . sprintf(gT('Please log in.', 'unescaped'), $this->createUrl("/admin")); } $aValues['clang'] = $clang; $this->render('/installer/dbsettings_view', $aValues); @@ -423,8 +423,8 @@ function stepCreateDb() $aData['clang'] = $clang = $this->lang; $aData['model'] = $model = new InstallerConfigForm; - $aData['title'] = $clang->gT("Database configuration"); - $aData['descp'] = $clang->gT("Please enter the database settings you want to use for LimeSurvey:"); + $aData['title'] = gT("Database configuration"); + $aData['descp'] = gT("Please enter the database settings you want to use for LimeSurvey:"); $aData['classesForStep'] = array('off','off','off','on','off','off'); $aData['progressValue'] = 40; @@ -496,11 +496,11 @@ function stepCreateDb() $aData['adminoutputText'] = "
" ."\n" - .$clang->gT("Database has been created.")."

\n" - .$clang->gT("Please continue with populating the database.")."

\n"; + .gT("Database has been created.")."

\n" + .gT("Please continue with populating the database.")."

\n"; $aData['next'] = array( 'action' => 'installer/populatedb', - 'label' => $clang->gT("Populate database"), + 'label' => gT("Populate database"), 'name' => 'createdbstep2', ); } @@ -513,10 +513,10 @@ function stepCreateDb() $oModel->dbuser=$aDbConfig['sDatabaseUser']; //$oModel->dbpwd$aDbConfig['sDatabasePwd']; Don't set password for security issue $oModel->dbprefix=$aDbConfig['sDatabasePrefix']; - $oModel->addError('dbname', $clang->gT('Try again! Creation of database failed.')); + $oModel->addError('dbname', gT('Try again! Creation of database failed.')); - $aData['title'] = $clang->gT('Database configuration'); - $aData['descp'] = $clang->gT('Please enter the database settings you want to use for LimeSurvey:'); + $aData['title'] = gT('Database configuration'); + $aData['descp'] = gT('Please enter the database settings you want to use for LimeSurvey:'); $aData['classesForStep'] = array('off','off','off','on','off','off'); $aData['progressValue'] = 40; $aData['model'] = $oModel; @@ -524,8 +524,8 @@ function stepCreateDb() $this->render('/installer/dbconfig_view',$aData); } - $aData['title'] = $clang->gT("Database settings"); - $aData['descp'] = $clang->gT("Database settings"); + $aData['title'] = gT("Database settings"); + $aData['descp'] = gT("Database settings"); $aData['classesForStep'] = array('off','off','off','off','on','off'); $aData['progressValue'] = 60; $this->render('/installer/dbsettings_view',$aData); @@ -545,8 +545,8 @@ function stepPopulateDb() $aData['clang'] = $clang = $this->lang; $aData['model'] = $model = new InstallerConfigForm; - $aData['title'] = $clang->gT("Database configuration"); - $aData['descp'] = $clang->gT("Please enter the database settings you want to use for LimeSurvey:"); + $aData['title'] = gT("Database configuration"); + $aData['descp'] = gT("Please enter the database settings you want to use for LimeSurvey:"); $aData['classesForStep'] = array('off','off','off','on','off','off'); $aData['progressValue'] = 40; @@ -578,7 +578,7 @@ function stepPopulateDb() $aErrors = self::_setup_tables(dirname(APPPATH).'/installer/sql/create-'.$sql_file.'.sql'); if ($aErrors === false) { - $model->addError('dblocation', $clang->gT('Try again! Connection with database failed. Reason: ').implode(', ', $aErrors)); + $model->addError('dblocation', gT('Try again! Connection with database failed. Reason: ').implode(', ', $aErrors)); $this->render('/installer/dbconfig_view', $aData); } elseif (count($aErrors)==0) @@ -586,11 +586,11 @@ function stepPopulateDb() //$data1['adminoutput'] = ''; //$data1['adminoutput'] .= sprintf("Database `%s` has been successfully populated.",$dbname)."

\n"; //$data1['adminoutput'] .= ""; - $sConfirmation = sprintf($clang->gT("Database %s has been successfully populated."), sprintf('%s', Yii::app()->session['dbname'])); + $sConfirmation = sprintf(gT("Database %s has been successfully populated."), sprintf('%s', Yii::app()->session['dbname'])); } else { - $sConfirmation = $clang->gT('Database was populated but there were errors:').'

+
  • - gT("Cancel")."' onclick=\"document.assessmentsform.action.value='assessments'\" />\n ";?> + \n ";?> diff --git a/application/views/admin/authentication/error.php b/application/views/admin/authentication/error.php index eaeb5f5afcd..2ab43667f8a 100644 --- a/application/views/admin/authentication/error.php +++ b/application/views/admin/authentication/error.php @@ -3,6 +3,6 @@


    - eT("Try again"); ?>
    - eT("Forgot your password?"); ?>
    +
    +
    diff --git a/application/views/admin/authentication/forgotpassword.php b/application/views/admin/authentication/forgotpassword.php index e159ba5b132..cece9752c70 100644 --- a/application/views/admin/authentication/forgotpassword.php +++ b/application/views/admin/authentication/forgotpassword.php @@ -1,17 +1,17 @@ -
    eT('Recover your password'); ?>
    -

    eT('To receive a new password by email you have to enter your user name and original email address.'); ?> +

    +

     

    'form44','id'=>'forgotpassword','name'=>'forgotpassword'));?>

    - +

    -

    ">eT('Main Admin Screen'); ?>

    +

    ">

     

    diff --git a/application/views/admin/authentication/login.php b/application/views/admin/authentication/login.php index 2fefc4628b9..bcce91d4973 100644 --- a/application/views/admin/authentication/login.php +++ b/application/views/admin/authentication/login.php @@ -14,7 +14,7 @@ if (!in_array($selectedAuth, $pluginNames)) { $selectedAuth = $defaultAuth; } - ?>
  • getPluginManager()->getPluginInfo($plugin); @@ -64,17 +64,17 @@ getConfig("demoMode") === true && Yii::app()->getConfig("demoModePrefill") === true) { ?> -

    eT("Demo mode: Login credentials are prefilled - just click the Login button."); ?>

    +

    -
    +

    getConfig("display_user_password_in_email") === true) { ?> - eT("Forgot your password?"); ?>
    +
    diff --git a/application/views/admin/authentication/message.php b/application/views/admin/authentication/message.php index 7de6a0c89a6..e7ad55486ea 100644 --- a/application/views/admin/authentication/message.php +++ b/application/views/admin/authentication/message.php @@ -1,4 +1,4 @@


    - eT('Continue'); ?>
    +

    diff --git a/application/views/admin/checkintegrity/check_view.php b/application/views/admin/checkintegrity/check_view.php index ac3969d9d9c..fb0de8df4f7 100644 --- a/application/views/admin/checkintegrity/check_view.php +++ b/application/views/admin/checkintegrity/check_view.php @@ -1,6 +1,6 @@
    -
    eT("Data consistency check"); ?>
    - eT("If errors are showing up you might have to execute this script repeatedly."); ?> +

    +
      @@ -8,140 +8,140 @@ // TMSW Conditions->Relevance: Update this to use relevance processing results if (isset($conditions)) {?> -
    • eT("The following conditions should be deleted:"); ?>
    • +
    • - CID:gT("Reason:")." {$condition['reason']}";?>


      -
    • eT("All conditions meet consistency standards."); ?>
    • -
    • gT("There are %s orphaned question attributes."),count($questionattributes)); ?>
    • +
    • -
    • eT("All question attributes meet consistency standards."); ?>
    • -
    • gT("There are %s orphaned default value entries which can be deleted."),$defaultvalues); ?>
    • +
    • -
    • eT("All default values meet consistency standards."); ?>
    • -
    • gT("There are %s orphaned quota entries which can be deleted."),$quotas); ?>
    • +
    • -
    • eT("All quotas meet consistency standards."); ?>
    • -
    • gT("There are %s orphaned quota language settings which can be deleted."),$quotals); ?>
    • +
    • -
    • eT("All quota language settings meet consistency standards."); ?>
    • -
    • gT("There are %s orphaned quota members which can be deleted."),$quotamembers); ?>
    • +
    • -
    • eT("All quota quota members meet consistency standards."); ?>
    • -
    • eT("The following assessments should be deleted:"); ?>
    • +
      • -
      • AID: eT("Assessment:");?> eT("Reason:");?>
      • AID:
      -
    • eT("All assessments meet consistency standards."); ?>
    • -
    • eT("The following answers should be deleted:"); ?>
    • +
      • -
      • QID: eT("Code:");?> eT("Reason:");?>
      • QID:
      -
    • eT("All answers meet consistency standards."); ?>
    • -
    • eT("The following surveys should be deleted:"); ?>
    • +
      • -
      • SID: eT("Reason:");?>
      • SID:
      -
    • eT("All surveys meet consistency standards."); ?>
    • -
    • eT("The following survey language settings should be deleted:"); ?>
    • +
      • -
      • SLID: eT("Reason:");?>
      • SLID:
      -
    • eT("All survey language settings meet consistency standards."); ?>
    • -
    • eT("The following questions should be deleted:"); ?> +
      • -
      • QID: eT("Reason:");?>
      • QID:
    • @@ -149,30 +149,30 @@ } else { ?> -
    • eT("All questions meet consistency standards."); ?>
    • -
    • eT("The following groups should be deleted:"); ?>
    • +
      • -
      • GID: eT("Reason:");?>
      • GID:
      -
    • eT("All groups meet consistency standards."); ?>
    • -
    • eT("The following old survey tables should be deleted because they contain no records or their parent survey no longer exists:"); ?> +
      • @@ -184,13 +184,13 @@ } else { ?> -
      • eT("All old survey tables meet consistency standards."); ?>
      • -
      • eT("The following old token tables should be deleted because they contain no records or their parent survey no longer exists:"); ?>
      • +
        • @@ -201,28 +201,28 @@ } else { ?> -
        • eT("All old token tables meet consistency standards."); ?>
        -
        eT("No database action required!"); ?> +
        -
        eT("Should we proceed with the delete?"); ?>
        +

        - +

    -
    eT("Data redundancy check"); ?>
    - eT("The redundancy check looks for tables leftover after deactivating a survey. You can delete these if you no longer require them."); ?> +

    +
    -
    eT("No database action required!"); ?> +
    @@ -230,7 +230,7 @@ -
  • eT("The following old survey response tables exist and may be deleted if no longer required:"); ?> +
  • -

    gT('You can %s download and update manually %s or use the %s.'),"","","".$clang->gT('3-Click ComfortUpdate').''); ?>

    +

    ","","".gT('3-Click ComfortUpdate').''); ?>

    gT('There was an error on update check (%s)'),$updateinfo['errorcode']); ?>
    + { echo sprintf(gT('There was an error on update check (%s)'),$updateinfo['errorcode']); ?>
    eT('There is currently no newer LimeSurvey version available.'); + eT('There is currently no newer LimeSurvey version available.'); } else { - printf($clang->gT('This is an unstable version and cannot be updated using ComfortUpdate. Please check %sour website%s regularly for a newer version.'),"",""); + printf(gT('This is an unstable version and cannot be updated using ComfortUpdate. Please check %sour website%s regularly for a newer version.'),"",""); } ?> @@ -134,7 +134,7 @@
    - 'form30','id'=>'labelsetform','onsubmit'=>"return isEmpty(document.getElementById('label_name'), '".$clang->gT("Error: You have to enter a name for this label set.","js")."')")); ?> + 'form30','id'=>'labelsetform','onsubmit'=>"return isEmpty(document.getElementById('label_name'), '".gT("Error: You have to enter a name for this label set.","js")."')")); ?>
      -
    • +
    • -
    • +
    • - +
      " onclick="DoAdd()" id="AddBtn" />
      >>" onclick="DoRemove(1,'eT("You cannot remove this item since you need at least one language in a labelset.", "js"); ?>')" id="RemoveBtn" />
      " onclick="DoAdd()" id="AddBtn" />
      >>" onclick="DoRemove(1,'')" id="RemoveBtn" />
    -

    +

    @@ -61,21 +61,21 @@

    'multipart/form-data','id'=>'importlabels','name'=>"importlabels")); ?>
    - eT("Import label set(s)"); ?> +
    • +
    • +
    • +
    -

    +

    diff --git a/application/views/admin/labels/exportmulti_view.php b/application/views/admin/labels/exportmulti_view.php index 4f8100f8aa9..dbcc0bcc664 100644 --- a/application/views/admin/labels/exportmulti_view.php +++ b/application/views/admin/labels/exportmulti_view.php @@ -1,13 +1,13 @@ -
    eT('Export multiple label sets');?>
    +
    'exportlabelset','class'=>'form30')); ?>
      -
    • +
    • -

    ' /> +

    ' /> diff --git a/application/views/admin/labels/import_view.php b/application/views/admin/labels/import_view.php index 825e5ee9bab..3dd3f9c265c 100644 --- a/application/views/admin/labels/import_view.php +++ b/application/views/admin/labels/import_view.php @@ -1,9 +1,9 @@ -

    eT("Import Label Set") ?>
    +
    eT("Error") ?>

    + ?>


    -
    eT("Success") ?>

    - eT("File upload succeeded.") ?>

    - eT("Reading file..") ?>

    +

    +

    +

    0) { ?>
    -
    eT("Warnings") ?>
    +

      -
      eT("Success") ?>

      - eT("Label set import summary") ?>
      +

      +
        -
      • gT("Label sets") . ": {$aImportResults['labelsets']}" ?>
      • -
      • gT("Labels") . ": {$aImportResults['labels']}" ?>
      • +
      • +
      - eT("Import of label set(s) is completed.") ?>

      +

      - +

    \ No newline at end of file diff --git a/application/views/admin/labels/importlabelresources_view.php b/application/views/admin/labels/importlabelresources_view.php index 90977130433..35239e727b2 100644 --- a/application/views/admin/labels/importlabelresources_view.php +++ b/application/views/admin/labels/importlabelresources_view.php @@ -1,51 +1,51 @@ -
    eT("Import label set resources") ?>
    +
    -
    eT("Success") ?>

    - eT("File upload succeeded.") ?>

    - eT("Reading file..") ?>

    +

    +

    +

    gT("Success"); + $status = gT("Success"); $statusClass = 'successheader'; $okfiles = count($aImportedFilesInfo); $errfiles=0; - $ImportListHeader .= "
    " . $clang->gT("Imported files list") . ":
    \n"; + $ImportListHeader .= "
    " . gT("Imported files list") . ":
    \n"; $ErrorListHeader = ''; } elseif (count($aErrorFilesInfo) &&count($aImportedFilesInfo)) { - $status = $clang->gT("Partial"); + $status = gT("Partial"); $statusClass = 'partialheader'; $okfiles = count($aImportedFilesInfo); $errfiles = count($aErrorFilesInfo); - $ErrorListHeader = "
    " . $clang->gT("Error files list") . ":
    \n"; - $ImportListHeader .= "
    " . $clang->gT("Imported files list") . ":
    \n"; + $ErrorListHeader = "
    " . gT("Error files list") . ":
    \n"; + $ImportListHeader .= "
    " . gT("Imported files list") . ":
    \n"; } else { $okfiles = 0; - $status = $clang->gT("Error"); + $status = gT("Error"); $statusClass = 'warningheader'; $errfiles = count($aErrorFilesInfo); $ImportListHeader = ''; - $ErrorListHeader = "
    " . $clang->gT("Error files list") . ":
    \n"; + $ErrorListHeader = "
    " . gT("Error files list") . ":
    \n"; } ?> - eT("Imported resources for") ?> LID:

    + LID:


    - eT("Resources import summary") ?>
    - gT("Total imported files") . ": $okfiles" ?>
    - gT("Total errors") . ": $errfiles" ?>
    +
    +
    +
    -
  • gT("File") . ": " . $entry["filename"] ?>
  • +
  • -
  • gT("File") . ": " . $entry['filename'] . " (" . $entry['status'] . ")" ?>
  • +
  • - + \ No newline at end of file diff --git a/application/views/admin/labels/labelbar_view.php b/application/views/admin/labels/labelbar_view.php index 4c1157bd4e4..232a1561b86 100644 --- a/application/views/admin/labels/labelbar_view.php +++ b/application/views/admin/labels/labelbar_view.php @@ -1,21 +1,21 @@ diff --git a/application/views/admin/labels/labelsetsbar_view.php b/application/views/admin/labels/labelsetsbar_view.php index 118079c332d..baabbf13cf3 100644 --- a/application/views/admin/labels/labelsetsbar_view.php +++ b/application/views/admin/labels/labelsetsbar_view.php @@ -1,25 +1,25 @@ diff --git a/application/views/admin/labels/labelview_view.php b/application/views/admin/labels/labelview_view.php index fae2dbd1fa0..77158feacc2 100644 --- a/application/views/admin/labels/labelview_view.php +++ b/application/views/admin/labels/labelview_view.php @@ -1,9 +1,9 @@ -
    eT("Labels") ?>
    +
    @@ -36,10 +36,10 @@ echo '  '; ?> - eT("Code") ?> - eT("Assessment value") ?> - eT("Title") ?> - eT("Action") ?> + + + + @@ -84,7 +84,7 @@ _' maxlength='3000' size='80' value="" /> gT("Label:", "js") . "](" . $row['language'] . ")", '', '', '', $action); + echo getEditor("editlabel", "title_{$row['language']}_{$row['sortorder']}", "[" . gT("Label:", "js") . "](" . $row['language'] . ")", '', '', '', $action); ?> @@ -92,8 +92,8 @@ if ($first) { ?> - <?php $clang->eT("Insert a new label after this one") ?> - <?php $clang->eT("Delete this label") ?> + <?php eT("Insert a new label after this one") ?> + <?php eT("Delete this label") ?> @@ -107,9 +107,9 @@
    - +
    -

    +

  • - $clang->gT('Files'), 'flash' => $clang->gT('Flash'), 'images' => $clang->gT('Images'))); ?> - " /> + gT('Files'), 'flash' => gT('Flash'), 'images' => gT('Images'))); ?> + " />
  • onclick='window.open("createUrl("/admin/export/sa/resources/export/label/lid/$lid"); ?>", "_blank")' - value="eT("Export resources as ZIP archive") ?>" /> + value="" />
  • @@ -138,16 +138,16 @@ 'class'=>'form30', 'name'=>'importlabelresources', 'enctype'=>'multipart/form-data', - 'onsubmit'=>'return validatefilename(this, "'.$clang->gT('Please select a file to import!', 'js').'");')); ?> + 'onsubmit'=>'return validatefilename(this, "'.gT('Please select a file to import!', 'js').'");')); ?> @@ -157,13 +157,13 @@ diff --git a/application/views/admin/limeReplacementFields_view.php b/application/views/admin/limeReplacementFields_view.php index 05d2d00abd0..bbfe11d1ba2 100644 --- a/application/views/admin/limeReplacementFields_view.php +++ b/application/views/admin/limeReplacementFields_view.php @@ -43,14 +43,14 @@ function Ok() } else { - $clang->eT("No replacement variable available for this field"); + eT("No replacement variable available for this field"); $noselection = true; } if (count($replFields) > 0) { ?> - + - +
    - eT("Some Question have been disabled");?> +
    - gT("Survey Format is %s:"), $clang->gT("All in one"));?> +
    - eT("Only Previous pages answers are available");?> +
    @@ -123,9 +123,9 @@ function Ok()
    - eT("Some Question have been disabled");?> -
    gT("Survey mode is set to %s:"), $clang->gT("Group by Group"));?> -
    eT("Only Previous pages answers are available");?> + +
    +

    - var sLoadText = 'eT("Loading...",'js');?>'; - var sEditAttributeMsg = 'eT("Edit attribute",'js');?>'; - var sDeleteButtonCaption = "eT("Delete", 'js') ?>"; - var sSaveButtonCaption = "eT("Save", 'js') ?>"; - var sCancel = "eT("Cancel", 'js') ?>"; - var sSelectRowMsg = "eT("Select at least one attribute.", 'js') ?>"; - var sWarningMsg = "eT("Warning", 'js') ?>"; - var deleteCaption = "eT("Delete attribute", 'js') ?>"; - var deleteMsg = "eT("Delete selected attribute(s) and associated data?", 'js') ?>"; - var addCaption = "eT("Add attribute", 'js') ?>"; - var sRequired = "eT("This field is required.", 'js') ?>"; - var refreshMsg = "eT("Refresh list", 'js') ?>"; - var searchMsg = "eT("Search attributes", 'js') ?>"; - var pagerMsg = "eT("Page {0} of {1}", 'js') ?>"; - var viewRecordTxt= 'eT("View {0} - {1} of {2}",'js');?>'; - var emptyRecordsTxt= "eT("No attributes to view", 'js') ?>"; - var sFindButtonCaption= "eT("Find", 'js') ?>"; - var sResetButtonCaption= "eT("Reset", 'js') ?>"; - var sSearchTitle= "eT("Search...", 'js') ?>"; - var sOptionAnd= "eT("AND", 'js') ?>"; - var sOptionOr= "eT("OR", 'js') ?>"; + var sLoadText = ''; + var sEditAttributeMsg = ''; + var sDeleteButtonCaption = ""; + var sSaveButtonCaption = ""; + var sCancel = ""; + var sSelectRowMsg = ""; + var sWarningMsg = ""; + var deleteCaption = ""; + var deleteMsg = ""; + var addCaption = ""; + var sRequired = ""; + var refreshMsg = ""; + var searchMsg = ""; + var pagerMsg = ""; + var viewRecordTxt= ''; + var emptyRecordsTxt= ""; + var sFindButtonCaption= ""; + var sResetButtonCaption= ""; + var sSearchTitle= ""; + var sOptionAnd= ""; + var sOptionOr= ""; var attributeInfoUrl = "getController()->createUrl("admin/participants/sa/getAttributeInfo_json"); ?>"; var editAttributeUrl = "getController()->createUrl("admin/participants/sa/editAttributeInfo"); ?>"; - var attributeControlCols = '["eT('Actions'); ?>", "eT('Attribute name'); ?>", "eT('Attribute type'); ?>", "eT('Visible in participants panel'); ?>"]'; - var attributeTypeSelections = "TB:eT("Text box"); ?>;DD:eT("Drop-down list"); ?>;DP:eT("Date"); ?>"; - var attributeTypeSearch = "eT("Text box"); ?>:eT("Text box"); ?>; eT("Date"); ?>:eT("Date"); ?>; eT("Drop-down list"); ?>:eT("Drop-down list"); ?>" + var attributeControlCols = '["", "", "", ""]'; + var attributeTypeSelections = "TB:;DD:;DP:"; + var attributeTypeSearch = ":; :; :" var attributeEditUrl = "getController()->createUrl("admin/participants/sa/viewAttribute/aid"); ?>"; - var sOperator1= 'eT("equal",'js');?>'; - var sOperator2= 'eT("not equal",'js');?>'; - var sOperator3= 'eT("less",'js');?>'; - var sOperator4= 'eT("less or equal",'js');?>'; - var sOperator5= 'eT("greater",'js');?>'; - var sOperator6= 'eT("greater or equal",'js');?>'; - var sOperator7= 'eT("begins with",'js');?>'; - var sOperator8= 'eT("does not begin with",'js');?>'; - var sOperator9= 'eT("is in",'js');?>'; - var sOperator10= 'eT("is not in",'js');?>'; - var sOperator11= 'eT("ends with",'js');?>'; - var sOperator12= 'eT("does not end with",'js');?>'; - var sOperator13= 'eT("contains",'js');?>'; - var sOperator14= 'eT("does not contain",'js');?>'; + var sOperator1= ''; + var sOperator2= ''; + var sOperator3= ''; + var sOperator4= ''; + var sOperator5= ''; + var sOperator6= ''; + var sOperator7= ''; + var sOperator8= ''; + var sOperator9= ''; + var sOperator10= ''; + var sOperator11= ''; + var sOperator12= ''; + var sOperator13= ''; + var sOperator14= ''; -
    eT("Attribute management"); ?>
    +

    diff --git a/application/views/admin/participants/attributeMapCSV_view.php b/application/views/admin/participants/attributeMapCSV_view.php index 87c2b098525..be5f964213e 100644 --- a/application/views/admin/participants/attributeMapCSV_view.php +++ b/application/views/admin/participants/attributeMapCSV_view.php @@ -1,10 +1,10 @@
    - ngT("Select which fields to import as attributes with your participant.","Select which fields to import as attributes with your %s participants.",$linecount), $linecount); ?> +
    -
    eT("CSV field names "); ?>
    -
    eT("The following additional fields were found in your CSV file."); ?>
    +
    +
    $value) @@ -15,14 +15,14 @@
    -
    eT("Attributes to be created") ?>
    -
    eT("Drop a CSV field into this area to create a new participant attribute and import your data into it."); ?>
    +
    +
    -
    eT("Existing attribute"); ?>
    -
    eT("Drop a CSV field into an existing participant attribute listed below to import your data into it."); ?>
    +
    +
    $value) @@ -34,13 +34,13 @@
    -

    - " /> - " onClick="window.location.reload();" /> - " /> + " /> + " onClick="window.location.reload();" /> + " />

    -
    " style="display:none"> - <?php $clang->eT('Loading...'); ?> +
    " style="display:none"> + <?php eT('Loading...'); ?>
    diff --git a/application/views/admin/participants/attributeMapToken_view.php b/application/views/admin/participants/attributeMapToken_view.php index 93c599157c4..60a6a910b2f 100644 --- a/application/views/admin/participants/attributeMapToken_view.php +++ b/application/views/admin/participants/attributeMapToken_view.php @@ -5,25 +5,25 @@ var surveyId = "request->getQuery('sid'); ?>"; /* LANGUAGE */ - var attributesMappedText = "eT("There are no unmapped attributes") ?>"; - var cannotAcceptTokenAttributesText="eT("This list cannot accept token attributes.") ?>"; + var attributesMappedText = ""; + var cannotAcceptTokenAttributesText="";
    - eT("Map your token attributes to an existing participant attribute or create a new one"); ?> +
    -
    eT("Unmapped token attributes") ?>
    +
    $value) { - echo "
    " . $key . "
    "; + echo "
    " . $key . "
    "; } } ?> @@ -31,12 +31,12 @@
    -
    eT("Participant attributes to create") ?>
    +
    -
    eT("Existing participant attributes")?>
    +
    - +
    - +
    @@ -65,19 +65,19 @@ -
    eT("Pre-mapped attributes") ?>

    +

    $value) { - echo "
    " . $alreadymappedattdescription[$value] . "
    "; + echo "
    " . $alreadymappedattdescription[$value] . "
    "; } ?>
    - +

    - - - + + +

    'Ajax Loader' ); ?> -
    " style="display:none"> +
    " style="display:none">
    diff --git a/application/views/admin/participants/attributeMap_view.php b/application/views/admin/participants/attributeMap_view.php index 04e02d34a00..715b57d33f9 100644 --- a/application/views/admin/participants/attributeMap_view.php +++ b/application/views/admin/participants/attributeMap_view.php @@ -11,17 +11,17 @@ var participant_id = ""; /* SCRIPT TEXT */ - var attributesMappedText = "eT("All the attributes are automatically mapped") ?>"; - var mustPairAttributeText= "eT("You have to pair it with one attribute of the token table") ?>"; - var onlyOneAttributeMappedText="eT("Only one central attribute is mapped with token attribute") ?>"; - var cannotAcceptTokenAttributesText="eT("This list cannot accept token attributes.") ?>"; + var attributesMappedText = ""; + var mustPairAttributeText= ""; + var onlyOneAttributeMappedText=""; + var cannotAcceptTokenAttributesText="";
    - eT("Map your participant attributes to an existing token attribute or create a new one"); ?> +
    -
    eT("Unmapped participant attributes"); ?>
    +
      $value) @@ -47,13 +47,13 @@
    -
    eT("Token attributes to create"); ?>
    +
    - eT("Existing token attributes"); ?> +

      - -

        + +

       
       ";} if(!empty($alreadymappedattributename)) { ?>
      -
      eT("Pre-mapped attributes") ?>

      +

        $value) @@ -86,25 +86,25 @@ ?>
      - +
      -
      eT("Standard token fields") ?>

      +

        -
      • eT("Token") ?>
      • +
      - -
      eT("Note: Standard token fields cannot be automatically mapped") ?> + +

    - - - + + +

    'Ajax loader' ); ?> -
    " style="display:none"> +
    " style="display:none">
    diff --git a/application/views/admin/participants/blacklist_view.php b/application/views/admin/participants/blacklist_view.php index 9f7b92b5b0d..2a997861220 100644 --- a/application/views/admin/participants/blacklist_view.php +++ b/application/views/admin/participants/blacklist_view.php @@ -2,7 +2,7 @@
    eT("Blacklist settings"); + eT("Blacklist settings"); ?>
    @@ -10,7 +10,7 @@ @@ -20,49 +20,49 @@ { $attribute = array('class' => 'form44'); echo CHtml::beginForm($this->createUrl('/admin/participants/sa/storeBlacklistValues'), 'post', $attribute); - $options = array('Y' => $clang->gT('Yes'), 'N' => $clang->gT('No')); + $options = array('Y' => gT('Yes'), 'N' => gT('No')); ?>

    $clang->gT('Save'))); + echo CHtml::submitButton('submit', array('value' => gT('Save'))); ?>

    " . $clang->gT("You don't have sufficient permissions.") . "
    "; + echo "
    " . gT("You don't have sufficient permissions.") . "
    "; } ?>
    diff --git a/application/views/admin/participants/displayParticipants_view.php b/application/views/admin/participants/displayParticipants_view.php index 5575a22ed4f..3065ca6c6ec 100644 --- a/application/views/admin/participants/displayParticipants_view.php +++ b/application/views/admin/participants/displayParticipants_view.php @@ -59,96 +59,96 @@ ?>