From: <gem...@li...> - 2012-06-11 09:36:11
|
Revision: 751 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=751&view=rev Author: michieltcs Date: 2012-06-11 09:36:00 +0000 (Mon, 11 Jun 2012) Log Message: ----------- Instead of silently accepting, present an error if valid until is set but valid from isn't Modified Paths: -------------- trunk/library/classes/MUtil/Validate/Date/DateAfter.php trunk/library/languages/FakeTranslations.php trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/MUtil/Validate/Date/DateAfter.php =================================================================== --- trunk/library/classes/MUtil/Validate/Date/DateAfter.php 2012-06-11 09:34:33 UTC (rev 750) +++ trunk/library/classes/MUtil/Validate/Date/DateAfter.php 2012-06-11 09:36:00 UTC (rev 751) @@ -49,12 +49,14 @@ * Error constants */ const NOT_AFTER = 'notAfter'; + const NO_VALIDFROM = 'noValidFrom'; /** * @var array Message templates */ protected $_messageTemplates = array( self::NOT_AFTER => "Date should be '%dateAfter%' or later.", + self::NO_VALIDFROM => "Should be empty if valid from date is not set." ); /** @@ -93,11 +95,12 @@ if ($this->_afterDate instanceof Zend_Date) { $after = $this->_afterDate; } elseif (isset($context[$this->_afterDate])) { - if (!empty($context[$this->_afterDate])) { - $after = new Zend_Date($context[$this->_afterDate], $this->getDateFormat()); - } else { - $after = new Zend_Date(); + if (empty($context[$this->_afterDate])) { + $this->_error(self::NO_VALIDFROM); + return false; } + + $after = new Zend_Date($context[$this->_afterDate], $this->getDateFormat()); } else { $after = new Zend_Date($this->_afterDate); } Modified: trunk/library/languages/FakeTranslations.php =================================================================== --- trunk/library/languages/FakeTranslations.php 2012-06-11 09:34:33 UTC (rev 750) +++ trunk/library/languages/FakeTranslations.php 2012-06-11 09:36:00 UTC (rev 751) @@ -48,6 +48,7 @@ // MUtil_Validate_Date_DateAfter _("Date should be '%dateAfter%' or later."); +_("Should be empty if valid from date is not set."); // MUtil_Validate_Date_DateBefore _("Date should be '%dateBefore%' or earlier."); Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-06-11 09:34:33 UTC (rev 750) +++ trunk/library/languages/default-nl.po 2012-06-11 09:36:00 UTC (rev 751) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-11 11:32+0100\n" +"POT-Creation-Date: 2012-06-11 11:34+0100\n" "PO-Revision-Date: \n" "Last-Translator: Michiel Rook <in...@to...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -4014,72 +4014,76 @@ msgid "Date should be '%dateAfter%' or later." msgstr "Datum moet later vallen dan '%dateAfter%' of er gelijk aan zijn." -#: languages/FakeTranslations.php:53 +#: languages/FakeTranslations.php:51 +msgid "Should be empty if valid from date is not set." +msgstr "Moet leeg zijn als 'afname op' niet is ingevuld." + +#: languages/FakeTranslations.php:54 #, php-format msgid "Date should be '%dateBefore%' or earlier." msgstr "Datum moet vallen voor '%dateBefore%' of er gelijk aan zijn." -#: languages/FakeTranslations.php:56 +#: languages/FakeTranslations.php:57 msgid "%value% is not a valid date." msgstr "%value% is geen geldige datum." -#: languages/FakeTranslations.php:59 +#: languages/FakeTranslations.php:60 msgid "No record matching %value% was found." msgstr "Geen gegevens gevonden die overeenkomen met %value%." -#: languages/FakeTranslations.php:60 +#: languages/FakeTranslations.php:61 msgid "A duplicate record matching '%value%' was found." msgstr "De waarde '%value%' is al in gebruik." -#: languages/FakeTranslations.php:63 +#: languages/FakeTranslations.php:64 msgid "This is not a valid %testDescription%." msgstr "%testDescription% is niet geldig." -#: languages/FakeTranslations.php:64 +#: languages/FakeTranslations.php:65 msgid "A %testDescription% cannot contain letters." msgstr "Een %testDescription% mag geen letters bevatten." -#: languages/FakeTranslations.php:65 +#: languages/FakeTranslations.php:66 msgid "%value% is too long for a %testDescription%. Should be %length% digits." msgstr "%value% is te lang voor een %testDescription%. Die moet %length% cijfers lang zijn." -#: languages/FakeTranslations.php:66 +#: languages/FakeTranslations.php:67 msgid "%value% is too short for a %testDescription%. Should be %length% digits." msgstr "%value% is te kort voor een %testDescription%. Die moet %length% cijfers lang zijn." -#: languages/FakeTranslations.php:72 +#: languages/FakeTranslations.php:73 msgid "'%value%' is not a phone number (e.g. +12 (0)34-567 890)." msgstr "'%value%' is geen telefoonnummer (zoals: +12 (0)34-567 890)." -#: languages/FakeTranslations.php:75 +#: languages/FakeTranslations.php:76 msgid "Unsupported PDF version %value% - only versions 1.0 - 1.4 are supported." msgstr "Deze PDF heeft een versie (%value%) die niet ondersteund wordt, slechts versies 1.0-1.4 worden ondersteund." -#: languages/FakeTranslations.php:78 +#: languages/FakeTranslations.php:79 msgid "To set '%description%' you have to set '%fieldDescription%'." msgstr " '%fieldDescription%' moet ingevoerd worden om '%description%' te kunnen kiezen." -#: languages/FakeTranslations.php:82 +#: languages/FakeTranslations.php:83 msgid "'%value%' is not an email address (e.g. na...@so...)." msgstr "'%value%' is niet een email address (zoals na...@er...)." -#: languages/FakeTranslations.php:85 +#: languages/FakeTranslations.php:86 msgid "'%value%' is not a series of email addresses (e.g. na...@so..., no...@no...)." msgstr "'%value%' is niet een verzameling email adressen (zoals na...@er..., ni...@ne...)." -#: languages/FakeTranslations.php:88 +#: languages/FakeTranslations.php:89 msgid "'%value%' must contain only digits" msgstr "'%value%' mag alleen cijfers bevatten" -#: languages/FakeTranslations.php:89 +#: languages/FakeTranslations.php:90 msgid "'%value%' is an empty string" msgstr "'%value%' is leeg" -#: languages/FakeTranslations.php:90 +#: languages/FakeTranslations.php:91 msgid "Invalid type given. String, integer or float expected" msgstr "Ongeldige invoer, geef een tekst of een nummer op" -#: languages/FakeTranslations.php:93 +#: languages/FakeTranslations.php:94 msgid "One or more IPs are illegal." msgstr "Een of meer IP adressen zijn incorrect." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-11 12:56:08
|
Revision: 752 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=752&view=rev Author: matijsdejong Date: 2012-06-11 12:55:54 +0000 (Mon, 11 Jun 2012) Log Message: ----------- All bulk check/change processes now use Batch/Task to execute Removed Batch() from function names for consistent naming (should be backward compatible) Updated version numbers Updated translations and changed some batch descriptions for clarity (I hope) Modified Paths: -------------- trunk/library/classes/Gems/Default/SourceAction.php trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Default/TokenPlanAction.php trunk/library/classes/Gems/Default/TrackMaintenanceAction.php trunk/library/classes/Gems/Menu/MenuAbstract.php trunk/library/classes/Gems/Task/Tracker/CheckTrackRounds.php trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php trunk/library/classes/Gems/Tracker/TrackerInterface.php trunk/library/classes/Gems/Tracker.php trunk/library/classes/Gems/Versions.php trunk/library/classes/MUtil/Batch/BatchPull.js trunk/library/configs/db/tables/gems__patch_levels.10.sql trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/Gems/Default/SourceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SourceAction.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Default/SourceAction.php 2012-06-11 12:55:54 UTC (rev 752) @@ -111,7 +111,7 @@ $sourceId = $this->getSourceId(); $where = $this->db->quoteInto('gsu_id_source = ?', $sourceId); - $batch = $this->loader->getTracker()->refreshTokenAttributesBatch('sourceCheck' . $sourceId, $where); + $batch = $this->loader->getTracker()->refreshTokenAttributes('sourceCheck' . $sourceId, $where); $title = sprintf($this->_('Refreshing token attributes for %s source.'), $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); @@ -127,7 +127,7 @@ $sourceId = $this->getSourceId(); $where = $this->db->quoteInto('gto_id_survey IN (SELECT gsu_id_survey FROM gems__surveys WHERE gsu_id_source = ?)', $sourceId); - $batch = $this->loader->getTracker()->recalculateTokensBatch('sourceCheck' . $sourceId, $this->loader->getCurrentUser()->getUserId(), $where); + $batch = $this->loader->getTracker()->recalculateTokens('sourceCheck' . $sourceId, $this->loader->getCurrentUser()->getUserId(), $where); $title = sprintf($this->_('Checking survey results for %s source.'), $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); @@ -139,7 +139,7 @@ */ public function checkAllAction() { - $batch = $this->loader->getTracker()->recalculateTokensBatch('surveyCheckAll', $this->loader->getCurrentUser()->getUserId()); + $batch = $this->loader->getTracker()->recalculateTokens('surveyCheckAll', $this->loader->getCurrentUser()->getUserId()); $title = $this->_('Checking survey results for all sources.'); $this->_helper->BatchRunner($batch, $title); @@ -238,7 +238,7 @@ { $sourceId = $this->getSourceId(); - $batch = $this->loader->getTracker()->synchronizeSourcesBatch($sourceId, $this->loader->getCurrentUser()->getUserId()); + $batch = $this->loader->getTracker()->synchronizeSources($sourceId, $this->loader->getCurrentUser()->getUserId()); $title = sprintf($this->_('Synchronize the %s source.'), $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); @@ -251,11 +251,11 @@ public function synchronizeAllAction() { //* - $batch = $this->loader->getTracker()->synchronizeSourcesBatch(null, $this->loader->getCurrentUser()->getUserId()); + $batch = $this->loader->getTracker()->synchronizeSources(null, $this->loader->getCurrentUser()->getUserId()); $title = $this->_('Synchronize all sources.'); $this->_helper->BatchRunner($batch, $title); - + $this->html->actionLink(array('action' => 'index'), $this->_('Cancel')); } } Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-06-11 12:55:54 UTC (rev 752) @@ -244,13 +244,13 @@ // Set the value of the field in the database. $new_name = $data['gsu_id_survey'] . '.pdf'; - + if (file_exists($form->new_pdf->getDestination() . DIRECTORY_SEPARATOR . $new_name)) { $data['gsu_survey_pdf'] = $new_name; } else { $data['gsu_survey_pdf'] = null; } - + $data['gtr_track_class'] = 'SingleSurveyEngine'; // feature request #200 @@ -274,7 +274,7 @@ $surveyId = $this->_getParam(MUtil_Model::REQUEST_ID); $where = $this->db->quoteInto('gto_id_survey = ?', $surveyId); - $batch = $this->loader->getTracker()->recalculateTokensBatch('surveyCheck' . $surveyId, $this->loader->getCurrentUser()->getUserId(), $where); + $batch = $this->loader->getTracker()->recalculateTokens('surveyCheck' . $surveyId, $this->loader->getCurrentUser()->getUserId(), $where); $title = sprintf($this->_('Checking survey results for the %s survey.'), $this->db->fetchOne("SELECT gsu_survey_name FROM gems__surveys WHERE gsu_id_survey = ?", $surveyId)); @@ -286,7 +286,7 @@ */ public function checkAllAction() { - $batch = $this->loader->getTracker()->recalculateTokensBatch('surveyCheckAll', $this->loader->getCurrentUser()->getUserId()); + $batch = $this->loader->getTracker()->recalculateTokens('surveyCheckAll', $this->loader->getCurrentUser()->getUserId()); $title = $this->_('Checking survey results for all surveys.'); $this->_helper->BatchRunner($batch, $title); Modified: trunk/library/classes/Gems/Default/TokenPlanAction.php =================================================================== --- trunk/library/classes/Gems/Default/TokenPlanAction.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Default/TokenPlanAction.php 2012-06-11 12:55:54 UTC (rev 752) @@ -499,7 +499,7 @@ //$this->loader->getTracker()->processCompletedTokens(null, $this->session->user_id); $filter = $this->getCachedRequestData(true); $orgId = array_key_exists('gto_id_organization', $filter) ? $filter['gto_id_organization'] : null; - $this->loader->getTracker()->processCompletedTokensBatch(null, $this->session->user_id, $orgId); + $this->loader->getTracker()->processCompletedTokens(null, $this->session->user_id, $orgId); parent::indexAction(); } Modified: trunk/library/classes/Gems/Default/TrackMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-06-11 12:55:54 UTC (rev 752) @@ -154,7 +154,7 @@ */ public function checkAllAction() { - $batch = $this->loader->getTracker()->checkTrackRoundsBatch('trackCheckRoundsAll', $this->loader->getCurrentUser()->getUserId()); + $batch = $this->loader->getTracker()->checkTrackRounds('trackCheckRoundsAll', $this->loader->getCurrentUser()->getUserId()); $this->_helper->BatchRunner($batch, $this->_('Checking round assignments for all tracks.')); } @@ -166,7 +166,7 @@ $id = $this->_getIdParam(); $track = $this->loader->getTracker()->getTrackEngine($id); $where = $this->db->quoteInto('gr2t_id_track = ?', $id); - $batch = $this->loader->getTracker()->checkTrackRoundsBatch('trackCheckRounds' . $id, $this->loader->getCurrentUser()->getUserId(), $where); + $batch = $this->loader->getTracker()->checkTrackRounds('trackCheckRounds' . $id, $this->loader->getCurrentUser()->getUserId(), $where); $title = sprintf($this->_("Checking round assignments for track '%s'."), $track->getTrackName()); $this->_helper->BatchRunner($batch, $title); Modified: trunk/library/classes/Gems/Menu/MenuAbstract.php =================================================================== --- trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-06-11 12:55:54 UTC (rev 752) @@ -418,10 +418,10 @@ $page = $setup->addBrowsePage($this->_('Survey Sources'), 'pr.source', 'source'); $page->addAction($this->_('Check status'), null, 'ping')->addParameters(MUtil_Model::REQUEST_ID); $page->addAction($this->_('Synchronize surveys'), 'pr.source.synchronize', 'synchronize')->addParameters(MUtil_Model::REQUEST_ID); - $page->addAction($this->_('Check answers'), 'pr.source.check-answers', 'check')->addParameters(MUtil_Model::REQUEST_ID); + $page->addAction($this->_('Check is answered'), 'pr.source.check-answers', 'check')->addParameters(MUtil_Model::REQUEST_ID); $page->addAction($this->_('Check attributes'), 'pr.source.check-attributes', 'attributes')->addParameters(MUtil_Model::REQUEST_ID); $page->addAction($this->_('Synchronize all surveys'), 'pr.source.synchronize-all', 'synchronize-all'); - $page->addAction($this->_('Check all answers'), 'pr.source.check-answers-all', 'check-all'); + $page->addAction($this->_('Check all is answered'), 'pr.source.check-answers-all', 'check-all'); // SURVEY MAINTENANCE CONTROLLER $page = $setup->addPage($this->_('Surveys'), 'pr.survey-maintenance', 'survey-maintenance'); @@ -430,8 +430,8 @@ $page->addPdfButton($this->_('PDF'), 'pr.survey-maintenance') ->addParameters(MUtil_Model::REQUEST_ID) ->setParameterFilter('gsu_has_pdf', 1); - $page->addAction($this->_('Check answers'), 'pr.survey-maintenance.check', 'check')->addParameters(MUtil_Model::REQUEST_ID); - $page->addAction($this->_('Check all answers'), 'pr.survey-maintenance.check-all', 'check-all'); + $page->addAction($this->_('Check is answered'), 'pr.survey-maintenance.check', 'check')->addParameters(MUtil_Model::REQUEST_ID); + $page->addAction($this->_('Check all is answered'), 'pr.survey-maintenance.check-all', 'check-all'); $page->addAutofilterAction(); Modified: trunk/library/classes/Gems/Task/Tracker/CheckTrackRounds.php =================================================================== --- trunk/library/classes/Gems/Task/Tracker/CheckTrackRounds.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Task/Tracker/CheckTrackRounds.php 2012-06-11 12:55:54 UTC (rev 752) @@ -60,6 +60,5 @@ $engine = $respTrack->getTrackEngine(); $engine->checkRoundsFor($respTrack, $userId, $this->_batch); - $this->_batch->addToCounter('checkedRespondentTracks'); } } \ No newline at end of file Modified: trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2012-06-11 12:55:54 UTC (rev 752) @@ -410,20 +410,25 @@ public function checkRoundsFor(Gems_Tracker_RespondentTrack $respTrack, $userId, Gems_Task_TaskRunnerBatch $batch) { //Step one: update existing tokens - $batch->addToCounter('roundChangeUpdates', $this->checkExistingRoundsFor($respTrack, $userId)); + $i = $batch->addToCounter('roundChangeUpdates', $this->checkExistingRoundsFor($respTrack, $userId)); + $batch->setMessage('roundChangeUpdates', sprintf($this->_('Round changes propagated to %d tokens.'), $i)); //Step two: deactivate inactive rounds - $batch->addToCounter('deletedTokens', $this->removeInactiveRounds($respTrack, $userId)); + $i = $batch->addToCounter('deletedTokens', $this->removeInactiveRounds($respTrack, $userId)); + $batch->setMessage('deletedTokens', sprintf($this->_('%d tokens deleted by round changes.'), $i)); // Step three: create lacking tokens - $batch->addToCounter('createdTokens', $this->addNewTokens($respTrack, $userId)); + $i = $batch->addToCounter('createdTokens', $this->addNewTokens($respTrack, $userId)); + $batch->setMessage('createdTokens', sprintf($this->_('%d tokens created to by round changes.'), $i)); // Step four: set the dates and times $changed = $this->checkTokensFromStart($respTrack, $userId); - if ($changed) { - $batch->addToCounter('tokenDateCauses'); - $batch->addToCounter('tokenDateChanges', $changed); - } + $ica = $batch->addToCounter('tokenDateCauses', $changed ? 1 : 0); + $ich = $batch->addToCounter('tokenDateChanges', $changed); + $batch->setMessage('tokenDateChanges', sprintf($this->_('%2$d token date changes in %1$d tracks.'), $ica, $ich)); + + $i = $batch->addToCounter('checkedRespondentTracks'); + $batch->setMessage('checkedRespondentTracks', sprintf($this->_('Checked %d tracks.'), $i)); } /** Modified: trunk/library/classes/Gems/Tracker/TrackerInterface.php =================================================================== --- trunk/library/classes/Gems/Tracker/TrackerInterface.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Tracker/TrackerInterface.php 2012-06-11 12:55:54 UTC (rev 752) @@ -53,8 +53,8 @@ * how tokens are created and checked), TokenSelect (Gems_Tracker_Token_TokenSelect * extension) and TokenValidator. * - * Other functions are general utility functions, e.g. checkTrackRoundsBatch(), createToken(), - * processCompletedTokensBatch() and recalculateTokensBatch(). + * Other functions are general utility functions, e.g. checkTrackRounds(), createToken(), + * processCompletedTokens() and recalculateTokens(). * * @package Gems * @subpackage Tracker @@ -75,7 +75,7 @@ * @param string $cond Optional where statement for selecting tracks * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function checkTrackRoundsBatch($batchId, $userId = null, $cond = null); + public function checkTrackRounds($batchId, $userId = null, $cond = null); /** * Create a new track for a patient @@ -283,9 +283,10 @@ * * @param int $respondentId Id of the respondent to check for or NULL * @param int $userId Id of the user who takes the action (for logging) + * @param int $orgId Optional Id of the organization to check for * @return bool Did we find new answers? */ - public function processCompletedTokens($respondentId, $userId = null); + public function processCompletedTokens($respondentId, $userId = null, $orgId = null); /** * Recalculates all token dates, timing and results @@ -297,7 +298,7 @@ * @param int $userId Id of the user who takes the action (for logging) * @return Gems_Tracker_Batch_SynchronizeSourcesBatch A batch to process the synchronization */ - public function synchronizeSourcesBatch($sourceId = null, $userId = null); + public function synchronizeSources($sourceId = null, $userId = null); /** * Recalculates all token dates, timing and results @@ -310,7 +311,7 @@ * @param string $cond * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function recalculateTokensBatch($batch_id, $userId = null, $cond = null); + public function recalculateTokens($batch_id, $userId = null, $cond = null); /** * Refreshes the tokens in the source @@ -319,5 +320,5 @@ * @param string $cond An optional where statement * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function refreshTokenAttributesBatch($batch_id, $cond = null); + public function refreshTokenAttributes($batch_id, $cond = null); } Modified: trunk/library/classes/Gems/Tracker.php =================================================================== --- trunk/library/classes/Gems/Tracker.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Tracker.php 2012-06-11 12:55:54 UTC (rev 752) @@ -47,8 +47,8 @@ * how tokens are created and checked), TokenSelect (Gems_Tracker_Token_TokenSelect * extension) and TokenValidator. * - * Other functions are general utility functions, e.g. checkTrackRoundsBatch(), createToken(), - * processCompletedTokensBatch() and recalculateTokensBatch(). + * Other functions are general utility functions, e.g. checkTrackRounds(), createToken(), + * processCompletedTokens() and recalculateTokens(). * * @package Gems * @subpackage Tracker @@ -199,7 +199,7 @@ * @param string $cond Optional where statement for selecting tracks * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function checkTrackRoundsBatch($batchId, $userId = null, $cond = null) + public function checkTrackRounds($batchId, $userId = null, $cond = null) { $userId = $this->_checkUserId($userId); $respTrackSelect = $this->db->select(); @@ -754,33 +754,11 @@ * * @param int $respondentId Id of the respondent to check for or NULL * @param int $userId Id of the user who takes the action (for logging) + * @param int $orgId Optional Id of the organization to check for * @return bool Did we find new answers? */ - public function processCompletedTokens($respondentId, $userId = null) + public function processCompletedTokens($respondentId, $userId = null, $orgId = null) { - return $this->processCompletedTokensBatch($respondentId, $userId, null); - - /*$userId = $this->_checkUserId($userId); - $tokenSelect = $this->getTokenSelect(true) - ->onlyActive() - ->forRespondent($respondentId) - ->andReceptionCodes() - ->order('gto_round_order DESC'); - - $changes = $this->processTokens($tokenSelect, $userId); - - if (self::$verbose) { - if ($t = Zend_Registry::get('Zend_Translate')) { - MUtil_Echo::r($changes->getMessages($t), $t->_('Checks performed')); - } - } - - return $changes->hasChanged(); - */ - } - - public function processCompletedTokensBatch($respondentId, $userId = null, $orgId = null) - { $userId = $this->_checkUserId($userId); $tokenSelect = $this->getTokenSelect(); $tokenSelect->onlyActive() @@ -788,7 +766,7 @@ ->andSurveys(array()) ->forWhere('gsu_surveyor_active = 1'); - if (!is_null($orgId)) { + if (null !== $orgId) { $tokenSelect->forWhere('gto_id_organization = ?', $orgId); } @@ -824,70 +802,6 @@ * * Does not reflect changes to tracks or rounds. * - * @param Gems_Tracker_Token_TokenSelect Select statements selecting tokens - * @param int $userId Id of the user who takes the action (for logging) - * @return Gems_Tracker_ChangeTracker What changes have taken places - */ - protected function processTokens(Gems_Tracker_Token_TokenSelect $tokenSelect, $userId) - { - $tokenRows = $tokenSelect->fetchAll(); - $changes = new Gems_Tracker_ChangeTracker(); - $tokens = array(); - - // FIRST: process each individual token - foreach ($tokenRows as $tokenData) { - - $changes->checkedTokens++; - $token = $this->getToken($tokenData); - $tokens[] = $token; - - if ($result = $token->checkTokenCompletion($userId)) { - if ($result & Gems_Tracker_Token::COMPLETION_DATACHANGE) { - $changes->resultDataChanges++; - } - if ($result & Gems_Tracker_Token::COMPLETION_EVENTCHANGE) { - $changes->surveyCompletionChanges++; - } - } - } - - $respTracks = array(); - - // SECOND: Process the completed rounds (all tokens now have any new values from answered surveys) - foreach ($tokens as $token) { - if ($token->isCompleted()) { - $respTrack = $token->getRespondentTrack(); - $respTracks[$respTrack->getRespondentTrackId()] = $respTrack; - - if ($result = $respTrack->handleRoundCompletion($token, $userId)) { - $changes->roundCompletionCauses++; - $changes->roundCompletionChanges += $result; - } - } - } - - if ($respTracks) { - // THIRD: Process date changes - foreach ($respTracks as $respTrackId => $respTrack) { - if ($result = $respTrack->checkTrackTokens($userId)) { - $changes->tokenDateCauses++; - $changes->tokenDateChanges += $result; - } - } - } - - return $changes; - } - - /** - * Checks the token table to see if there are any answered surveys to be processed - * - * If the survey was started (and the token was forwarded to limesurvey) we need to check - * if is was completed. If so, we might want to check the track the survey is in to enable - * or disable future rounds - * - * Does not reflect changes to tracks or rounds. - * * @param string $batch_id A unique identifier for the current batch * @param Gems_Tracker_Token_TokenSelect Select statements selecting tokens * @param int $userId Id of the user who takes the action (for logging) @@ -924,7 +838,7 @@ * @param int $userId Id of the user who takes the action (for logging) * @return Gems_Tracker_Batch_SynchronizeSourcesBatch A batch to process the synchronization */ - public function synchronizeSourcesBatch($sourceId = null, $userId = null) + public function synchronizeSources($sourceId = null, $userId = null) { $batch_id = 'source_synch' . ($sourceId ? '_' . $sourceId : ''); $batch = $this->loader->getTaskRunnerBatch($batch_id); @@ -959,7 +873,7 @@ * @param string $cond * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function recalculateTokensBatch($batch_id, $userId = null, $cond = null) + public function recalculateTokens($batch_id, $userId = null, $cond = null) { $userId = $this->_checkUserId($userId); $tokenSelect = $this->getTokenSelect(array('gto_id_token')); @@ -985,7 +899,7 @@ * @param string $cond An optional where statement * @return Gems_Task_TaskRunnerBatch A batch to process the changes */ - public function refreshTokenAttributesBatch($batch_id, $cond = null) + public function refreshTokenAttributes($batch_id, $cond = null) { $batch = $this->loader->getTaskRunnerBatch($batch_id); Modified: trunk/library/classes/Gems/Versions.php =================================================================== --- trunk/library/classes/Gems/Versions.php 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/Gems/Versions.php 2012-06-11 12:55:54 UTC (rev 752) @@ -59,7 +59,7 @@ * This means that future patches for the current level * will be loaded, but that previous patches are ignored. */ - return 47; + return 48; } /** @@ -69,7 +69,7 @@ */ public final function getGemsVersion() { - return '1.5.4'; + return '1.5.5'; } /** Modified: trunk/library/classes/MUtil/Batch/BatchPull.js =================================================================== --- trunk/library/classes/MUtil/Batch/BatchPull.js 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/classes/MUtil/Batch/BatchPull.js 2012-06-11 12:55:54 UTC (rev 752) @@ -33,8 +33,8 @@ }, error: function (request, status, error) { - alert('Communication error: ' + status); - this.progressTarget.after('<p>' + request.responseText + '</p>'); + // alert('Communication error: ' + status); + this.progressTarget.after('<h3>Communication error</h3><p><strong>' + status + '</strong><br/>' + request.responseText + '</p>'); // console.log(request); }, Modified: trunk/library/configs/db/tables/gems__patch_levels.10.sql =================================================================== --- trunk/library/configs/db/tables/gems__patch_levels.10.sql 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/configs/db/tables/gems__patch_levels.10.sql 2012-06-11 12:55:54 UTC (rev 752) @@ -11,5 +11,4 @@ INSERT INTO gems__patch_levels (gpl_level, gpl_created) VALUES - (47, CURRENT_TIMESTAMP); - + (48, CURRENT_TIMESTAMP); Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/languages/default-en.po 2012-06-11 12:55:54 UTC (rev 752) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-05-31 16:28+0100\n" +"POT-Creation-Date: 2012-06-11 14:50+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -99,31 +99,31 @@ msgid "Database needs to be updated!" msgstr "Database needs to be updated!" -#: classes/Gems/Html.php:154 +#: classes/Gems/Html.php:155 msgid "<< First" msgstr "<< First" -#: classes/Gems/Html.php:155 +#: classes/Gems/Html.php:156 msgid "< Previous" msgstr "< Previous" -#: classes/Gems/Html.php:156 +#: classes/Gems/Html.php:157 msgid "Next >" msgstr "Next >" -#: classes/Gems/Html.php:157 +#: classes/Gems/Html.php:158 msgid "Last >>" msgstr "Last >>" -#: classes/Gems/Html.php:158 +#: classes/Gems/Html.php:159 msgid " | " msgstr " | " -#: classes/Gems/Html.php:162 +#: classes/Gems/Html.php:163 msgid "to" msgstr "to" -#: classes/Gems/Html.php:163 +#: classes/Gems/Html.php:164 msgid "of" msgstr "of" @@ -269,6 +269,10 @@ msgid "Token" msgstr "Token" +#: classes/Gems/Menu.php:280 +msgid "Export" +msgstr "Export" + #: classes/Gems/Menu.php:285 msgid "Track" msgstr "Track" @@ -344,6 +348,10 @@ msgid "Track Builder" msgstr "Track Builder" +#: classes/Gems/Menu.php:561 +msgid "Export respondent" +msgstr "Export respondent" + #: classes/Gems/Menu.php:567 msgid "Contact" msgstr "Contact" @@ -423,7 +431,7 @@ msgid " The error message is: %s" msgstr " The error message is: %s" -#: classes/Gems/Upgrades.php:77 +#: classes/Gems/Upgrades.php:79 msgid "Syncing surveys for all sources" msgstr "Syncing surveys for all sources" @@ -441,94 +449,94 @@ msgid "Trying upgrade for %s to level %s: %s" msgstr "Trying upgrade for %s to level %s: %s" -#: classes/Gems/Controller/BrowseEditAction.php:354 +#: classes/Gems/Controller/BrowseEditAction.php:355 #, php-format msgid "New %s..." msgstr "New %s..." -#: classes/Gems/Controller/BrowseEditAction.php:387 +#: classes/Gems/Controller/BrowseEditAction.php:388 #, php-format msgid "Delete %s" msgstr "Delete %s" -#: classes/Gems/Controller/BrowseEditAction.php:391 +#: classes/Gems/Controller/BrowseEditAction.php:392 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s deleted" -#: classes/Gems/Controller/BrowseEditAction.php:408 +#: classes/Gems/Controller/BrowseEditAction.php:409 #, php-format msgid "Edit %s %s" msgstr "Edit %s %s" -#: classes/Gems/Controller/BrowseEditAction.php:410 +#: classes/Gems/Controller/BrowseEditAction.php:411 #, php-format msgid "Edit %s" msgstr "Edit %s" -#: classes/Gems/Controller/BrowseEditAction.php:508 +#: classes/Gems/Controller/BrowseEditAction.php:509 msgid "Free search text" msgstr "Free search text" -#: classes/Gems/Controller/BrowseEditAction.php:579 +#: classes/Gems/Controller/BrowseEditAction.php:580 msgid "Search" msgstr "Search" -#: classes/Gems/Controller/BrowseEditAction.php:595 +#: classes/Gems/Controller/BrowseEditAction.php:596 #, php-format msgid "No %s found" msgstr "No %s found" -#: classes/Gems/Controller/BrowseEditAction.php:679 +#: classes/Gems/Controller/BrowseEditAction.php:680 #, php-format msgid "No %s found." msgstr "No %s found." -#: classes/Gems/Controller/BrowseEditAction.php:797 +#: classes/Gems/Controller/BrowseEditAction.php:798 msgid "Are you sure?" msgstr "Are you sure?" -#: classes/Gems/Controller/BrowseEditAction.php:813 +#: classes/Gems/Controller/BrowseEditAction.php:814 msgid "Yes" msgstr "Yes" -#: classes/Gems/Controller/BrowseEditAction.php:814 +#: classes/Gems/Controller/BrowseEditAction.php:815 msgid "No" msgstr "No" -#: classes/Gems/Controller/BrowseEditAction.php:867 +#: classes/Gems/Controller/BrowseEditAction.php:868 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" -#: classes/Gems/Controller/BrowseEditAction.php:890 +#: classes/Gems/Controller/BrowseEditAction.php:891 #, php-format msgid "New %1$s..." msgstr "New %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:898 +#: classes/Gems/Controller/BrowseEditAction.php:899 msgid "Save" msgstr "Save" -#: classes/Gems/Controller/BrowseEditAction.php:934 +#: classes/Gems/Controller/BrowseEditAction.php:935 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" -#: classes/Gems/Controller/BrowseEditAction.php:937 +#: classes/Gems/Controller/BrowseEditAction.php:938 msgid "No changes to save." msgstr "No changes to save." -#: classes/Gems/Controller/BrowseEditAction.php:946 +#: classes/Gems/Controller/BrowseEditAction.php:947 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" -#: classes/Gems/Controller/BrowseEditAction.php:974 +#: classes/Gems/Controller/BrowseEditAction.php:975 #, php-format msgid "Show %s" msgstr "Show %s" -#: classes/Gems/Controller/BrowseEditAction.php:981 +#: classes/Gems/Controller/BrowseEditAction.php:982 #, php-format msgid "Unknown %s." msgstr "Unknown %s." @@ -1908,78 +1916,93 @@ msgstr "Patient number" #: classes/Gems/Default/RespondentExportAction.php:78 +msgid "Separate multiple respondents with a comma (,)" +msgstr "Separate multiple respondents with a comma (,)" + +#: classes/Gems/Default/RespondentExportAction.php:84 msgid "Group surveys" msgstr "Group surveys" -#: classes/Gems/Default/RespondentExportAction.php:87 +#: classes/Gems/Default/RespondentExportAction.php:89 msgid "Output format" msgstr "Output format" -#: classes/Gems/Default/RespondentExportAction.php:92 -msgid "Export" -msgstr "Export" - -#: classes/Gems/Default/RespondentExportAction.php:124 +#: classes/Gems/Default/RespondentExportAction.php:131 #, php-format msgid "Unable to run PDF conversion: \"%s\"" msgstr "Unable to run PDF conversion: \"%s\"" -#: classes/Gems/Default/RespondentExportAction.php:149 +#: classes/Gems/Default/RespondentExportAction.php:169 msgid "Round" msgstr "Round" -#: classes/Gems/Default/RespondentExportAction.php:151 +#: classes/Gems/Default/RespondentExportAction.php:180 +msgid "Open" +msgstr "Open" + +#: classes/Gems/Default/RespondentExportAction.php:183 msgid "Completed" msgstr "Completed" -#: classes/Gems/Default/RespondentExportAction.php:156 +#: classes/Gems/Default/RespondentExportAction.php:189 +msgid "Missed" +msgstr "Missed" + +#: classes/Gems/Default/RespondentExportAction.php:191 +#: classes/Gems/Default/RespondentExportAction.php:193 +msgid "Future" +msgstr "Future" + +#: classes/Gems/Default/RespondentExportAction.php:198 msgid "Single Survey" msgstr "Single Survey" -#: classes/Gems/Default/RespondentExportAction.php:197 +#: classes/Gems/Default/RespondentExportAction.php:244 msgid "Enter the particulars concerning the assignment to this respondent." msgstr "Enter the particulars concerning the assignment to this patient." -#: classes/Gems/Default/RespondentExportAction.php:198 +#: classes/Gems/Default/RespondentExportAction.php:245 msgid "Assigned by" msgstr "Assigned by" -#: classes/Gems/Default/RespondentExportAction.php:199 +#: classes/Gems/Default/RespondentExportAction.php:246 msgid "Start" msgstr "Start" -#: classes/Gems/Default/RespondentExportAction.php:203 +#: classes/Gems/Default/RespondentExportAction.php:250 msgid "Comment" msgstr "Comment" -#: classes/Gems/Default/RespondentExportAction.php:211 +#: classes/Gems/Default/RespondentExportAction.php:258 msgid "Track information" msgstr "Track information" -#: classes/Gems/Default/RespondentExportAction.php:255 +#: classes/Gems/Default/RespondentExportAction.php:296 +#, php-format +msgid "Unknown respondent %s" +msgstr "Unknown respondent %s" + +#: classes/Gems/Default/RespondentExportAction.php:302 +#: classes/Gems/Default/RespondentExportAction.php:310 msgid "Respondent information" msgstr "Patient information" -#: classes/Gems/Default/RespondentExportAction.php:282 +#: classes/Gems/Default/RespondentExportAction.php:330 msgid "Respondent report" msgstr "Respondent report" -#: classes/Gems/Default/RespondentExportAction.php:286 +#: classes/Gems/Default/RespondentExportAction.php:334 msgid "Report information" msgstr "Report information" -#: classes/Gems/Default/RespondentExportAction.php:287 +#: classes/Gems/Default/RespondentExportAction.php:335 msgid "Generated by" msgstr "Generated by" -#: classes/Gems/Default/RespondentExportAction.php:289 +#: classes/Gems/Default/RespondentExportAction.php:337 msgid "Generated on" msgstr "Generated on" -#: classes/Gems/Default/RespondentExportAction.php:330 -msgid "Export respondent" -msgstr "Export respondent" - #: classes/Gems/Default/RespondentPlanAction.php:67 msgid "Show respondent" msgstr "Show patient" @@ -2146,6 +2169,10 @@ msgid "Synchronize all sources." msgstr "Synchronize all sources." +#: classes/Gems/Default/StaffAction.php:122 +msgid "reset" +msgstr "reset" + #: classes/Gems/Default/StaffAction.php:164 msgid "Unsupported User Definition" msgstr "Unsupported User Definition" @@ -2167,34 +2194,34 @@ msgid "User with id %s already exists but is deleted, do you want to reactivate the account?" msgstr "User with id %s already exists but is deleted, do you want to reactivate the account?" -#: classes/Gems/Default/StaffAction.php:309 +#: classes/Gems/Default/StaffAction.php:327 msgid "Username" msgstr "Username" -#: classes/Gems/Default/StaffAction.php:324 +#: classes/Gems/Default/StaffAction.php:342 msgid "Primary function" msgstr "Primary function" -#: classes/Gems/Default/StaffAction.php:334 +#: classes/Gems/Default/StaffAction.php:352 msgid "Can login" msgstr "Can login" -#: classes/Gems/Default/StaffAction.php:335 +#: classes/Gems/Default/StaffAction.php:353 msgid "Logout on survey" msgstr "Logout on survey" -#: classes/Gems/Default/StaffAction.php:410 +#: classes/Gems/Default/StaffAction.php:465 msgid "staff member" msgid_plural "staff members" msgstr[0] "staff member" msgstr[1] "staff members" -#: classes/Gems/Default/StaffAction.php:442 +#: classes/Gems/Default/StaffAction.php:494 #, php-format msgid "Reset password for: %s" msgstr "Reset password for: %s" -#: classes/Gems/Default/StaffAction.php:445 +#: classes/Gems/Default/StaffAction.php:497 msgid "You are not allowed to change this password." msgstr "You are not allowed to change this password." @@ -2421,10 +2448,6 @@ msgid "Answered" msgstr "Answered" -#: classes/Gems/Default/TokenPlanAction.php:327 -msgid "Missed" -msgstr "Missed" - #: classes/Gems/Default/TokenPlanAction.php:341 msgid "(all fillers)" msgstr "(all fillers)" @@ -2579,12 +2602,12 @@ msgstr "Code Name" #: classes/Gems/Default/TrackFieldsAction.php:121 -#: classes/Gems/Default/TrackMaintenanceAction.php:224 +#: classes/Gems/Default/TrackMaintenanceAction.php:206 msgid "Values" msgstr "Values" #: classes/Gems/Default/TrackFieldsAction.php:123 -#: classes/Gems/Default/TrackMaintenanceAction.php:226 +#: classes/Gems/Default/TrackMaintenanceAction.php:208 msgid "Required" msgstr "Required" @@ -2602,31 +2625,24 @@ msgid "Fields" msgstr "Fields" -#: classes/Gems/Default/TrackMaintenanceAction.php:162 -msgid "This may take a while!" -msgstr "This may take a while!" +#: classes/Gems/Default/TrackMaintenanceAction.php:158 +msgid "Checking round assignments for all tracks." +msgstr "Checking round assignments for all tracks." -#: classes/Gems/Default/TrackMaintenanceAction.php:163 -msgid "Check all tracks" -msgstr "Check all tracks" +#: classes/Gems/Default/TrackMaintenanceAction.php:171 +#, php-format +msgid "Checking round assignments for track '%s'." +msgstr "Checking round assignments for track '%s'." -#: classes/Gems/Default/TrackMaintenanceAction.php:164 -msgid "Checking all tracks will update all existing rounds to the current surveys in the tracks instead of those in use when the track was created." -msgstr "Checking all tracks will update all existing rounds to the current surveys in the tracks instead of those in use when the track was created." - -#: classes/Gems/Default/TrackMaintenanceAction.php:165 -msgid "Completed tracks will not be changed. No new tokens will be created when later tokens were completed." -msgstr "Completed tracks will not be changed. No new tokens will be created when later tokens were completed." - -#: classes/Gems/Default/TrackMaintenanceAction.php:279 +#: classes/Gems/Default/TrackMaintenanceAction.php:261 msgid "fields" msgstr "fields" -#: classes/Gems/Default/TrackMaintenanceAction.php:280 +#: classes/Gems/Default/TrackMaintenanceAction.php:262 msgid "rounds" msgstr "rounds" -#: classes/Gems/Default/TrackMaintenanceAction.php:306 +#: classes/Gems/Default/TrackMaintenanceAction.php:288 #, php-format msgid "%s in track" msgstr "%s in track" @@ -2884,8 +2900,8 @@ #: classes/Gems/Menu/MenuAbstract.php:421 #: classes/Gems/Menu/MenuAbstract.php:433 -msgid "Check answers" -msgstr "Check answers" +msgid "Check is answered" +msgstr "Check is answered" #: classes/Gems/Menu/MenuAbstract.php:422 msgid "Check attributes" @@ -2897,8 +2913,8 @@ #: classes/Gems/Menu/MenuAbstract.php:424 #: classes/Gems/Menu/MenuAbstract.php:434 -msgid "Check all answers" -msgstr "Check all answers" +msgid "Check all is answered" +msgstr "Check all is answered" #: classes/Gems/Menu/MenuAbstract.php:430 msgid "PDF" @@ -3182,6 +3198,7 @@ msgstr "%d sources checked." #: classes/Gems/Tracker/Engine/AnyStepEngine.php:95 +#: classes/Gems/Tracker/Engine/NextStepEngine.php:92 msgid "This round" msgstr "This round" @@ -3302,32 +3319,32 @@ msgid "Use a track level date." msgstr "Use a track level date." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:445 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:443 #, php-format msgid "%s track engines cannot be converted to %s track engines." msgstr "%s track engines cannot be converted to %s track engines." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:688 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:686 #, php-format msgid "%d: %s - %s" msgstr "%d: %s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:691 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:694 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:689 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:692 #, php-format msgid "%d: %s" msgstr "%d: %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:697 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:695 #, php-format msgid "%s - %s" msgstr "%s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:737 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:735 msgid "Icon" msgstr "Icon" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:740 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:738 msgid "After change" msgstr "After change" @@ -3717,33 +3734,33 @@ msgid "Shared secret" msgstr "Shared secret" -#: classes/Gems/User/User.php:392 +#: classes/Gems/User/User.php:395 #, php-format msgid "Your account is temporarily blocked, please wait a minute." msgid_plural "Your account is temporarily blocked, please wait %d minutes." msgstr[0] "Your account is temporarily blocked, please wait a minute." msgstr[1] "Your account is temporarily blocked, please wait %d minutes." -#: classes/Gems/User/User.php:431 -#: classes/Gems/User/User.php:458 +#: classes/Gems/User/User.php:434 +#: classes/Gems/User/User.php:461 msgid "You are not allowed to login from this location." msgstr "You are not allowed to login from this location." -#: classes/Gems/User/User.php:1123 +#: classes/Gems/User/User.php:1140 msgid "Your birthday" msgstr "Your birthday" -#: classes/Gems/User/User.php:1139 +#: classes/Gems/User/User.php:1156 #: classes/Gems/User/Form/ChangePasswordForm.php:163 #, php-format msgid "%s is not correct." msgstr "%s is not correct." -#: classes/Gems/User/User.php:1221 +#: classes/Gems/User/User.php:1238 msgid "Trying to send a password reset to a user that cannot be reset." msgstr "Trying to send a password reset to a user that cannot be reset." -#: classes/Gems/User/User.php:1249 +#: classes/Gems/User/User.php:1266 msgid "Unable to send e-mail." msgstr "Unable to send e-mail." @@ -3997,7 +4014,7 @@ msgstr "Value is required and can't be empty" #: languages/FakeTranslations.php:41 -#: languages/FakeTranslations.php:81 +#: languages/FakeTranslations.php:82 msgid "Invalid type given, value should be string, integer or float" msgstr "Invalid type given, value should be string, integer or float" @@ -4015,72 +4032,76 @@ msgid "Date should be '%dateAfter%' or later." msgstr "Date should be '%dateAfter%' or later." -#: languages/FakeTranslations.php:53 +#: languages/FakeTranslations.php:51 +msgid "Should be empty if valid from date is not set." +msgstr "Should be empty if valid from date is not set." + +#: languages/FakeTranslations.php:54 #, php-format msgid "Date should be '%dateBefore%' or earlier." msgstr "Date should be '%dateBefore%' or earlier." -#: languages/FakeTranslations.php:56 +#: languages/FakeTranslations.php:57 msgid "%value% is not a valid date." msgstr "%value% is not a valid date." -#: languages/FakeTranslations.php:59 +#: languages/FakeTranslations.php:60 msgid "No record matching %value% was found." msgstr "No record matching %value% was found." -#: languages/FakeTranslations.php:60 +#: languages/FakeTranslations.php:61 msgid "A duplicate record matching '%value%' was found." msgstr "A duplicate record matching '%value%' was found." -#: languages/FakeTranslations.php:63 +#: languages/FakeTranslations.php:64 msgid "This is not a valid %testDescription%." msgstr "This is not a valid %testDescription%." -#: languages/FakeTranslations.php:64 +#: languages/FakeTranslations.php:65 msgid "A %testDescription% cannot contain letters." msgstr "A %testDescription% cannot contain letters." -#: languages/FakeTranslations.php:65 +#: languages/FakeTranslations.php:66 msgid "%value% is too long for a %testDescription%. Should be %length% digits." msgstr "%value% is too long for a %testDescription%. Should be %length% digits." -#: languages/FakeTranslations.php:66 +#: languages/FakeTranslations.php:67 msgid "%value% is too short for a %testDescription%. Should be %length% digits." msgstr "%value% is too short for a %testDescription%. Should be %length% digits." -#: languages/FakeTranslations.php:72 +#: languages/FakeTranslations.php:73 msgid "'%value%' is not a phone number (e.g. +12 (0)34-567 890)." msgstr "'%value%' is not a phone number (e.g. +12 (0)34-567 890)." -#: languages/FakeTranslations.php:75 +#: languages/FakeTranslations.php:76 msgid "Unsupported PDF version %value% - only versions 1.0 - 1.4 are supported." msgstr "Unsupported PDF version %value% - only versions 1.0 - 1.4 are supported." -#: languages/FakeTranslations.php:78 +#: languages/FakeTranslations.php:79 msgid "To set '%description%' you have to set '%fieldDescription%'." msgstr "To set '%description%' you have to set '%fieldDescription%'." -#: languages/FakeTranslations.php:82 +#: languages/FakeTranslations.php:83 msgid "'%value%' is not an email address (e.g. na...@so...)." msgstr "'%value%' is not an email address (e.g. na...@so...)." -#: languages/FakeTranslations.php:85 +#: languages/FakeTranslations.php:86 msgid "'%value%' is not a series of email addresses (e.g. na...@so..., no...@no...)." msgstr "'%value%' is not a series of email addresses (e.g. na...@so..., no...@no...)." -#: languages/FakeTranslations.php:88 +#: languages/FakeTranslations.php:89 msgid "'%value%' must contain only digits" msgstr "'%value%' must contain only digits" -#: languages/FakeTranslations.php:89 +#: languages/FakeTranslations.php:90 msgid "'%value%' is an empty string" msgstr "'%value%' is an empty string" -#: languages/FakeTranslations.php:90 +#: languages/FakeTranslations.php:91 msgid "Invalid type given. String, integer or float expected" msgstr "Invalid type given. String, integer or float expected" -#: languages/FakeTranslations.php:93 +#: languages/FakeTranslations.php:94 msgid "One or more IPs are illegal." msgstr "One or more IPs are illegal." @@ -4340,6 +4361,29 @@ msgstr[0] "After this survey there is one other survey we would like you to answer." msgstr[1] "After this survey there are another %d surveys we would like you to answer." +#~ msgid "Check all is answersed" +#~ msgstr "Check all is answersed" + +#~ msgid "This may take a while!" +#~ msgstr "This may take a while!" + +#~ msgid "Check all tracks" +#~ msgstr "Check all tracks" + +#~ msgid "" +#~ "Checking all tracks will update all existing rounds to the current " +#~ "surveys in the tracks instead of those in use when the track was created." +#~ msgstr "" +#~ "Checking all tracks will update all existing rounds to the current " +#~ "surveys in the tracks instead of those in use when the track was created." + +#~ msgid "" +#~ "Completed tracks will not be changed. No new tokens will be created when " +#~ "later tokens were completed." +#~ msgstr "" +#~ "Completed tracks will not be changed. No new tokens will be created when " +#~ "later tokens were completed." + #~ msgid "The Pulse software was made possible thanks to support from " #~ msgstr "The Pulse software was made possible thanks to support from " Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-06-11 09:36:00 UTC (rev 751) +++ trunk/library/languages/default-nl.po 2012-06-11 12:55:54 UTC (rev 752) @@ -1,5099 +1,5129 @@ -msgid "" -msgstr "" -"Project-Id-Version: GemsTracker NL\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-11 11:34+0100\n" -"PO-Revision-Date: \n" -"Last-Translator: Michiel Rook <in...@to...>\n" -"Language-Team: Erasmus MGZ <mat...@ma...>\n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: Dutch\n" -"X-Poedit-Country: NETHERLANDS\n" -"X-Poedit-SourceCharset: iso-8859-1\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-KeywordsList: plural:1,2\n" -"X-Poedit-SearchPath-0: .\n" - -#: classes/GemsEscort.php:214 -#, php-format -msgid "Path %s not writable" -msgstr "Path %s niet schrijfbaar" - -#: classes/GemsEscort.php:756 -#, php-format -msgid "You are logged in as %s" -msgstr "Ingelogd als %s" - -#: classes/GemsEscort.php:758 -msgid "Logoff" -msgstr "Uitloggen" - -#: classes/GemsEscort.php:761 -msgid "You are not logged in" -msgstr "U bent niet ingelogd" - -#: classes/GemsEscort.php:945 -#, php-format -msgid "User: %s" -msgstr "Login: %s" - -#: classes/GemsEscort.php:970 -msgid "version" -msgstr "versie" - -#: classes/GemsEscort.php:1412 -msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." - -#: classes/GemsEscort.php:1543 -msgid "Please check back later." -msgstr "Probeer het later opnieuw." - -#: classes/GemsEscort.php:1545 -#: classes/GemsEscort.php:1550 -msgid "System is in maintenance mode" -msgstr "Systeem is in onderhoudsmodus" - -#: classes/GemsEscort.php:1560 -msgid "No access to site." -msgstr "Geen toegang tot website." - -#: classes/GemsEscort.php:1562 -msgid "You have no access to this site." -msgstr "U heeft geen toegang tot deze website." - -#: classes/GemsEscort.php:1578 -msgid "No access to page" -msgstr "Geen toegang tot pagina" - -#: classes/GemsEscort.php:1580 -#, php-format -msgid "Access to this page is not allowed for current role: %s." -msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." - -#: classes/GemsEscort.php:1590 -msgid "You are no longer logged in." -msgstr "U bent niet meer ingelogd." - -#: classes/GemsEscort.php:1591 -msgid "You must login to access this page." -msgstr "U moet ingelogd zijn voor toegang tot deze pagina." - -#: classes/GemsEscort.php:1732 -#, php-format -msgid "%d survey" -msgid_plural "%d surveys" -msgstr[0] "%d vragenlijst" -msgstr[1] "%d vragenlijsten" - -#: classes/Gems/Pdf.php:198 -#, php-format -msgid "PDF Source File '%s' not found!" -msgstr "PDF bron bestand %s niet gevonden!" - -#: classes/Gems/Pdf.php:240 -#, php-format -msgid "Could not create '%s' directory." -msgstr "Kon de directory '%s' niet aanmaken." - -#: classes/Gems/Pdf.php:283 -#, php-format -msgid " The error message is: %s" -msgstr "De foutmelding is: %s" - -#: classes/Gems/Upgrades.php:79 -msgid "Syncing surveys for all sources" -msgstr "Vragenlijsten synchroniseren voor alle bronnen." - -#: classes/Gems/AccessLog.php:236 -msgid "Database needs to be updated!" -msgstr "Database dient ververst te worden!" - -#: classes/Gems/Html.php:155 -msgid "<< First" -msgstr "<< Eerste" - -#: classes/Gems/Html.php:156 -msgid "< Previous" -msgstr "< Terug" - -#: classes/Gems/Html.php:157 -msgid "Next >" -msgstr "Verder >" - -#: classes/Gems/Html.php:158 -msgid "Last >>" -msgstr "Laatste >>" - -#: classes/Gems/Html.php:159 -msgid " | " -msgstr " | " - -#: classes/Gems/Html.php:163 -msgid "to" -msgstr "tot" - -#: classes/Gems/Html.php:164 -msgid "of" -msgstr "van" - -#: classes/Gems/Menu.php:140 -#, php-format -msgid "About %s" -msgstr "Over %s" - -#: classes/Gems/Menu.php:144 -msgid "Reporting bugs" -msgstr "Meld een bug" - -#: classes/Gems/Menu.php:147 -msgid "Support" -msgstr "Ondersteuning" - -#: classes/Gems/Menu.php:167 -msgid "Project setup" -msgstr "Projectinfo" - -#: classes/Gems/Menu.php:170 -msgid "Database" -msgstr "Database" - -#: classes/Gems/Menu.php:174 -msgid "Content" -msgstr "Inhoud" - -#: classes/Gems/Menu.php:177 -msgid "Execute" -msgstr "Uitvoeren" - -#: classes/Gems/Menu.php:182 -msgid "Patches" -msgstr "Patches" - -#: classes/Gems/Menu.php:183 -msgid "Execute new" -msgstr "Nieuwe aanmaken" - -#: classes/Gems/Menu.php:185 -msgid "Refresh translateables" -msgstr "Ververs vertaalbaren" - -#: classes/Gems/Menu.php:187 -msgid "Run SQL" -msgstr "SQL uitvoeren" - -#: classes/Gems/Menu.php:190 -msgid "Reception codes" -msgstr "Ontvangst codes" - -#: classes/Gems/Menu.php:193 -msgid "Consents" -msgstr "Toestemmingen" - -#: classes/Gems/Menu.php:196 -msgid "Roles" -msgstr "Rollen" - -#: classes/Gems/Menu.php:197 -msgid "Assigned" -msgstr "Toegewezen" - -#: classes/Gems/Menu.php:198 -msgid "Privileges" -msgstr "Priviléges" - -#: classes/Gems/Menu.php:201 -msgid "Groups" -msgstr "Groepen" - -#: classes/Gems/Menu.php:204 -msgid "Organizations" -msgstr "Organisaties" - -#: classes/Gems/Menu.php:207 -msgid "Staff" -msgstr "Medewerkers" - -#: classes/Gems/Menu.php:210 -msgid "Logging" -msgstr "Logboek" - -#: classes/Gems/Menu.php:214 -msgid "Maintenance" -msgstr "Onderhoud" - -#: classes/Gems/Menu.php:219 -msgid "Upgrade" -msgstr "Upgrade" - -#: classes/Gems/Menu.php:220 -msgid "Show" -msgstr "Toon" - -#: classes/Gems/Menu.php:221 -msgid "Execute all" -msgstr "Alles uitvoeren" - -#: classes/Gems/Menu.php:222 -msgid "Execute this" -msgstr "Dit uitvoeren" - -#: classes/Gems/Menu.php:223 -msgid "Execute from here" -msgstr "Uitvoeren vanaf hier" - -#: classes/Gems/Menu.php:224 -msgid "Execute to here" -msgstr "Uitvoeren tot hier" - -#: classes/Gems/Menu.php:236 -#, php-format -msgid "Stand-alone privilige: %s" -msgstr "Zelfstandig privilege: %s" - -#: classes/Gems/Menu.php:243 -msgid "Logon" -msgstr "Login" - -#: classes/Gems/Menu.php:244 -msgid "Lost password" -msgstr "Wachtwoord vergeten" - -#: classes/Gems/Menu.php:245 -msgid "Your account" -msgstr "Uw account" - -#: classes/Gems/Menu.php:246 -msgid "Activity overview" -msgstr "Activiteiten overzicht" - -#: classes/Gems/Menu.php:247 -msgid "Change password" -msgstr "Uw wachtwoord" - -#: classes/Gems/Menu.php:248 -#: classes/Gems/Menu.php:324 -msgid "Token" -msgstr "Kenmerk" - -#: classes/Gems/Menu.php:280 -msgid "Export" -msgstr "Exporteer" - -#: classes/Gems/Menu.php:285 -msgid "Track" -msgstr "Traject" - -#: classes/Gems/Menu.php:292 -#: classes/Gems/Menu.php:343 -msgid "Add" -msgstr "Voeg toe" - -#: classes/Gems/Menu.php:296 -msgid "Preview" -msgstr "Preview" - -#: classes/Gems/Menu.php:303 -msgid "Tracks" -msgstr "Trajecten" - -#: classes/Gems/Menu.php:316 -msgid "Assignments" -msgstr "Toewijzingen" - -#: classes/Gems/Menu.php:328 -msgid "Edit" -msgstr "Wijzig" - -#: classes/Gems/Menu.php:332 -msgid "Delete" -msgstr "Verwijder" - -#: classes/Gems/Menu.php:337 -msgid "Surveys" -msgstr "Vragenlijsten" - -#: classes/Gems/Menu.php:369 -msgid "Fill in" -msgstr "Vul in" - -#: classes/Gems/Menu.php:372 -msgid "Print PDF" -msgstr "Print PDF" - -#: classes/Gems/Menu.php:375 -msgid "E-Mail now!" -msgstr "Email nu!" - -#: classes/Gems/Menu.php:381 -msgid "Answers" -msgstr "Antwoorden" - -#: classes/Gems/Menu.php:531 -msgid "Respondents" -msgstr "Patiënten" - -#: classes/Gems/Menu.php:539 -msgid "Overview" -msgstr "Overzicht" - -#: classes/Gems/Menu.php:546 -msgid "Project" -msgstr "Project" - -#: classes/Gems/Menu.php:549 -msgid "Setup" -msgstr "Beheer" - -#: classes/Gems/Menu.php:552 -msgid "Mail" -msgstr "Email" - -#: classes/Gems/Menu.php:555 -msgid "Track Builder" -msgstr "Traject bouwer" - -#: classes/Gems/Menu.php:561 -msgid "Export respondent" -msgstr "Exporteer patiënt" - -#: classes/Gems/Menu.php:567 -msgid "Contact" -msgstr "Contact" - -#: classes/Gems/Menu.php:580 -msgid "Changelog" -msgstr "Changelog" - -#: classes/Gems/Model.php:230 -msgid "Respondent nr" -msgstr "Patiënt nr" - -#: classes/Gems/Model.php:231 -msgid "Opened" -msgstr "Bekeken op" - -#: classes/Gems/Model.php:232 -msgid "Consent" -msgstr "Toestemming" - -#: classes/Gems/Model.php:234 -msgid "E-Mail" -msgstr "Email" - -#: classes/Gems/Model.php:239 -msgid "Gender" -msgstr "Geslacht" - -#: classes/Gems/Model.php:240 -msgid "First name" -msgstr "Voornaam" - -#: classes/Gems/Model.php:241 -msgid "Surname prefix" -msgstr "Tussenvoegsel" - -#: classes/Gems/Model.php:242 -msgid "Last name" -msgstr "Achternaam" - -#: classes/Gems/Model.php:244 -msgid "Name" -msgstr "Naam" - -#: classes/Gems/Model.php:247 -msgid "Street" -msgstr "Straat" - -#: classes/Gems/Model.php:248 -msgid "Zipcode" -msgstr "Postcode" - -#: classes/Gems/Model.php:249 -msgid "City" -msgstr "Woonplaats" - -#: classes/Gems/Model.php:251 -msgid "Phone" -msgstr "Telefoon" - -#: classes/Gems/Model.php:253 -msgid "Birthday" -msgstr "Geboren op" - -#: classes/Gems/UpgradesAbstract.php:154 -msgid "Already at max. level." -msgstr "Al op het hoogste niveau." - -#: classes/Gems/UpgradesAbstract.php:161 -#, php-format -msgid "Trying upgrade for %s from level %s to level %s" -msgstr "Probeert upgrade voor %s van niveau %s naar niveau %s uit te voeren" - -#: classes/Gems/UpgradesAbstract.php:169 -#, php-format -msgid "Trying upgrade for %s to level %s: %s" -msgstr "Probeert upgrade voor %s naar niveau %s: %s" - -#: classes/Gems/Model/DbaModel.php:97 -msgid "created" -msgstr "bestaat" - -#: classes/Gems/Model/DbaModel.php:98 -msgid "not created" -msgstr "niet aanwezig" - -#: classes/Gems/Model/DbaModel.php:99 -msgid "unknown" -msgstr "onbekend" - -#: classes/Gems/Model/DbaModel.php:420 -#, php-format -msgid "Executed %2$s creation script %1$s:" -msgstr "Uitvoerresultaat %2$s script %1$s:" - -#: classes/Gems/Model/DbaModel.php:430 -#, php-format -msgid "%d record(s) returned as result set %d in step %d of %d." -msgstr "%d rij(en) in resultaat %d in stap %d van %d." - -#: classes/Gems/Model/DbaModel.php:434 -#, php-format -msgid "%d record(s) updated in step %d of %d." -msgstr "In stap %2$d van %3$d zijn %1$d rij(en) aangepast." - -#: classes/Gems/Model/DbaModel.php:437 -#, php-format -msgid "Script ran step %d of %d succesfully." -msgstr "Stap %d van %d in het script met succes uitgevoerd." - -#: classes/Gems/Model/DbaModel.php:440 -msgid " in step " -msgstr " in stap " - -#: classes/Gems/Model/DbaModel.php:445 -#, php-format -msgid "No script for %1$s." -msgstr "Geen script voor %1$s:" - -#: classes/Gems/Export/Spss.php:59 -msgid "Which file" -msgstr "Kies bestand" - -#: classes/Gems/Export/Spss.php:60 -msgid "syntax" -msgstr "syntax" - -#: classes/Gems/Export/Spss.php:61 -msgid "data" -msgstr "data" - -#: classes/Gems/Export/Spss.php:66 -msgid "Some help for this export" -msgstr "Uitleg over deze export mogelijkheid" - -#: classes/Gems/Export/Excel.php:60 -msgid "Excel options" -msgstr "Excel opties" - -#: classes/Gems/Export/Excel.php:62 -msgid "Export questions instead of variable names" -msgstr "Exporteer vragen in plaats van variabele namen" - -#: classes/Gems/Export/Excel.php:63 -msgid "Format answers" -msgstr "Antwoorden opmaken" - -#: classes/Gems/Util/Translated.php:81 -msgid "-" -msgstr "n.v.t." - -#: classes/Gems/Util/Translated.php:96 -msgid "forever" -msgstr "altijd" - -#: classes/Gems/Util/Translated.php:105 -msgid "n/a" -msgstr "n.v.t." - -#: classes/Gems/Util/Translated.php:114 -msgid "never" -msgstr "nooit" - -#: classes/Gems/Util/Translated.php:139 -msgid "2 days ago" -msgstr "Eergisteren" - -#: classes/Gems/Util/Translated.php:142 -msgid "Yesterday" -msgstr "Gisteren" - -#: classes/Gems/Util/Translated.php:145 -msgid "Today" -msgstr "Vandaag" - -#: classes/Gems/Util/Translated.php:148 -msgid "Tomorrow" -msgstr "Morgen" - -#: classes/Gems/Util/Translated.php:151 -msgid "Over 2 days" -msgstr "Overmorgen" - -#: classes/Gems/Util/Translated.php:156 -#, php-format -msgid "Over %d days" -msgstr "Over %d dagen" - -#: classes/Gems/Util/Translated.php:158 -#, php-format -msgid "%d days ago" -msgstr "%d dagen terug" - -#: classes/Gems/Util/Translated.php:177 -msgid "Send multiple mails per respondent, one for each checked token." -msgstr "Verstuur meerdere emails per patiënt, één per gekozen kenmerk." - -#: classes/Gems/Util/Translated.php:178 -msgid "Send one mail per respondent, mark all checked tokens as send." -msgstr "Verstuur één email per patiënt, zet alle gekozen kenmerken op verzonden." - -#: classes/Gems/Util/Translated.php:179 -msgid "Send one mail per respondent, mark only mailed tokens as send." -msgstr "Verstuur één email per patiënt, zet alleen de verzonden kenmerken op verzonden." - -#: classes/Gems/Util/Translated.php:204 -msgid "Male" -msgstr "Man" - -#: classes/Gems/Util/Translated.php:204 -msgid "Female" -msgstr "Vrouw... [truncated message content] |
From: <gem...@li...> - 2012-06-13 15:23:39
|
Revision: 759 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=759&view=rev Author: matijsdejong Date: 2012-06-13 15:23:29 +0000 (Wed, 13 Jun 2012) Log Message: ----------- Menu can now be rendered using HtmlElements. This allows images and other structure in menu labels New projects should use the new method, while older will remain working unchanged Modified Paths: -------------- trunk/library/classes/Gems/Menu/MenuAbstract.php trunk/library/classes/Gems/Menu.php trunk/library/classes/GemsEscort.php trunk/library/classes/MUtil/Html/HtmlElement.php trunk/library/classes/MUtil/Html/HtmlInterface.php trunk/library/layouts/scripts/gems.phtml Modified: trunk/library/classes/Gems/Menu/MenuAbstract.php =================================================================== --- trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-06-13 15:23:29 UTC (rev 759) @@ -572,7 +572,12 @@ abstract public function isVisible(); - + /** + * Make sure only the active branch is visible + * + * @param array $activeBranch Of Gems_Menu_Menu Abstract items + * @return Gems_Menu_MenuAbstract (continuation pattern) + */ protected function setBranchVisible(array $activeBranch) { $current = array_pop($activeBranch); @@ -581,6 +586,7 @@ foreach ($this->_subItems as $item) { if ($item->isVisible()) { if ($item === $current) { + $item->set('active', true); $item->setBranchVisible($activeBranch); } else { $item->setForChildren('visible', false); Modified: trunk/library/classes/Gems/Menu.php =================================================================== --- trunk/library/classes/Gems/Menu.php 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/classes/Gems/Menu.php 2012-06-13 15:23:29 UTC (rev 759) @@ -52,7 +52,7 @@ * @license New BSD License * @since Class available since version 1.0 */ -class Gems_Menu extends Gems_Menu_MenuAbstract +class Gems_Menu extends Gems_Menu_MenuAbstract implements MUtil_Html_HtmlInterface { /** * @@ -559,7 +559,7 @@ // EXPORT TO HTML $this->addContainer($this->_('Export respondent'), 'pr.export-html', array('controller' => 'respondent-export', 'action'=>'index')); - + // OTHER ITEMS $this->addLogonOffToken(); @@ -591,6 +591,91 @@ { } + /** + * Renders the element into a html string + * + * The $view is used to correctly encode and escape the output + * + * @param Zend_View_Abstract $view + * @return string Correctly encoded and escaped html output + */ + public function render(Zend_View_Abstract $view) + { + $activePath = $this->_findPath($this->escort->request); + + if ($this->_onlyActiveBranchVisible) { + // MUtil_Echo::r($activePath); + $this->setBranchVisible($activePath); + } + + $parameterSources[] = $this->escort->request; + + if ($this->_menuParameters) { + $parameterSources[] = $this->_menuParameters; + } + + $source = new Gems_Menu_ParameterCollector($parameterSources); + // self::$verbose = true; + + $nav = $this->_toNavigationArray($source); + + // MUtil_Echo::track($nav); + + $ul = $this->renderFirst(); + + $this->renderItems($ul, $nav); + + return $ul->render($view); + } + + /** + * Helper function to create main menu html element. + * + * Allows overloading by sub classes. + * + * @return MUtil_Html_ListElement + */ + protected function renderFirst() + { + return MUtil_Html::create()->ul(array('class' => 'navigation')); + } + + /** + * Helper function to load the menu items to the html element. + * + * Allows overloading by sub classes. + * + * @param MUtil_Html_ListElement $ul + * @param array $items + */ + protected function renderItems(MUtil_Html_ListElement $ul, array $items) + { + foreach ($items as $item) { + if ($item['visible'] && $item['label']) { + $url = $item['params']; + $url['controller'] = $item['controller']; + $url['action'] = $item['action']; + $url['RouteReset'] = true; + $li = $ul->li(); + if (isset($item['active']) && $item['active']) { + $li->class = 'active'; + } + + $a = $li->a($url, $item['label']); + if (isset($item['class'])) { + $a->class = $item['class']; + } + if (isset($item['target'])) { + $a->target = $item['target']; + } + + if (isset($item['pages'])) { + $this->renderItems($li->ul(), $item['pages']); + } + } + } + } + protected function request2find($request) { if (is_array($request)) { @@ -654,7 +739,7 @@ $nav = new Zend_Navigation($this->_toNavigationArray($source)); - // MUtil_Echo::r($this->_toNavigationArray($parameterSources)); + // MUtil_Echo::track($this->_toNavigationArray($source), $nav); return $nav; } Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/classes/GemsEscort.php 2012-06-13 15:23:29 UTC (rev 759) @@ -734,6 +734,26 @@ } /** + * Function called if specified in the Project.ini layoutPrepare section before + * the layout is drawn, but after the rest of the program has run it's course. + * + * @return mixed If null nothing is set, otherwise the name of + * the function is used as Zend_View variable name. + */ + protected function _layoutMenuHtml() + { + // ACL && Menu + if ($this->menu && $this->menu->isVisible()) { + + // Make sure the actual $request and $controller in use at the end + // of the dispatchloop is used and make Zend_Navigation object + return $this->menu->render($this->view); + } + + return null; + } + + /** * Display either a link to the login screen or displays the name of the current user * and a logoff link. * @@ -792,7 +812,7 @@ if ($messages) { foreach ($messages as &$message) { // Make sure html is preserved - if (strlen($message) && ((strpos($message, '<') !== false) || (strpos($message, '&') !== false))) { + if (is_string($message) && strlen($message) && ((strpos($message, '<') !== false) || (strpos($message, '&') !== false))) { $message = MUtil_Html::raw($message); } } Modified: trunk/library/classes/MUtil/Html/HtmlElement.php =================================================================== --- trunk/library/classes/MUtil/Html/HtmlElement.php 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/classes/MUtil/Html/HtmlElement.php 2012-06-13 15:23:29 UTC (rev 759) @@ -799,7 +799,13 @@ return in_array($tagName, $guards); } - public function append($value) + /** + * Add stuff to this element + * + * @param mixed $value The value to append + * @return MUtil_Html_HtmlElement + */ + public function append($value = null) { $this->offsetSet(null, $value); Modified: trunk/library/classes/MUtil/Html/HtmlInterface.php =================================================================== --- trunk/library/classes/MUtil/Html/HtmlInterface.php 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/classes/MUtil/Html/HtmlInterface.php 2012-06-13 15:23:29 UTC (rev 759) @@ -1,69 +1,70 @@ <?php - -/** - * Copyright (c) 2011, Erasmus MC - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of Erasmus MC nor the - * names of its contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - + /** - * - * @author Matijs de Jong - * @since 1.0 - * @version 1.1 - * @package MUtil + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package MUtil * @subpackage Html + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id$ */ /** - * Classes implementing the HtmlInterface are translateable into correctly - * encoded and escaped html or even xml depending on the view passed as a + * Classes implementing the HtmlInterface are translateable into correctly + * encoded and escaped html or even xml depending on the view passed as a * parameter to the one function in this interface. - * - * Most library classes implementing this interface either implement the - * AttributeInterface or the ElementInterface but good examples of straight + * + * Most library classes implementing this interface either implement the + * AttributeInterface or the ElementInterface but good examples of straight * implementation are Raw and (Html) MultiWrapper classes. - * + * * As this is the simplest method to ourput html with some control over * it's rendering it is often used for quick implementations in * non-library code. - * - * @see MUtil_Html_AttributeInterface + * + * @see MUtil_Html_AttributeInterface * @see MUtil_Html_ElementInterface * @see MUtil_Html_MultiWrapper * @see MUtil_Html_Raw - * - * @author Matijs de Jong - * @package MUtil + * + * @package MUtil * @subpackage Html + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.0 */ interface MUtil_Html_HtmlInterface { /** * Renders the element into a html string - * + * * The $view is used to correctly encode and escape the output * * @param Zend_View_Abstract $view Modified: trunk/library/layouts/scripts/gems.phtml =================================================================== --- trunk/library/layouts/scripts/gems.phtml 2012-06-12 15:25:05 UTC (rev 758) +++ trunk/library/layouts/scripts/gems.phtml 2012-06-13 15:23:29 UTC (rev 759) @@ -25,7 +25,7 @@ <div id="header"><?php if ($this->header) { echo $this->header->render($this); }?></div> <div id="header_bar"><?php if ($this->header_bar) { echo $this->header_bar->render($this); } ?></div> <?php - if ($this->navigation): + if ($this->navigation || $this->menuHtml): ?> <div id="main"><?php if ($this->main) { @@ -35,6 +35,7 @@ ?></div> <div id="menu"><?php echo $this->navigation()->menu(); + echo $this->menuHtml; ?></div><?php else: ?><div id="main_full_width"><?php @@ -52,7 +53,7 @@ ?></div> </div><?php echo MUtil_Echo::out(); - + // Scripts here for load optimization echo $this->headScript(); echo $this->inlineScript(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-14 13:06:37
|
Revision: 761 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=761&view=rev Author: matijsdejong Date: 2012-06-14 13:06:26 +0000 (Thu, 14 Jun 2012) Log Message: ----------- Menu can now set class for menu LI element (instead of just A element) Added fields for survey duration Modified Paths: -------------- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Menu.php trunk/library/configs/db/patches.sql trunk/library/configs/db/tables/gems__surveys.30.sql trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-06-14 13:06:26 UTC (rev 761) @@ -121,9 +121,10 @@ ->addValidator( new MUtil_Validate_Require($model->get('gsu_active', 'label'), 'gsu_id_primary_group', $model->get('gsu_id_primary_group', 'label'))); $bridge->addSelect( 'gsu_id_primary_group', 'description', $this->_('If empty, survey will never show up!')); - $bridge->addSelect( 'gsu_result_field', 'label', $this->_('Result field'), 'multiOptions', $surveyFields); - $bridge->addSelect( 'gsu_beforeanswering_event', 'label', $this->_('Before answering'), 'multiOptions', $this->loader->getEvents()->listSurveyBeforeAnsweringEvents()); - $bridge->addSelect( 'gsu_completed_event', 'label', $this->_('After completion'), 'multiOptions', $this->loader->getEvents()->listSurveyCompletionEvents()); + $bridge->addSelect( 'gsu_result_field', 'multiOptions', $surveyFields); + $bridge->addText( 'gsu_duration'); + $bridge->addSelect( 'gsu_beforeanswering_event'); + $bridge->addSelect( 'gsu_completed_event'); $bridge->addFile( 'new_pdf', 'label', $this->_('Upload new PDF'), 'accept', 'application/pdf', @@ -370,6 +371,15 @@ $model->set('gsu_surveyor_active', 'multiOptions', $yesNo); $model->set('gsu_id_primary_group', 'label', $this->_('Group'), 'multiOptions', $this->util->getDbLookup()->getGroups()); + if ($detailed) { + $events = $this->loader->getEvents(); + + $model->set('gsu_result_field', 'label', $this->_('Result field')); + $model->set('gsu_duration', 'label', $this->_('Duration description'), 'description', $this->_('Text to inform the respondent.')); + $model->set('gsu_beforeanswering_event', 'label', $this->_('Before answering'), 'multiOptions', $events->listSurveyBeforeAnsweringEvents()); + $model->set('gsu_completed_event', 'label', $this->_('After completion'), 'multiOptions', $events->listSurveyCompletionEvents()); + } + $model->setCreate(false); return $model; Modified: trunk/library/classes/Gems/Menu.php =================================================================== --- trunk/library/classes/Gems/Menu.php 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/classes/Gems/Menu.php 2012-06-14 13:06:26 UTC (rev 761) @@ -660,6 +660,9 @@ if (isset($item['active']) && $item['active']) { $li->class = 'active'; } + if (isset($item['liClass']) && $item['liClass']) { + $li->appendAttrib('class', $item['liClass']); + } $a = $li->a($url, $item['label']); if (isset($item['class'])) { Modified: trunk/library/configs/db/patches.sql =================================================================== --- trunk/library/configs/db/patches.sql 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/configs/db/patches.sql 2012-06-14 13:06:26 UTC (rev 761) @@ -407,3 +407,7 @@ -- PATCH: Add column to store maximum number of reminders (default is 3) to mail jobs ALTER TABLE `gems__mail_jobs` ADD `gmj_filter_max_reminders` INT(11) UNSIGNED NOT NULL DEFAULT 3 AFTER `gmj_filter_days_between`; + +-- GEMS VERSION: 48 +-- PATCH: Add duration to surveys +ALTER TABLE gems__surveys ADD gsu_duration varchar(50) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' AFTER gsu_result_field; Modified: trunk/library/configs/db/tables/gems__surveys.30.sql =================================================================== --- trunk/library/configs/db/tables/gems__surveys.30.sql 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/configs/db/tables/gems__surveys.30.sql 2012-06-14 13:06:26 UTC (rev 761) @@ -34,7 +34,8 @@ gsu_followup_field varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'submitdate', -- end depreciated - gsu_result_field varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + gsu_result_field varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + gsu_duration varchar(50) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', gsu_changed timestamp not null default current_timestamp on update current_timestamp, gsu_changed_by bigint unsigned not null, Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/languages/default-en.po 2012-06-14 13:06:26 UTC (rev 761) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-11 14:50+0100\n" +"POT-Creation-Date: 2012-06-14 15:04+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -23,72 +23,72 @@ msgid "Path %s not writable" msgstr "Path %s not writable" -#: classes/GemsEscort.php:756 +#: classes/GemsEscort.php:776 #, php-format msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:758 +#: classes/GemsEscort.php:778 #: classes/Gems/Menu.php:249 msgid "Logoff" msgstr "Logoff" -#: classes/GemsEscort.php:761 +#: classes/GemsEscort.php:781 msgid "You are not logged in" msgstr "You are not logged in" -#: classes/GemsEscort.php:945 +#: classes/GemsEscort.php:965 #, php-format msgid "User: %s" msgstr "User: %s" -#: classes/GemsEscort.php:970 +#: classes/GemsEscort.php:990 msgid "version" msgstr "version" -#: classes/GemsEscort.php:1412 +#: classes/GemsEscort.php:1432 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -#: classes/GemsEscort.php:1543 +#: classes/GemsEscort.php:1563 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1545 -#: classes/GemsEscort.php:1549 -#: classes/GemsEscort.php:1550 +#: classes/GemsEscort.php:1565 +#: classes/GemsEscort.php:1569 +#: classes/GemsEscort.php:1570 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" -#: classes/GemsEscort.php:1560 +#: classes/GemsEscort.php:1580 msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1562 -#: classes/GemsEscort.php:1605 +#: classes/GemsEscort.php:1582 +#: classes/GemsEscort.php:1625 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1578 +#: classes/GemsEscort.php:1598 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1580 +#: classes/GemsEscort.php:1600 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1590 -#: classes/GemsEscort.php:1603 +#: classes/GemsEscort.php:1610 +#: classes/GemsEscort.php:1623 msgid "You are no longer logged in." msgstr "You are no longer logged in." -#: classes/GemsEscort.php:1591 +#: classes/GemsEscort.php:1611 msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1732 -#: classes/GemsEscort.php:1734 +#: classes/GemsEscort.php:1752 +#: classes/GemsEscort.php:1754 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -2273,99 +2273,107 @@ msgid "If empty, survey will never show up!" msgstr "If empty, survey will never show up!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:124 -msgid "Result field" -msgstr "Result field" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:125 -msgid "Before answering" -msgstr "Before answering" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:126 -msgid "After completion" -msgstr "After completion" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:128 +#: classes/Gems/Default/SurveyMaintenanceAction.php:129 msgid "Upload new PDF" msgstr "Upload new PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:136 +#: classes/Gems/Default/SurveyMaintenanceAction.php:137 msgid "Usage" msgstr "Usage" -#: classes/Gems/Default/SurveyMaintenanceAction.php:151 +#: classes/Gems/Default/SurveyMaintenanceAction.php:152 msgid "Single Survey Assignment" msgstr "Single Survey Assignment" -#: classes/Gems/Default/SurveyMaintenanceAction.php:196 +#: classes/Gems/Default/SurveyMaintenanceAction.php:197 msgid "Assignable since" msgstr "Assignable since" -#: classes/Gems/Default/SurveyMaintenanceAction.php:197 +#: classes/Gems/Default/SurveyMaintenanceAction.php:198 msgid "Assignable until" msgstr "Assignable until" -#: classes/Gems/Default/SurveyMaintenanceAction.php:203 +#: classes/Gems/Default/SurveyMaintenanceAction.php:204 msgid "Create Single Survey" msgstr "Create Single Survey" -#: classes/Gems/Default/SurveyMaintenanceAction.php:207 +#: classes/Gems/Default/SurveyMaintenanceAction.php:208 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "At the moment this survey can only be assigned to paitents as part of an existing track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:262 +#: classes/Gems/Default/SurveyMaintenanceAction.php:263 msgid "Survey should be assigned to a group before making it active." msgstr "Survey should be assigned to a group before making it active." -#: classes/Gems/Default/SurveyMaintenanceAction.php:279 +#: classes/Gems/Default/SurveyMaintenanceAction.php:280 #, php-format msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:291 +#: classes/Gems/Default/SurveyMaintenanceAction.php:292 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:348 +#: classes/Gems/Default/SurveyMaintenanceAction.php:349 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:355 +#: classes/Gems/Default/SurveyMaintenanceAction.php:356 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:356 +#: classes/Gems/Default/SurveyMaintenanceAction.php:357 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:359 +#: classes/Gems/Default/SurveyMaintenanceAction.php:360 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:360 +#: classes/Gems/Default/SurveyMaintenanceAction.php:361 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:367 +#: classes/Gems/Default/SurveyMaintenanceAction.php:368 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:400 +#: classes/Gems/Default/SurveyMaintenanceAction.php:377 +msgid "Result field" +msgstr "Result field" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +msgid "Duration description" +msgstr "Duration description" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +msgid "Text to inform the respondent." +msgstr "Text to inform the respondent." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 +msgid "Before answering" +msgstr "Before answering" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:380 +msgid "After completion" +msgstr "After completion" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:410 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:402 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:406 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:408 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -3319,32 +3327,32 @@ msgid "Use a track level date." msgstr "Use a track level date." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:443 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:446 #, php-format msgid "%s track engines cannot be converted to %s track engines." msgstr "%s track engines cannot be converted to %s track engines." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:686 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:689 #, php-format msgid "%d: %s - %s" msgstr "%d: %s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:689 #: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:692 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:695 #, php-format msgid "%d: %s" msgstr "%d: %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:695 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:698 #, php-format msgid "%s - %s" msgstr "%s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:735 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:738 msgid "Icon" msgstr "Icon" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:738 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:741 msgid "After change" msgstr "After change" Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-06-13 15:25:27 UTC (rev 760) +++ trunk/library/languages/default-nl.po 2012-06-14 13:06:26 UTC (rev 761) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-11 14:50+0100\n" +"POT-Creation-Date: 2012-06-14 15:04+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -23,72 +23,72 @@ msgid "Path %s not writable" msgstr "Path %s niet schrijfbaar" -#: classes/GemsEscort.php:756 +#: classes/GemsEscort.php:776 #, php-format msgid "You are logged in as %s" msgstr "Ingelogd als %s" -#: classes/GemsEscort.php:758 +#: classes/GemsEscort.php:778 #: classes/Gems/Menu.php:249 msgid "Logoff" msgstr "Uitloggen" -#: classes/GemsEscort.php:761 +#: classes/GemsEscort.php:781 msgid "You are not logged in" msgstr "U bent niet ingelogd" -#: classes/GemsEscort.php:945 +#: classes/GemsEscort.php:965 #, php-format msgid "User: %s" msgstr "Login: %s" -#: classes/GemsEscort.php:970 +#: classes/GemsEscort.php:990 msgid "version" msgstr "versie" -#: classes/GemsEscort.php:1412 +#: classes/GemsEscort.php:1432 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." -#: classes/GemsEscort.php:1543 +#: classes/GemsEscort.php:1563 msgid "Please check back later." msgstr "Probeer het later opnieuw." -#: classes/GemsEscort.php:1545 -#: classes/GemsEscort.php:1549 -#: classes/GemsEscort.php:1550 +#: classes/GemsEscort.php:1565 +#: classes/GemsEscort.php:1569 +#: classes/GemsEscort.php:1570 msgid "System is in maintenance mode" msgstr "Systeem is in onderhoudsmodus" -#: classes/GemsEscort.php:1560 +#: classes/GemsEscort.php:1580 msgid "No access to site." msgstr "Geen toegang tot website." -#: classes/GemsEscort.php:1562 -#: classes/GemsEscort.php:1605 +#: classes/GemsEscort.php:1582 +#: classes/GemsEscort.php:1625 msgid "You have no access to this site." msgstr "U heeft geen toegang tot deze website." -#: classes/GemsEscort.php:1578 +#: classes/GemsEscort.php:1598 msgid "No access to page" msgstr "Geen toegang tot pagina" -#: classes/GemsEscort.php:1580 +#: classes/GemsEscort.php:1600 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." -#: classes/GemsEscort.php:1590 -#: classes/GemsEscort.php:1603 +#: classes/GemsEscort.php:1610 +#: classes/GemsEscort.php:1623 msgid "You are no longer logged in." msgstr "U bent niet meer ingelogd." -#: classes/GemsEscort.php:1591 +#: classes/GemsEscort.php:1611 msgid "You must login to access this page." msgstr "U moet ingelogd zijn voor toegang tot deze pagina." -#: classes/GemsEscort.php:1732 -#: classes/GemsEscort.php:1734 +#: classes/GemsEscort.php:1752 +#: classes/GemsEscort.php:1754 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -2273,99 +2273,107 @@ msgid "If empty, survey will never show up!" msgstr "Indien leeg zal de vragenlijst niet tevoorschijn komen!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:124 -msgid "Result field" -msgstr "Resultaat veld" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:125 -msgid "Before answering" -msgstr "Voor beantwoording" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:126 -msgid "After completion" -msgstr "Na afronding" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:128 +#: classes/Gems/Default/SurveyMaintenanceAction.php:129 msgid "Upload new PDF" msgstr "Upload nieuwe PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:136 +#: classes/Gems/Default/SurveyMaintenanceAction.php:137 msgid "Usage" msgstr "Gebruik" -#: classes/Gems/Default/SurveyMaintenanceAction.php:151 +#: classes/Gems/Default/SurveyMaintenanceAction.php:152 msgid "Single Survey Assignment" msgstr "Losse vragenlijst toewijzing" -#: classes/Gems/Default/SurveyMaintenanceAction.php:196 +#: classes/Gems/Default/SurveyMaintenanceAction.php:197 msgid "Assignable since" msgstr "Toewijsbaar sinds" -#: classes/Gems/Default/SurveyMaintenanceAction.php:197 +#: classes/Gems/Default/SurveyMaintenanceAction.php:198 msgid "Assignable until" msgstr "Toewijsbaar tot" -#: classes/Gems/Default/SurveyMaintenanceAction.php:203 +#: classes/Gems/Default/SurveyMaintenanceAction.php:204 msgid "Create Single Survey" msgstr "Maak losse vragenlijst" -#: classes/Gems/Default/SurveyMaintenanceAction.php:207 +#: classes/Gems/Default/SurveyMaintenanceAction.php:208 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "Op dit moment kan deze vragenlijst alleen aan patiënten toegewezen als onderdeel van een traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:262 +#: classes/Gems/Default/SurveyMaintenanceAction.php:263 msgid "Survey should be assigned to a group before making it active." msgstr "Vragenlijst moet aan een groep toegewezen worden voordat deze actief kan worden gemaakt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:279 +#: classes/Gems/Default/SurveyMaintenanceAction.php:280 #, php-format msgid "Checking survey results for the %s survey." msgstr "Controle op vragenlijstresultaten voor de vragenlijst '%s'." -#: classes/Gems/Default/SurveyMaintenanceAction.php:291 +#: classes/Gems/Default/SurveyMaintenanceAction.php:292 msgid "Checking survey results for all surveys." msgstr "Controle op vragenlijstresultaten voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:348 +#: classes/Gems/Default/SurveyMaintenanceAction.php:349 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:355 +#: classes/Gems/Default/SurveyMaintenanceAction.php:356 msgid "Source" msgstr "Bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:356 +#: classes/Gems/Default/SurveyMaintenanceAction.php:357 msgid "Status in source" msgstr "Status in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:359 +#: classes/Gems/Default/SurveyMaintenanceAction.php:360 msgid "Active in source" msgstr "Actief in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:360 +#: classes/Gems/Default/SurveyMaintenanceAction.php:361 #, php-format msgid "Active in %s" msgstr "Actief in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:367 +#: classes/Gems/Default/SurveyMaintenanceAction.php:368 msgid "Single" msgstr "Los" -#: classes/Gems/Default/SurveyMaintenanceAction.php:400 +#: classes/Gems/Default/SurveyMaintenanceAction.php:377 +msgid "Result field" +msgstr "Resultaat veld" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +msgid "Duration description" +msgstr "Beschrijving afnametijd" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +msgid "Text to inform the respondent." +msgstr "tekst er informatie van de patiënt." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 +msgid "Before answering" +msgstr "Voor beantwoording" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:380 +msgid "After completion" +msgstr "Na afronding" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:410 #, php-format msgid "%d times in track." msgstr "%d keer in traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:402 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 #, php-format msgid "%d times in %d track(s)." msgstr "%d keer in %d traject(en)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:406 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 msgid "Not used in track." msgstr "Niet in traject gebruikt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:408 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 msgid "Not used in tracks." msgstr "Niet in trajecten gebruikt." @@ -3319,32 +3327,32 @@ msgid "Use a track level date." msgstr "Gebruik een op traject niveau ingestelde datum." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:443 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:446 #, php-format msgid "%s track engines cannot be converted to %s track engines." msgstr "Traject type %s kan niet geconverteerd worden naar %s." -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:686 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:689 #, php-format msgid "%d: %s - %s" msgstr "%d: %s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:689 #: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:692 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:695 #, php-format msgid "%d: %s" msgstr "%d: %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:695 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:698 #, php-format msgid "%s - %s" msgstr "%s - %s" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:735 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:738 msgid "Icon" msgstr "Icoon" -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:738 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:741 msgid "After change" msgstr "Ronde veranderingscode" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-14 15:30:48
|
Revision: 764 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=764&view=rev Author: matijsdejong Date: 2012-06-14 15:30:38 +0000 (Thu, 14 Jun 2012) Log Message: ----------- new privilege: respondent multi org When user has privilege and org cannot contain respondents, then all orgs respondents are shown (looking at them is step 2) Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentAction.php trunk/library/classes/Gems/Menu.php trunk/library/classes/Gems/Model/HiddenOrganizationModel.php trunk/library/classes/Gems/Model/RespondentModel.php trunk/library/classes/MUtil/Model/ModelAbstract.php trunk/library/classes/MUtil/Model/ModelTransformerAbstract.php trunk/library/classes/MUtil/Registry/TargetInterface.php trunk/library/configs/db/patches.sql Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-14 15:30:38 UTC (rev 764) @@ -342,7 +342,9 @@ */ public function indexAction() { - if ($this->loader->getOrganization()->canHaveRespondents()) { + $user = $this->loader->getCurrentUser(); + + if ($user->hasPrivilege('pr.respondent.multiorg') || $this->loader->getOrganization()->canHaveRespondents()) { parent::indexAction(); } else { $this->addSnippet('Organization_ChooseOrganizationSnippet'); @@ -414,7 +416,7 @@ $params['respondentData'] = $data; $this->addSnippets($this->showSnippets, $params); } - + public function exportAction() { $this->_reroute(array('controller' => 'respondent-export', 'action' => 'index')); Modified: trunk/library/classes/Gems/Menu.php =================================================================== --- trunk/library/classes/Gems/Menu.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/Gems/Menu.php 2012-06-14 15:30:38 UTC (rev 764) @@ -548,12 +548,12 @@ // SETUP CONTAINER $this->addGemsSetupContainer($this->_('Setup')); + // TRACK BUILDER + $this->addTrackBuilderMenu($this->_('Track Builder')); + // MAIL CONTAINER $this->addMailSetupMenu($this->_('Mail')); - // TRACK BUILDER - $this->addTrackBuilderMenu($this->_('Track Builder')); - // EXPORT DATA $this->addContainer('Export data', 'pr.export', array('controller'=>'export', 'action'=>'index')); @@ -569,6 +569,7 @@ // Privileges not associated with menu item //$this->addHiddenPrivilige('pr.plan.choose-org'); $this->addHiddenPrivilige('pr.plan.mail-as-application'); + $this->addHiddenPrivilige('pr.respondent.multiorg'); $this->addHiddenPrivilige('pr.respondent.result'); $this->addHiddenPrivilige('pr.respondent.who'); $this->addHiddenPrivilige('pr.staff.edit.all'); Modified: trunk/library/classes/Gems/Model/HiddenOrganizationModel.php =================================================================== --- trunk/library/classes/Gems/Model/HiddenOrganizationModel.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/Gems/Model/HiddenOrganizationModel.php 2012-06-14 15:30:38 UTC (rev 764) @@ -48,6 +48,31 @@ class Gems_Model_HiddenOrganizationModel extends Gems_Model_JoinModel { /** + * + * @var Gems_Loader + */ + protected $loader; + + /** + * + * @var Gems_User_User + */ + protected $user; + + /** + * Called after the check that all required registry values + * have been set correctly has run. + * + * @return void + */ + public function afterRegistry() + { + if (! $this->user) { + $this->user = $this->loader->getCurrentUser(); + } + } + + /** * Stores the fields that can be used for sorting or filtering in the * sort / filter objects attached to this model. * @@ -73,18 +98,42 @@ unset($parameters[MUtil_Model::REQUEST_ID]); } - return parent::applyParameters($parameters); } return array(); } + /** + * Should be called after answering the request to allow the Target + * to check if all required registry values have been set correctly. + * + * @return boolean False if required are missing. + */ + public function checkRegistryRequestsAnswers() + { + return ($this->loader instanceof Gems_Loader); + } + + /** + * The current organization id of the current user + * + * @return int + */ public function getCurrentOrganization() { - return GemsEscort::getInstance()->getCurrentOrganization(); + return $this->user->getCurrentOrganizationId(); } + /** + * Return an identifier the item specified by $forData + * + * basically transforms the fieldnames ointo oan IDn => value array + * + * @param mixed $forData Array value to vilter on + * @param array $href Or ArrayObject + * @return array That can by used as href + */ public function getKeyRef($forData, $href = array(), $organizationInKey = null) { $keys = $this->getKeys(); Modified: trunk/library/classes/Gems/Model/RespondentModel.php =================================================================== --- trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-14 15:30:38 UTC (rev 764) @@ -104,7 +104,11 @@ $filter = parent::_checkFilterUsed($filter); if (! isset($filter['gr2o_id_organization'])) { - $filter['gr2o_id_organization'] = $this->getCurrentOrganization(); + if ($this->user->hasPrivilege('pr.respondent.multiorg') && (! $this->user->getCurrentOrganization()->canHaveRespondents())) { + $filter[] = 'gr2o_id_organization IN (' . implode(', ', array_keys($this->user->getAllowedOrganizations())) . ')'; + } else { + $filter['gr2o_id_organization'] = $this->getCurrentOrganization(); + } } if (self::SSN_HASH === $this->hashSsn) { Modified: trunk/library/classes/MUtil/Model/ModelAbstract.php =================================================================== --- trunk/library/classes/MUtil/Model/ModelAbstract.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/MUtil/Model/ModelAbstract.php 2012-06-14 15:30:38 UTC (rev 764) @@ -565,6 +565,15 @@ } } + /** + * Return an identifier the item specified by $forData + * + * basically transforms the fieldnames ointo oan IDn => value array + * + * @param mixed $forData Array value to vilter on + * @param array $href Or ArrayObject + * @return array That can by used as href + */ public function getKeyRef($forData, $href = array()) { $keys = $this->getKeys(); Modified: trunk/library/classes/MUtil/Model/ModelTransformerAbstract.php =================================================================== --- trunk/library/classes/MUtil/Model/ModelTransformerAbstract.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/MUtil/Model/ModelTransformerAbstract.php 2012-06-14 15:30:38 UTC (rev 764) @@ -127,6 +127,15 @@ } } + /** + * Return an identifier the item specified by $forData + * + * basically transforms the fieldnames ointo oan IDn => value array + * + * @param mixed $forData Array value to vilter on + * @param array $href Or ArrayObject + * @return array That can by used as href + */ public function getKeyRef($forData, $href = array()) { if ($this->sourceModel) { Modified: trunk/library/classes/MUtil/Registry/TargetInterface.php =================================================================== --- trunk/library/classes/MUtil/Registry/TargetInterface.php 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/classes/MUtil/Registry/TargetInterface.php 2012-06-14 15:30:38 UTC (rev 764) @@ -1,6 +1,5 @@ <?php - /** * Copyright (c) 2011, Erasmus MC * All rights reserved. Modified: trunk/library/configs/db/patches.sql =================================================================== --- trunk/library/configs/db/patches.sql 2012-06-14 14:33:38 UTC (rev 763) +++ trunk/library/configs/db/patches.sql 2012-06-14 15:30:38 UTC (rev 764) @@ -411,3 +411,6 @@ -- GEMS VERSION: 48 -- PATCH: Add duration to surveys ALTER TABLE gems__surveys ADD gsu_duration varchar(50) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' AFTER gsu_result_field; + +-- PATCH: Allow multi org view for supers +UPDATE gems__roles SET grl_privileges = CONCAT(grl_privileges, ',pr.respondent.multiorg') WHERE grl_name = 'super' AND grl_privileges NOT LIKE '%pr.respondent.multiorg%'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-20 17:00:00
|
Revision: 773 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=773&view=rev Author: matijsdejong Date: 2012-06-20 16:59:53 +0000 (Wed, 20 Jun 2012) Log Message: ----------- First version of working multi org Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentAction.php trunk/library/classes/Gems/Menu/SubMenuItem.php trunk/library/classes/Gems/Menu.php trunk/library/snippets/RespondentTokenSnippet.php Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-18 13:01:26 UTC (rev 772) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-20 16:59:53 UTC (rev 773) @@ -311,8 +311,11 @@ { switch ($name) { case 'gr2o_patient_nr': - return $this->_getParam(MUtil_Model::REQUEST_ID, $default); + return $this->_getParam(MUtil_Model::REQUEST_ID, $this->_getParam(MUtil_Model::REQUEST_ID . '1', $default)); + case 'gr2o_id_organization': + return $this->_getParam(MUtil_Model::REQUEST_ID . '1', $default ? $default : $this->loader->getCurrentUser()->getCurrentOrganizationId()); + case 'gto_id_token': return null; Modified: trunk/library/classes/Gems/Menu/SubMenuItem.php =================================================================== --- trunk/library/classes/Gems/Menu/SubMenuItem.php 2012-06-18 13:01:26 UTC (rev 772) +++ trunk/library/classes/Gems/Menu/SubMenuItem.php 2012-06-20 16:59:53 UTC (rev 773) @@ -69,6 +69,7 @@ */ class Gems_Menu_SubMenuItem extends Gems_Menu_MenuAbstract { + private $_hiddenOrgId; private $_hiddenParameters; // Added to $request by applyHiddenParameters private $_itemOptions; private $_parameters = true; @@ -183,6 +184,17 @@ } } } + + if ($this->_hiddenOrgId) { + // Remove org paramter that should remain hidden. + if (isset($parameters[MUtil_Model::REQUEST_ID . '1'], $parameters[MUtil_Model::REQUEST_ID . '2']) && + (! $parameters[MUtil_Model::REQUEST_ID . '2'] instanceof MUtil_Lazy_LazyInterface) && + ($parameters[MUtil_Model::REQUEST_ID . '2'] == $this->_hiddenOrgId)) { + $parameters[MUtil_Model::REQUEST_ID] = $parameters[MUtil_Model::REQUEST_ID . '1']; + unset($parameters[MUtil_Model::REQUEST_ID . '1'], $parameters[MUtil_Model::REQUEST_ID . '2']); + } + } + return $condition; } @@ -774,6 +786,18 @@ } /** + * Set the organization id of the org parameter that can remain hidden. + * + * @param type $orgId + * @return Gems_Menu_SubMenuItem (continuation pattern) + */ + public function setHiddenOrgId($orgId) + { + $this->_hiddenOrgId = $orgId; + return $this; + } + + /** * Defines the number of named parameters using the model naming * convention: id=x or id1=x id2=y * Modified: trunk/library/classes/Gems/Menu.php =================================================================== --- trunk/library/classes/Gems/Menu.php 2012-06-18 13:01:26 UTC (rev 772) +++ trunk/library/classes/Gems/Menu.php 2012-06-20 16:59:53 UTC (rev 773) @@ -262,15 +262,20 @@ public function addRespondentPage($label) { + $orgId = $this->escort->getLoader()->getCurrentUser()->getCurrentOrganizationId(); + $params = array(MUtil_Model::REQUEST_ID => 'gr2o_patient_nr'); - // $params = array(MUtil_Model::REQUEST_ID . '1' => 'gr2o_patient_nr', MUtil_Model::REQUEST_ID . '2' => 'gr2o_id_organization'); + $params = array(MUtil_Model::REQUEST_ID . '1' => 'gr2o_patient_nr', MUtil_Model::REQUEST_ID . '2' => 'gr2o_id_organization'); // MAIN RESPONDENTS ITEM $page = $this->addPage($label, 'pr.respondent', 'respondent'); $page->addAutofilterAction(); $page->addCreateAction('pr.respondent.create')->setParameterFilter('can_add_respondents', true);; - $page->addShowAction()->setNamedParameters($params); + $page->addShowAction() + ->setNamedParameters($params) + ->setHiddenOrgId($orgId); + /* iff( is('gr2o_id_organization', $this->escort->getCurrentOrganization()), @@ -279,76 +284,101 @@ ); */ - $page->addEditAction('pr.respondent.edit')->setNamedParameters($params); - $page->addAction($this->_('Export'), 'pr.respondent.export-html', 'export')->setNamedParameters($params); + $page->addEditAction('pr.respondent.edit') + ->setNamedParameters($params) + ->setHiddenOrgId($orgId); + $page->addAction($this->_('Export'), 'pr.respondent.export-html', 'export') + ->setNamedParameters($params) + ->setHiddenOrgId($orgId); if ($this->escort instanceof Gems_Project_Tracks_SingleTrackInterface) { $trType = 'T'; $subPage = $page->addPage($this->_('Track'), 'pr.track', 'track', 'show-track') - ->setNamedParameters($params) - ->addHiddenParameter(Gems_Model::TRACK_ID, $this->escort->getTrackId(), 'gtr_track_type', $trType); + ->setNamedParameters($params) + ->setHiddenOrgId($orgId) + ->addHiddenParameter(Gems_Model::TRACK_ID, $this->escort->getTrackId(), 'gtr_track_type', $trType); $tkPages[$trType] = $subPage->addAction($this->_('Token'), 'pr.token', 'show') ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') ->setParameterFilter('gtr_track_type', $trType, Gems_Model::ID_TYPE, 'token'); $subPage->addAction($this->_('Add'), 'pr.track.create', 'create') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') - ->setParameterFilter('gtr_track_type', $trType, 'track_can_be_created', 1) - ->addHiddenParameter('track_can_be_created', 1); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType, 'track_can_be_created', 1) + ->addHiddenParameter('track_can_be_created', 1); $subPage->addAction($this->_('Preview'), 'pr.track', 'view') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') - ->setParameterFilter('gtr_track_type', $trType, 'track_can_be_created', 1) - ->addHiddenParameter('track_can_be_created', 1); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType, 'track_can_be_created', 1) + ->addHiddenParameter('track_can_be_created', 1); } else { $trPage = $page->addPage($this->_('Tracks'), 'pr.track', 'track'); $trType = 'T'; - $trPage->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr'); - $trPage->addAutofilterAction(); + $trPage->setNamedParameters($params) + ->setHiddenOrgId($orgId) + ->addAutofilterAction(); /* iff(is('gtr_track_type', $trType), aget(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track')) */ $trPage->addAction($this->_('Add'), 'pr.track.create', 'create') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') - ->setParameterFilter('gtr_track_type', $trType); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType); $trPage->addAction($this->_('Assignments'), 'pr.track', 'view') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') - ->setParameterFilter('gtr_track_type', $trType); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType); $tkPages[$trType] = $trPage->addAction($this->_('Show'), 'pr.track', 'show-track') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') - ->setParameterFilter('gtr_track_type', $trType); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType); $tkPages[$trType]->addAction($this->_('Token'), 'pr.token', 'show') - ->setNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') - ->setParameterFilter('gtr_track_type', $trType, Gems_Model::ID_TYPE, 'token'); + ->setNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') + ->setParameterFilter('gtr_track_type', $trType, Gems_Model::ID_TYPE, 'token'); $trPage->addAction($this->_('Edit'), 'pr.track.edit', 'edit-track') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') - ->setParameterFilter('gtr_track_type', $trType, 'can_edit', 1); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType, 'can_edit', 1); $trPage->addAction($this->_('Delete'), 'pr.track.delete', 'delete-track') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') - ->setParameterFilter('gtr_track_type', $trType, 'can_edit', 1); + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::RESPONDENT_TRACK, 'gr2t_id_respondent_track') + ->setHiddenOrgId($orgId) + ->setParameterFilter('gtr_track_type', $trType, 'can_edit', 1); if ($this->escort instanceof Gems_Project_Tracks_StandAloneSurveysInterface) { $trPage = $page->addPage($this->_('Surveys'), 'pr.survey', 'survey'); $trType = 'S'; - $trPage->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr'); - $trPage->addAutofilterAction(); + $trPage->setNamedParameters($params) + ->setHiddenOrgId($orgId) + ->addAutofilterAction(); $trPage->addAction($this->_('Add'), 'pr.survey.create', 'create') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) ->setParameterFilter('gtr_track_type', $trType); $trPage->addAction($this->_('Assigned'), 'pr.survey', 'view') - ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gr2o_patient_nr', Gems_Model::TRACK_ID, 'gtr_id_track') + ->setNamedParameters($params) + ->addNamedParameters(Gems_Model::TRACK_ID, 'gtr_id_track') + ->setHiddenOrgId($orgId) ->setParameterFilter('gtr_track_type', $trType); $tkPages[$trType] = $trPage; @@ -362,8 +392,8 @@ foreach ($tkPages as $trType => $tkPage) { $tkPage->addEditAction('pr.token.edit') - ->setNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') - ->setParameterFilter('gtr_track_type', $trType, 'grc_success', 1, Gems_Model::ID_TYPE, 'token'); + ->setNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') + ->setParameterFilter('gtr_track_type', $trType, 'grc_success', 1, Gems_Model::ID_TYPE, 'token'); $tkPage->addDeleteAction('pr.token.delete') ->addNamedParameters(MUtil_Model::REQUEST_ID, 'gto_id_token') @@ -387,7 +417,9 @@ ->set('target', MUtil_Model::REQUEST_ID); } - $page->addDeleteAction('pr.respondent.delete')->setNamedParameters($params); + $page->addDeleteAction('pr.respondent.delete') + ->setNamedParameters($params) + ->setHiddenOrgId($orgId); return $page; } Modified: trunk/library/snippets/RespondentTokenSnippet.php =================================================================== --- trunk/library/snippets/RespondentTokenSnippet.php 2012-06-18 13:01:26 UTC (rev 772) +++ trunk/library/snippets/RespondentTokenSnippet.php 2012-06-20 16:59:53 UTC (rev 773) @@ -96,6 +96,7 @@ // // Initiate data retrieval for stuff needed by links $bridge->gr2o_patient_nr; + $bridge->gr2o_id_organization; $bridge->gr2t_id_respondent_track; $bridge->gtr_track_type; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-21 14:57:22
|
Revision: 779 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=779&view=rev Author: matijsdejong Date: 2012-06-21 14:57:13 +0000 (Thu, 21 Jun 2012) Log Message: ----------- Refined use of multiple organizations - organizations switches cause less errors - fixed bug in respondent save - organization is displayed when user has multi org - multi org right means always show multi org browse (correctable) Modified Paths: -------------- trunk/library/changelog.txt trunk/library/classes/Gems/Default/RespondentAction.php trunk/library/classes/Gems/Model/RespondentModel.php trunk/library/classes/Gems/Model.php trunk/library/classes/GemsEscort.php Modified: trunk/library/changelog.txt =================================================================== --- trunk/library/changelog.txt 2012-06-21 12:21:32 UTC (rev 778) +++ trunk/library/changelog.txt 2012-06-21 14:57:13 UTC (rev 779) @@ -2,7 +2,7 @@ ============================================================ Internally code no longer uses the 'Hidden Organization' but expects both an id1/patientNr plus an id2/organizationId to be specified Externally the organization id is still left out of the url when not needed -Check all your (snippet) extensions to RespondentAction and project specific versions of ShowTrackTokenSnippet and ShowSingleSurveySnippet: you may need to specify extra parameters as the menu items need to know the organization id +UPGRADE WARNING: Check all your (snippet) extensions to RespondentAction and project specific versions of ShowTrackTokenSnippet and ShowSingleSurveySnippet: you may need to specify extra parameters as the menu items need to know the organization id Important changes from 1.5.3 => 1.5.4 ============================================================ Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-21 12:21:32 UTC (rev 778) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-21 14:57:13 UTC (rev 779) @@ -120,7 +120,11 @@ $phonesep = $bridge->itemIf($bridge->grs_phone_1, MUtil_Html::raw('☏ ')); $citysep = $bridge->itemIf($bridge->grs_zipcode, MUtil_Html::raw(' ')); - $bridge->addMultiSort('gr2o_patient_nr', $br, 'gr2o_opened'); + if ($this->loader->getCurrentUser()->hasPrivilege('pr.respondent.multiorg')) { + $bridge->addMultiSort('gr2o_patient_nr', $br, 'gor_name'); //, MUtil_Html::raw(' '), 'gr2o_opened'); + } else { + $bridge->addMultiSort('gr2o_patient_nr', $br, 'gr2o_opened'); + } $bridge->addMultiSort('name', $br, 'grs_email'); $bridge->addMultiSort('grs_address_1', $br, 'grs_zipcode', $citysep, 'grs_city'); $bridge->addMultiSort('grs_birthday', $br, $phonesep, 'grs_phone_1'); @@ -153,19 +157,21 @@ } $model->set('grs_ssn', 'description', sprintf($this->_('Random Example BSN: %s'), $num)); - } else { $model->set('grs_ssn', 'description', $this->_('Enter a 9-digit SSN number.')); } $ucfirst = new Zend_Filter_Callback('ucfirst'); + // MUtil_Echo::track($data); + $bridge->addTab( 'caption1')->h4($this->_('Identification')); //Add the hidden fields after the tab, so validation will work. They need to be in the //same tab where they are needed $bridge->addHidden( 'grs_id_user'); $bridge->addHidden( 'gr2o_id_organization'); $bridge->addHidden( $model->getKeyCopyName('gr2o_patient_nr')); + $bridge->addHidden( $model->getKeyCopyName('gr2o_id_organization')); $bridge->addText( 'grs_ssn', 'label', $this->_('SSN'), 'size', 10, 'maxlength', 12) ->addValidator( new MUtil_Validate_Dutch_Burgerservicenummer()) @@ -344,15 +350,46 @@ } /** + * Returns a text element for autosearch. Can be overruled. + * + * The form / html elements to search on. Elements can be grouped by inserting null's between them. + * That creates a distinct group of elements + * + * @param MUtil_Model_ModelAbstract $model + * @param array $data The $form field values (can be usefull, but no need to set them) + * @return array Of Zend_Form_Element's or static tekst to add to the html or null for group breaks. + */ + protected function getAutoSearchElements(MUtil_Model_ModelAbstract $model, array $data) + { + $elements = parent::getAutoSearchElements($model, $data); + + if ($model->isMultiOrganization()) { + $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents(); + $allowedOrganizations = $this->loader->getCurrentUser()->getAllowedOrganizations(); + + $options = array_intersect($availableOrganizations, $allowedOrganizations); + + $elements[] = $this->_createSelectElement(MUtil_Model::REQUEST_ID2, $options, $this->_('(all organizations)')); + } + + return $elements; + } + + /** * Returns the currently used organization * + * @param int $default Optional default value * @return int An organization id */ - protected function getOrganizationId() + protected function getOrganizationId($default = null) { - if ($orgId = $this->_getParam(MUtil_Model::REQUEST_ID2)) { + if ($orgId = $this->_getParam(MUtil_Model::REQUEST_ID2, $default)) { return $orgId; } + $data = $this->getCachedRequestData(false); + if (isset($data[MUtil_Model::REQUEST_ID2])) { + return $data[MUtil_Model::REQUEST_ID2]; + } return $this->loader->getCurrentUser()->getCurrentOrganizationId(); } @@ -361,10 +398,10 @@ { switch ($name) { case 'gr2o_patient_nr': - return $this->_getParam(MUtil_Model::REQUEST_ID, $this->_getParam(MUtil_Model::REQUEST_ID1, $default)); + return $this->_getParam(MUtil_Model::REQUEST_ID1, $default); case 'gr2o_id_organization': - return $this->_getParam(MUtil_Model::REQUEST_ID2, $default ? $default : $this->loader->getCurrentUser()->getCurrentOrganizationId()); + return $this->getOrganizationId($default); case 'gto_id_token': return null; @@ -397,7 +434,7 @@ { $user = $this->loader->getCurrentUser(); - if ($user->hasPrivilege('pr.respondent.multiorg') || $this->loader->getOrganization()->canHaveRespondents()) { + if ($user->hasPrivilege('pr.respondent.multiorg') || $user->getCurrentOrganization()->canHaveRespondents()) { parent::indexAction(); } else { $this->addSnippet('Organization_ChooseOrganizationSnippet'); @@ -482,7 +519,7 @@ } $params['model'] = $model; - $params['baseUrl'] = array(MUtil_Model::REQUEST_ID => $this->_getParam(MUtil_Model::REQUEST_ID)); + $params['baseUrl'] = array(MUtil_Model::REQUEST_ID1 => $this->_getParam(MUtil_Model::REQUEST_ID1), MUtil_Model::REQUEST_ID2 => $this->_getParam(MUtil_Model::REQUEST_ID2)); $params['buttons'] = $this->createMenuLinks(); $params['onclick'] = $this->findAllowedMenuItem('edit'); if ($params['onclick']) { Modified: trunk/library/classes/Gems/Model/RespondentModel.php =================================================================== --- trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-21 12:21:32 UTC (rev 778) +++ trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-21 14:57:13 UTC (rev 779) @@ -104,7 +104,7 @@ $filter = parent::_checkFilterUsed($filter); if (! isset($filter['gr2o_id_organization'])) { - if ($this->user->hasPrivilege('pr.respondent.multiorg') && (! $this->user->getCurrentOrganization()->canHaveRespondents())) { + if ($this->isMultiOrganization()) { $filter[] = 'gr2o_id_organization IN (' . implode(', ', array_keys($this->user->getAllowedOrganizations())) . ')'; } else { $filter['gr2o_id_organization'] = $this->getCurrentOrganization(); @@ -126,7 +126,7 @@ */ public function addLoginCheck() { - $this->addLeftTable('gems__user_logins', array('gr2o_patient_nr' => 'gul_login', 'gr2o_id_organization' => 'gul_id_organization'), 'gul'); + $this->addLeftTable('gems__user_logins', array('gr2o_patient_nr' => 'gul_login', 'gr2o_id_organization' => 'gul_id_organization'), 'gul', false); $this->addColumn("CASE WHEN gul_id_user IS NULL OR gul_user_class = 'NoLogin' OR gul_can_login = 0 THEN 0 ELSE 1 END", 'has_login'); return $this; @@ -166,9 +166,10 @@ public function copyKeys($reset = false) { $keys = $this->_getKeysFor('gems__respondent2org'); - $key = reset($keys); - $this->addColumn('gems__respondent2org.' . $key, $this->getKeyCopyName($key)); + foreach ($keys as $key) { + $this->addColumn('gems__respondent2org.' . $key, $this->getKeyCopyName($key)); + } return $this; } @@ -182,17 +183,15 @@ return $model; } - public function save(array $newValues, array $filter = null, array $saveTables = null) + /** + * True when the default filter can contain multiple organizations + * + * @return boolean + */ + public function isMultiOrganization() { - if ((null === $filter) || (! array_key_exists('gr2o_id_organization', $filter))) { - $filter['gr2o_id_organization'] = $this->getCurrentOrganization(); - } - - if (! (isset($newValues['gr2o_id_organization']) && $newValues['gr2o_id_organization'])) { - $newValues['gr2o_id_organization'] = $filter['gr2o_id_organization']; - } - - return parent::save($newValues, $filter, $saveTables); + // return ($this->user->hasPrivilege('pr.respondent.multiorg') && (! $this->user->getCurrentOrganization()->canHaveRespondents())); + return $this->user->hasPrivilege('pr.respondent.multiorg'); } } Modified: trunk/library/classes/Gems/Model.php =================================================================== --- trunk/library/classes/Gems/Model.php 2012-06-21 12:21:32 UTC (rev 778) +++ trunk/library/classes/Gems/Model.php 2012-06-21 14:57:13 UTC (rev 779) @@ -204,6 +204,10 @@ $translated = $this->util->getTranslated(); $model->setIfExists('gr2o_patient_nr', 'label', $this->translate->_('Respondent nr')); + if ((! $detailed) && $model->isMultiOrganization()) { + $model->addTable('gems__organizations', array('gr2o_id_organization' => 'gor_id_organization')); + $model->setIfExists('gor_name', 'label', $this->translate->_('Organization')); + } $model->setIfExists('gr2o_opened', 'label', $this->translate->_('Opened'), 'formatFunction', $translated->formatDateTime); $model->setIfExists('gr2o_consent', 'label', $this->translate->_('Consent'), 'multiOptions', MUtil_Lazy::call($this->util->getDbLookup()->getUserConsents), 'default', $this->util->getDefaultConsent()); Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-06-21 12:21:32 UTC (rev 778) +++ trunk/library/classes/GemsEscort.php 2012-06-21 14:57:13 UTC (rev 779) @@ -875,12 +875,14 @@ // Organization switcher $orgSwitch = MUtil_Html::create('div', array('id' => 'organizations')); $currentId = $user->getCurrentOrganizationId(); - $currentUri = base64_encode($this->view->url()); + $params = $this->request->getParams(); + unset($params[Gems_Util_RequestCache::RESET_PARAM]); + $currentUri = $this->view->url($params, null, true); - $url = $this->view->getHelper('url')->url(array('controller' => 'organization', 'action' => 'change-ui'), null, true); + $url = $this->view->url(array('controller' => 'organization', 'action' => 'change-ui'), null, true); $formDiv = $orgSwitch->form(array('method' => 'get', 'action' => $url))->div(); - $formDiv->input(array('type' => "hidden", 'name' => "current_uri", 'value' => $currentUri)); + $formDiv->input(array('type' => "hidden", 'name' => "current_uri", 'value' => base64_encode($currentUri))); $select = $formDiv->select(array('name' => "org", 'onchange' => "javascript:this.form.submit();")); foreach ($orgs as $id => $org) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-26 13:14:04
|
Revision: 789 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=789&view=rev Author: matijsdejong Date: 2012-06-26 13:13:53 +0000 (Tue, 26 Jun 2012) Log Message: ----------- Last step in multi organization display - Respondent/MultiOrganizationTab.php displays a tabbed row of organizations at the top when a resp exist in more than 1 organization the user has access to - gems__user_logins is now editable in respondent action as otherwise user id changes are not updated - cached getRespondentOrganizations added to User Small bug in TokenPlanAction.php: alt attribute not specified Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentAction.php trunk/library/classes/Gems/Default/TokenPlanAction.php trunk/library/classes/Gems/Model/RespondentModel.php trunk/library/classes/Gems/User/User.php trunk/library/classes/MUtil/Snippets/TabSnippetAbstract.php trunk/library/snippets/Respondent/MultiOrganizationTab.php Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-26 13:13:53 UTC (rev 789) @@ -47,6 +47,7 @@ abstract class Gems_Default_RespondentAction extends Gems_Controller_BrowseEditAction implements Gems_Menu_ParameterSourceInterface { public $showSnippets = array( + 'Respondent_MultiOrganizationTab', 'RespondentDetailsSnippet', 'AddTracksSnippet', 'RespondentTokenTabsSnippet', @@ -172,6 +173,9 @@ $bridge->addHidden( 'gr2o_id_organization'); $bridge->addHidden( $model->getKeyCopyName('gr2o_patient_nr')); $bridge->addHidden( $model->getKeyCopyName('gr2o_id_organization')); + if (isset($data['gul_id_user'])) { + $bridge->addHidden('gul_id_user'); + } $bridge->addText( 'grs_ssn', 'label', $this->_('SSN'), 'size', 10, 'maxlength', 12) ->addValidator( new MUtil_Validate_Dutch_Burgerservicenummer()) @@ -364,11 +368,8 @@ $elements = parent::getAutoSearchElements($model, $data); if ($model->isMultiOrganization()) { - $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents(); - $allowedOrganizations = $this->loader->getCurrentUser()->getAllowedOrganizations(); + $options = $this->loader->getCurrentUser()->getRespondentOrganizations(); - $options = array_intersect($availableOrganizations, $allowedOrganizations); - $elements[] = $this->_createSelectElement(MUtil_Model::REQUEST_ID2, $options, $this->_('(all organizations)')); } Modified: trunk/library/classes/Gems/Default/TokenPlanAction.php =================================================================== --- trunk/library/classes/Gems/Default/TokenPlanAction.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/classes/Gems/Default/TokenPlanAction.php 2012-06-26 13:13:53 UTC (rev 789) @@ -342,11 +342,8 @@ // Select organisation if (($this->escort instanceof Gems_Project_Organization_MultiOrganizationInterface)) { - $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents(); - $allowedOrganizations = $this->loader->getCurrentUser()->getAllowedOrganizations(); + $options = $this->loader->getCurrentUser()->getRespondentOrganizations(); - $options = array_intersect($availableOrganizations, $allowedOrganizations); - $elements[] = $this->_createSelectElement('gto_id_organization', $options); } Modified: trunk/library/classes/Gems/Model/RespondentModel.php =================================================================== --- trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/classes/Gems/Model/RespondentModel.php 2012-06-26 13:13:53 UTC (rev 789) @@ -126,7 +126,7 @@ */ public function addLoginCheck() { - $this->addLeftTable('gems__user_logins', array('gr2o_patient_nr' => 'gul_login', 'gr2o_id_organization' => 'gul_id_organization'), 'gul', false); + $this->addLeftTable('gems__user_logins', array('gr2o_patient_nr' => 'gul_login', 'gr2o_id_organization' => 'gul_id_organization'), 'gul'); $this->addColumn("CASE WHEN gul_id_user IS NULL OR gul_user_class = 'NoLogin' OR gul_can_login = 0 THEN 0 ELSE 1 END", 'has_login'); return $this; Modified: trunk/library/classes/Gems/User/User.php =================================================================== --- trunk/library/classes/Gems/User/User.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/classes/Gems/User/User.php 2012-06-26 13:13:53 UTC (rev 789) @@ -854,6 +854,26 @@ } /** + * Get an array of OrgId => Org Name for all allowed organizations that can have + * respondents for the current logged in user + * + * @return array + */ + public function getRespondentOrganizations() + { + + if (! $this->_hasVar('__allowedRespOrgs')) { + $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents(); + $allowedOrganizations = $this->getAllowedOrganizations(); + + $this->_setVar('__allowedRespOrgs', array_intersect($availableOrganizations, $allowedOrganizations)); + } + // MUtil_Echo::track($this->_getVar('__allowedOrgs')); + + return $this->_getVar('__allowedRespOrgs'); + } + + /** * Returns the current user role. * * @return string Modified: trunk/library/classes/MUtil/Snippets/TabSnippetAbstract.php =================================================================== --- trunk/library/classes/MUtil/Snippets/TabSnippetAbstract.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/classes/MUtil/Snippets/TabSnippetAbstract.php 2012-06-26 13:13:53 UTC (rev 789) @@ -3,7 +3,7 @@ /** * Copyright (c) 2011, Erasmus MC * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright @@ -14,7 +14,7 @@ * * Neither the name of Erasmus MC nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -25,8 +25,8 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * + * + * * @package MUtil * @subpackage Snippets * @author Menoo Dekker <men...@er...> @@ -36,9 +36,9 @@ */ /** - * Abstract class for quickly creating a tabbed bar, or rather a div that contains a number + * Abstract class for quickly creating a tabbed bar, or rather a div that contains a number * of links, adding specific classes for display. - * + * * @package MUtil * @subpackage Snippets * @copyright Copyright (c) 2011 Erasmus MC @@ -49,11 +49,11 @@ { /** * Optional standard url parts - * + * * @var array */ protected $baseurl = array(); - + /** * Shortfix to add class attribute * @@ -63,12 +63,25 @@ /** * - * @var string + * @var string Id of the current tab */ + protected $currentTab; + + /** + * + * @var string Id of default tab + */ protected $defaultTab; /** + * Show bar when there is only a single tab * + * @var boolean + */ + protected $displaySingleTab = false; + + /** + * * @var array */ protected $href = array(); @@ -80,10 +93,51 @@ */ protected $request; + /** + * + * @var string Class attribute for active tab + */ protected $tabActiveClass = 'active'; + + /** + * + * @var string Class attribute for all tabs + */ protected $tabClass = 'tab'; - abstract protected function getParameterKey(); + /** + * Return optionally the single parameter key which should left out for the default value, + * but is added for all other tabs. + * + * @return mixed + */ + protected function getParameterKey() + { + return null; + } + + /** + * Return the parameters that should be used for this tabId + * + * @param string $tabId + * @return array + */ + protected function getParameterKeysFor($tabId) + { + $paramKey = $this->getParameterKey(); + + if ($paramKey && ($tabId != $this->defaultTab)) { + return array($paramKey => $tabId); + } + + return array(); + } + + /** + * Function used to fill the tab bar + * + * @return array tabId => label + */ abstract protected function getTabs(); /** @@ -96,37 +150,39 @@ */ public function getHtmlOutput(Zend_View_Abstract $view) { - if (isset($parameters['baseurl']) && is_array($this->baseurl)) { - $this->href = $this->href + $this->baseurl; - } + $tabs = $this->getTabs(); - $param = $this->getParameterKey(); - $tabs = $this->getTabs(); + if ($tabs && ($this->displaySingleTab || count($tabs) > 1)) { + // Let loose + if (isset($parameters['baseurl']) && is_array($this->baseurl)) { + $this->href = $this->href + $this->baseurl; + } - // When empty, first is default - if (null === $this->defaultTab) { - reset($tabs); - $this->defaultTab = key($tabs); - } + // When empty, first is default + if (null === $this->defaultTab) { + reset($tabs); + $this->defaultTab = key($tabs); + } + if (null === $this->currentTab) { + $this->currentTab = $this->request->getParam($this->getParameterKey(), $this->defaultTab); + } - $argFilter = $this->request->getParam($param); - $argFilter = $argFilter ? $argFilter : $this->defaultTab; + $tabRow = MUtil_Html::create()->div(); - $tabRow = MUtil_Html::create()->div(); + foreach ($tabs as $tabId => $content) { - foreach ($tabs as $tabName => $content) { - $this->href[$param] = ($tabName == $this->defaultTab) ? null : $tabName; + $div = $tabRow->div(array('class' => $this->tabClass)); - $div = $tabRow->div(array('class' => $this->tabClass)); - $div->a($this->href, $content); + $div->a($this->getParameterKeysFor($tabId) + $this->href, $content); - if ($argFilter == $tabName) { - $div->appendAttrib('class', $this->tabActiveClass); + if ($this->currentTab == $tabId) { + $div->appendAttrib('class', $this->tabActiveClass); + } } + + return $tabRow; + } else { + return null; } - - return $tabRow; } - - } Modified: trunk/library/snippets/Respondent/MultiOrganizationTab.php =================================================================== --- trunk/library/snippets/Respondent/MultiOrganizationTab.php 2012-06-26 11:05:22 UTC (rev 788) +++ trunk/library/snippets/Respondent/MultiOrganizationTab.php 2012-06-26 13:13:53 UTC (rev 789) @@ -46,7 +46,7 @@ */ class Respondent_MultiOrganizationTab extends MUtil_Snippets_TabSnippetAbstract { - protected $href = array('page' => null); + protected $href = array(); /** * Required @@ -56,6 +56,12 @@ protected $db; /** + * + * @var array id specific hrefs + */ + protected $hrefs; + + /** * Required * * @var Gems_Loader @@ -69,26 +75,38 @@ */ protected $respondentData; - protected function getParameterKey() + /** + * Return the parameters that should be used for this tabId + * + * @param string $tabId + * @return array + */ + protected function getParameterKeysFor($tabId) { - return 'id2'; + return $this->hrefs[$tabId]; } + /** + * Function used to fill the tab bar + * + * @return array tabId => label + */ protected function getTabs() { $user = $this->loader->getCurrentUser(); - $orgs = $user->getAllowedOrganizations(); - $sql = "SELECT gr2o_patient_nr FROM gems__respondent2org WHERE gr2o_id_user = ? AND gr2o_id_organization = ?"; - $resp = $this->respondentData['grs_id_user']; - // TODO: - // Shows tabs only for existing respondents - // Tabslinks should contain two parameters - // No option for difference active / inactive - - foreach ($orgs as $orgId => $name) { - if ($patientNr = $this->db->fetchOne($sql, array($resp, $orgId))) { + $sql = "SELECT gr2o_id_organization, gr2o_patient_nr FROM gems__respondent2org WHERE gr2o_id_user = ?"; + + $this->defaultTab = $user->getCurrentOrganizationId(); + $this->currentTab = $this->request->getParam(MUtil_Model::REQUEST_ID2); + + $allowedOrgs = $user->getRespondentOrganizations(); + $existingOrgs = $this->db->fetchPairs($sql, $this->respondentData['grs_id_user']); + + foreach ($allowedOrgs as $orgId => $name) { + if (isset($existingOrgs[$orgId])) { $tabs[$orgId] = $name; + $this->hrefs[$orgId] = array(MUtil_Model::REQUEST_ID1 => $existingOrgs[$orgId], MUtil_Model::REQUEST_ID2 => $orgId); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-28 09:48:49
|
Revision: 794 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=794&view=rev Author: matijsdejong Date: 2012-06-28 09:48:38 +0000 (Thu, 28 Jun 2012) Log Message: ----------- Show organization name in caption when the user is not with the current organization Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentAction.php trunk/library/classes/Gems/Snippets/RespondentDetailSnippetAbstract.php trunk/library/snippets/RespondentDetailsSnippet.php trunk/library/snippets/RespondentDetailsWithAssignmentsSnippet.php Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-28 08:46:02 UTC (rev 793) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-06-28 09:48:38 UTC (rev 794) @@ -47,7 +47,6 @@ abstract class Gems_Default_RespondentAction extends Gems_Controller_BrowseEditAction implements Gems_Menu_ParameterSourceInterface { public $showSnippets = array( - 'Respondent_MultiOrganizationTab', 'RespondentDetailsSnippet', 'AddTracksSnippet', 'RespondentTokenTabsSnippet', Modified: trunk/library/classes/Gems/Snippets/RespondentDetailSnippetAbstract.php =================================================================== --- trunk/library/classes/Gems/Snippets/RespondentDetailSnippetAbstract.php 2012-06-28 08:46:02 UTC (rev 793) +++ trunk/library/classes/Gems/Snippets/RespondentDetailSnippetAbstract.php 2012-06-28 09:48:38 UTC (rev 794) @@ -3,7 +3,7 @@ /** * Copyright (c) 2011, Erasmus MC * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright @@ -14,7 +14,7 @@ * * Neither the name of Erasmus MC nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -25,8 +25,8 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * + * + * * @package Gems * @subpackage Snippets * @author Matijs de Jong <mj...@ma...> @@ -48,41 +48,54 @@ { /** * Optional: array of buttons - * + * * @var array */ protected $buttons; - + /** * + * @var Gems_Loader + */ + protected $loader; + + /** + * * @var Gems_Model_RespondentModel */ protected $model; - + /** - * Optional: href for onclick - * + * Optional: href for onclick + * * @var MUtil_Html_HrefArrayAttribute */ protected $onclick; - + /** * Optional: repaeter respondentData - * + * * @var MUtil_Lazy_RepeatableInterface */ protected $repeater; - + /** + * Required + * + * @var Zend_Controller_Request_Abstract + */ + protected $request; + + /** * Optional: not always filled, use repeater - * + * * @var array */ protected $respondentData; /** * - * @param MUtil_Model_VerticalTableBridge $bridge + * @param MUtil_Model_VerticalTableBridge $bridge * @return void */ protected function addButtons(MUtil_Model_VerticalTableBridge $bridge) @@ -94,7 +107,7 @@ /** * - * @param MUtil_Model_VerticalTableBridge $bridge + * @param MUtil_Model_VerticalTableBridge $bridge * @return void */ protected function addOnClick(MUtil_Model_VerticalTableBridge $bridge) @@ -103,16 +116,36 @@ $bridge->tbody()->onclick = array('location.href=\'', $this->onclick, '\';'); } } - + /** * Place to set the data to display - * + * * @param MUtil_Model_VerticalTableBridge $bridge * @return void */ abstract protected function addTableCells(MUtil_Model_VerticalTableBridge $bridge); - + /** + * Returns the caption for this table + * + * @param boolean $onlyNotCurrent Only return a string when the organization is different + * @return string + */ + protected function getCaption($onlyNotCurrent = false) + { + $orgId = $this->request->getParam(MUtil_Model::REQUEST_ID2); + if ($orgId == $this->loader->getCurrentUser()->getCurrentOrganizationId()) { + if ($onlyNotCurrent) { + return; + } else { + return $this->_('Respondent information'); + } + } else { + return sprintf($this->_('%s respondent information'), $this->loader->getOrganization($orgId)->getName()); + } + } + + /** * Create the snippets content * * This is a stub function either override getHtmlOutput() or override render() @@ -125,14 +158,14 @@ $bridge = new MUtil_Model_VerticalTableBridge($this->model, array('class' => 'displayer')); $bridge->setRepeater($this->repeater); $bridge->setColumnCount(2); // May be overruled - + $this->addTableCells($bridge); $this->addButtons($bridge); $this->addOnClick($bridge); - + return $bridge->getTable(); } - + /** * The place to check if the data set in the snippet is valid * to generate the snippet. @@ -158,14 +191,14 @@ if (! is_array(reset($this->respondentData))) { $this->respondentData = array($this->respondentData); } - + $this->repeater = MUtil_Lazy::repeat($this->respondentData); } } - + return true; } - + return false; } } Modified: trunk/library/snippets/RespondentDetailsSnippet.php =================================================================== --- trunk/library/snippets/RespondentDetailsSnippet.php 2012-06-28 08:46:02 UTC (rev 793) +++ trunk/library/snippets/RespondentDetailsSnippet.php 2012-06-28 09:48:38 UTC (rev 794) @@ -3,7 +3,7 @@ /** * Copyright (c) 2011, Erasmus MC * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright @@ -14,7 +14,7 @@ * * Neither the name of Erasmus MC nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -25,8 +25,8 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * + * + * * @package Gems * @subpackage Snippets * @author Matijs de Jong <mj...@ma...> @@ -36,7 +36,7 @@ */ /** - * Displays a respondent's details + * Displays a respondent's details * * @package Gems * @subpackage Snippets @@ -48,16 +48,16 @@ { /** * Place to set the data to display - * + * * @param MUtil_Model_VerticalTableBridge $bridge * @return void */ protected function addTableCells(MUtil_Model_VerticalTableBridge $bridge) { $HTML = MUtil_Html::create(); - - $bridge->caption($this->_('Respondent information')); + $bridge->caption($this->getCaption()); + $br = $HTML->br(); $address[] = $bridge->grs_address_1; $address[] = $br; Modified: trunk/library/snippets/RespondentDetailsWithAssignmentsSnippet.php =================================================================== --- trunk/library/snippets/RespondentDetailsWithAssignmentsSnippet.php 2012-06-28 08:46:02 UTC (rev 793) +++ trunk/library/snippets/RespondentDetailsWithAssignmentsSnippet.php 2012-06-28 09:48:38 UTC (rev 794) @@ -71,7 +71,7 @@ $HTML = MUtil_Html::create(); - $bridge->tdh($this->_('Respondent information'), array('colspan' => 2)); + $bridge->tdh($this->getCaption(), array('colspan' => 2)); // Caption for surveys $trackLabel = $this->_('Assigned surveys'); @@ -96,6 +96,8 @@ // ROW 1 $bridge->addItem($bridge->gr2o_patient_nr, $this->_('Respondent nr: ')); + $rowspan = 10; + // Column for surveys $tracksModel = $this->model->getRespondentTracksModel(); // Add token as action needs token ID + only one per single survey @@ -117,7 +119,7 @@ $tracksTarget->em($tracksData->gr2t_track_info, array('renderWithoutContent' => false)); $tracksTarget[] = ' '; $tracksTarget[] = MUtil_Lazy::call($this->util->getTranslated()->formatDate, $tracksData->gr2t_created); - $bridge->td($tracksList, array('rowspan' => 10, 'class' => 'linked tracksList')); + $bridge->td($tracksList, array('rowspan' => $rowspan, 'class' => 'linked tracksList')); // Column for tracks $tracksModel = $this->model->getRespondentTracksModel(); @@ -138,7 +140,7 @@ $tracksTarget->em($tracksData->gr2t_track_info, array('renderWithoutContent' => false)); $tracksTarget[] = ' '; $tracksTarget[] = MUtil_Lazy::call($this->util->getTranslated()->formatDate, $tracksData->gr2t_created); - $bridge->td($tracksList, array('rowspan' => 10, 'class' => 'linked tracksList')); + $bridge->td($tracksList, array('rowspan' => $rowspan, 'class' => 'linked tracksList')); // OTHER ROWS $bridge->addItem( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-07-05 16:45:11
|
Revision: 819 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=819&view=rev Author: matijsdejong Date: 2012-07-05 16:45:00 +0000 (Thu, 05 Jul 2012) Log Message: ----------- Made RoleAction a lot more user friendly when editing through interactifity Added new default layout Modified Paths: -------------- trunk/library/classes/Gems/Default/RoleAction.php trunk/library/classes/MUtil/Acl.php Added Paths: ----------- trunk/library/layouts/scripts/gems-fluid2.phtml Modified: trunk/library/classes/Gems/Default/RoleAction.php =================================================================== --- trunk/library/classes/Gems/Default/RoleAction.php 2012-07-05 14:51:48 UTC (rev 818) +++ trunk/library/classes/Gems/Default/RoleAction.php 2012-07-05 16:45:00 UTC (rev 819) @@ -47,6 +47,12 @@ class Gems_Default_RoleAction extends Gems_Controller_BrowseEditAction { /** + * + * @var MUtil_Acl + */ + public $acl; + + /** * @var GemsEscort */ public $escort; @@ -67,7 +73,7 @@ * @param MUtil_Model_FormBridge $bridge * @param MUtil_Model_ModelAbstract $model * @param optional boolean $new - * @return void + * @return void|array When an array of new values is return, these are used to update the $data array in the calling function */ protected function addFormElements(MUtil_Model_FormBridge $bridge, MUtil_Model_ModelAbstract $model, array $data, $new = false) { @@ -76,24 +82,65 @@ $bridge->addText('grl_description', 'size', 40); $roles = $this->acl->getRoles(); - $parents = array_combine($roles, $roles); - // Don't allow master or nologin as parents - unset($parents['master']); - unset($parents['nologin']); - $bridge->addMultiCheckbox('grl_parents', 'multiOptions', $parents, 'required', false); + $possibleParents = array_combine($roles, $roles); + $currentParents = array_combine($data['grl_parents'], $data['grl_parents']); + // Don't allow master, nologin or itself as parents + unset($possibleParents['master']); + unset($possibleParents['nologin']); + $disabled = array(); + + if (isset($data['grl_name'])) { + foreach ($possibleParents as $parent) { + if ($this->acl->hasRole($data['grl_name']) && $this->acl->inheritsRole($parent, $data['grl_name'])) { + $disabled[] = $parent; + unset($currentParents[$parent]); + } else { + foreach ($currentParents as $p2) { + if ($this->acl->hasRole($p2) && $this->acl->inheritsRole($p2, $parent)) { + $disabled[] = $parent; + $currentParents[$parent] = $parent; + } + } + } + } + $disabled[] = $data['grl_name']; + } + $bridge->addMultiCheckbox('grl_parents', 'multiOptions', $possibleParents, + 'disable', $disabled, + 'escape', false, + 'required', false, + 'onchange', 'this.form.submit();'); + $allPrivileges = $this->getUsedPrivileges(); $rolePrivileges = $this->escort->acl->getRolePrivileges(); - $inheritedPrivileges = (array) $rolePrivileges[$data['grl_name']][MUtil_Acl::INHERITED][Zend_Acl::TYPE_ALLOW]; - $privileges = array_diff_key($allPrivileges, array_flip($inheritedPrivileges)); - $inheritedPrivileges = array_intersect_key($allPrivileges, array_flip($inheritedPrivileges)); + if (isset($data['grl_parents']) && $data['grl_parents']) { + $inherited = array(); + foreach ((array) $data['grl_parents'] as $parent) { + if (isset($rolePrivileges[$parent])) { + $inherited = $inherited + array_flip($rolePrivileges[$parent][Zend_Acl::TYPE_ALLOW]); + $inherited = $inherited + array_flip($rolePrivileges[$parent][MUtil_Acl::INHERITED][Zend_Acl::TYPE_ALLOW]); + } + } + // Sneaks in: + unset($inherited[""]); + $privileges = array_diff_key($allPrivileges, $inherited); + $inheritedPrivileges = array_intersect_key($allPrivileges, $inherited); + } else { + $privileges = $allPrivileges; + $inheritedPrivileges = false; + } $checkbox = $bridge->addMultiCheckbox('grl_privileges', 'multiOptions', $privileges, 'required', false); $checkbox->setAttrib('escape', false); //Don't use escaping, so the line breaks work - $checkbox = $bridge->addMultiCheckbox('inherited', 'label', $this->_('Inherited'), 'multiOptions', $inheritedPrivileges, 'required', false, 'disabled', 'disabled'); - $checkbox->setAttrib('escape', false); //Don't use escaping, so the line breaks work - $checkbox->setValue(array_keys($inheritedPrivileges)); //To check the boxes + if ($inheritedPrivileges) { + $checkbox = $bridge->addMultiCheckbox('inherited', 'label', $this->_('Inherited'), 'multiOptions', $inheritedPrivileges, 'required', false, 'disabled', 'disabled'); + $checkbox->setAttrib('escape', false); //Don't use escaping, so the line breaks work + $checkbox->setValue(array_keys($inheritedPrivileges)); //To check the boxes + } + + return array('grl_parents' => $currentParents); } /** @@ -178,6 +225,10 @@ $model->set('grl_name', 'label', $this->_('Name')); $model->set('grl_description', 'label', $this->_('Description')); $model->set('grl_parents', 'label', $this->_('Parents')); + + $tp = new MUtil_Model_Type_ConcatenatedRow(',', ', '); + $tp->apply($model, 'grl_parents'); + $model->set('grl_privileges', 'label', $this->_('Privileges'), 'formatFunction', array($this, 'formatLongLine')); Gems_Model::setChangeFieldsByPrefix($model, 'grl'); Modified: trunk/library/classes/MUtil/Acl.php =================================================================== --- trunk/library/classes/MUtil/Acl.php 2012-07-05 14:51:48 UTC (rev 818) +++ trunk/library/classes/MUtil/Acl.php 2012-07-05 16:45:00 UTC (rev 819) @@ -125,10 +125,10 @@ * * Sample output: * <code> - * [MUtil-Acl::PARENTS]=>array(parent_name=>parent_object), + * [MUtil_Acl::PARENTS]=>array(parent_name=>parent_object), * [Zend_Acl::TYPE_ALLOW]=>array([index]=>privilege), * [Zend_Acl::TYPE_DENY]=>array([index]=>privilege), - * [MUtil-Acl::INHERITED]=>array([Zend_Acl::TYPE_ALLOW]=>array([index]=>privilege), + * [MUtil_Acl::INHERITED]=>array([Zend_Acl::TYPE_ALLOW]=>array([index]=>privilege), * [Zend_Acl::TYPE_DENY]=>array([index]=>privilege)) * </code> * Added: trunk/library/layouts/scripts/gems-fluid2.phtml =================================================================== --- trunk/library/layouts/scripts/gems-fluid2.phtml (rev 0) +++ trunk/library/layouts/scripts/gems-fluid2.phtml 2012-07-05 16:45:00 UTC (rev 819) @@ -0,0 +1,74 @@ +<?php echo $this->doctype(); ?> +<html <?php echo 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$this->locale.'"' ?> lang="<?php echo $this->locale; ?>"> +<head> + <base href="<?php echo $this->serverUrl() . $this->baseUrl() ?>"/> + <?php + echo $this->headMeta(); + echo $this->headTitle(); + echo $this->headLink(); + echo $this->headStyle(); + + // Check if jQuery library is needed + if ($this->jQuery) { + echo $this->jQuery(); + //Error message for when jQuery can not be loaded + /*echo "<script> + if (typeof jQuery == 'undefined') { + document.writeln('<div class=\"errors\">The site requires external JavaScript from another domain, which is blocked or failed to load.</div>'); + } + </script>";*/ + } + + // Check if dojo library is needed + if ($this->dojoTheme) { + // Echo out the dojo <script> tags + echo $this->dojo(); + } + ?> + </head> +<body<?php if (isset($this->dojoTheme)) { echo " class='" . $this->dojoTheme . "' "; } ?>> + <div id="all"> + <div id="header"><?php if ($this->header) { echo $this->header->render($this); }?></div> + <div id="header_bar"><?php if ($this->header_bar) { echo $this->header_bar->render($this); } ?></div> +<?php + if ($this->navigation || $this->menuHtml): +?> + <div id="wrapper"> + <div class="main"> + <div id="main" ><?php + if ($this->main) { + echo $this->main->render($this); + } + echo $this->layout()->content; ?> + </div> + <div id="menu"><?php + echo $this->navigation()->menu(); + echo $this->menuHtml; + ?> + </div> + </div> + </div><?php + else: + ?> + <div id="wrapper" class="main fullwidth"> + <div><?php + if ($this->main) { + echo $this->main->render($this); + } + echo $this->layout()->content; + ?> </div> + </div><?php + endif; + ?> + <div id="footer"><?php + if ($this->footer) { + echo $this->footer->render($this); + } + ?> + </div> + </div><?php +echo MUtil_Echo::out(); +echo $this->headScript(); +echo $this->inlineScript(); +?></body> +</html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-07-13 13:43:23
|
Revision: 844 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=844&view=rev Author: mennodekker Date: 2012-07-13 13:43:15 +0000 (Fri, 13 Jul 2012) Log Message: ----------- Updated translations Only do _layout when we use the layout Use only get instead of get and post variables for org switch return url Modified Paths: -------------- trunk/library/classes/GemsEscort.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-07-13 11:32:36 UTC (rev 843) +++ trunk/library/classes/GemsEscort.php 2012-07-13 13:43:15 UTC (rev 844) @@ -887,7 +887,7 @@ // Organization switcher $orgSwitch = MUtil_Html::create('div', array('id' => 'organizations')); $currentId = $user->getCurrentOrganizationId(); - $params = $this->request->getParams(); + $params = $this->request->getQuery(); //Use only get params, not post unset($params['error_handler']); // If present, this is an object and causes a warning unset($params[Gems_Util_RequestCache::RESET_PARAM]); $currentUri = $this->view->url($params, null, true); @@ -1382,31 +1382,35 @@ { if ($request->isDispatched()) { - // Per project layout preparation - if (isset($this->project->layoutPrepare)) { - foreach ($this->project->layoutPrepare as $prepare => $type) { - if ($type) { - $function = '_layout' . ucfirst($prepare); + // Only when we need to render the layout, we run the layout prepare + if (Zend_Controller_Action_HelperBroker::hasHelper('layout') && Zend_Controller_Action_HelperBroker::getExistingHelper('layout')->isEnabled()) { - if (isset($this->project->layoutPrepareArgs, $this->project->layoutPrepareArgs[$prepare])) { - $args = $this->project->layoutPrepareArgs[$prepare]; - } else { - $args = array(); - } + // Per project layout preparation + if (isset($this->project->layoutPrepare)) { + foreach ($this->project->layoutPrepare as $prepare => $type) { + if ($type) { + $function = '_layout' . ucfirst($prepare); - $result = $this->$function($args); + if (isset($this->project->layoutPrepareArgs, $this->project->layoutPrepareArgs[$prepare])) { + $args = $this->project->layoutPrepareArgs[$prepare]; + } else { + $args = array(); + } - // When a result is returned, add it to the view, - // according to the type method - if (null !== $result) { - if (is_numeric($type)) { - $this->view->$prepare = $result; - } else { - if (! isset($this->view->$type)) { - $this->view->$type = new MUtil_Html_Sequence(); + $result = $this->$function($args); + + // When a result is returned, add it to the view, + // according to the type method + if (null !== $result) { + if (is_numeric($type)) { + $this->view->$prepare = $result; + } else { + if (!isset($this->view->$type)) { + $this->view->$type = new MUtil_Html_Sequence(); + } + $sequence = $this->view->$type; + $sequence[$prepare] = $result; } - $sequence = $this->view->$type; - $sequence[$prepare] = $result; } } } Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-07-13 11:32:36 UTC (rev 843) +++ trunk/library/languages/default-en.po 2012-07-13 13:43:15 UTC (rev 844) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-28 12:06+0100\n" +"POT-Creation-Date: 2012-07-13 14:46+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Matijs de Jong <mj...@ma...>\n" +"Last-Translator: Menno Dekker <men...@er...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -18,77 +18,81 @@ "X-Poedit-KeywordsList: plural:1,2\n" "X-Poedit-SearchPath-0: .\n" -#: classes/GemsEscort.php:214 +#: classes/GemsEscort.php:215 #, php-format msgid "Path %s not writable" msgstr "Path %s not writable" -#: classes/GemsEscort.php:776 +#: classes/GemsEscort.php:597 +msgid " > " +msgstr " > " + +#: classes/GemsEscort.php:788 #, php-format msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:778 +#: classes/GemsEscort.php:790 #: classes/Gems/Menu.php:249 msgid "Logoff" msgstr "Logoff" -#: classes/GemsEscort.php:781 +#: classes/GemsEscort.php:793 msgid "You are not logged in" msgstr "You are not logged in" -#: classes/GemsEscort.php:968 +#: classes/GemsEscort.php:980 #, php-format msgid "User: %s" msgstr "User: %s" -#: classes/GemsEscort.php:993 +#: classes/GemsEscort.php:1005 msgid "version" msgstr "version" -#: classes/GemsEscort.php:1435 +#: classes/GemsEscort.php:1447 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -#: classes/GemsEscort.php:1564 +#: classes/GemsEscort.php:1576 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1566 -#: classes/GemsEscort.php:1570 -#: classes/GemsEscort.php:1571 +#: classes/GemsEscort.php:1578 +#: classes/GemsEscort.php:1582 +#: classes/GemsEscort.php:1583 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" -#: classes/GemsEscort.php:1581 +#: classes/GemsEscort.php:1593 msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1583 -#: classes/GemsEscort.php:1626 +#: classes/GemsEscort.php:1595 +#: classes/GemsEscort.php:1638 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1599 +#: classes/GemsEscort.php:1611 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1601 +#: classes/GemsEscort.php:1613 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1611 -#: classes/GemsEscort.php:1624 +#: classes/GemsEscort.php:1623 +#: classes/GemsEscort.php:1636 msgid "You are no longer logged in." msgstr "You are no longer logged in." -#: classes/GemsEscort.php:1612 +#: classes/GemsEscort.php:1624 msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1753 -#: classes/GemsEscort.php:1755 +#: classes/GemsEscort.php:1765 +#: classes/GemsEscort.php:1767 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -453,94 +457,94 @@ msgid "Trying upgrade for %s to level %s: %s" msgstr "Trying upgrade for %s to level %s: %s" -#: classes/Gems/Controller/BrowseEditAction.php:355 +#: classes/Gems/Controller/BrowseEditAction.php:356 #, php-format msgid "New %s..." msgstr "New %s..." -#: classes/Gems/Controller/BrowseEditAction.php:388 +#: classes/Gems/Controller/BrowseEditAction.php:389 #, php-format msgid "Delete %s" msgstr "Delete %s" -#: classes/Gems/Controller/BrowseEditAction.php:392 +#: classes/Gems/Controller/BrowseEditAction.php:393 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s deleted" -#: classes/Gems/Controller/BrowseEditAction.php:409 +#: classes/Gems/Controller/BrowseEditAction.php:410 #, php-format msgid "Edit %s %s" msgstr "Edit %s %s" -#: classes/Gems/Controller/BrowseEditAction.php:411 +#: classes/Gems/Controller/BrowseEditAction.php:412 #, php-format msgid "Edit %s" msgstr "Edit %s" -#: classes/Gems/Controller/BrowseEditAction.php:509 +#: classes/Gems/Controller/BrowseEditAction.php:513 msgid "Free search text" msgstr "Free search text" -#: classes/Gems/Controller/BrowseEditAction.php:580 +#: classes/Gems/Controller/BrowseEditAction.php:584 msgid "Search" msgstr "Search" -#: classes/Gems/Controller/BrowseEditAction.php:596 +#: classes/Gems/Controller/BrowseEditAction.php:600 #, php-format msgid "No %s found" msgstr "No %s found" -#: classes/Gems/Controller/BrowseEditAction.php:680 +#: classes/Gems/Controller/BrowseEditAction.php:684 #, php-format msgid "No %s found." msgstr "No %s found." -#: classes/Gems/Controller/BrowseEditAction.php:798 +#: classes/Gems/Controller/BrowseEditAction.php:802 msgid "Are you sure?" msgstr "Are you sure?" -#: classes/Gems/Controller/BrowseEditAction.php:814 +#: classes/Gems/Controller/BrowseEditAction.php:818 msgid "Yes" msgstr "Yes" -#: classes/Gems/Controller/BrowseEditAction.php:815 +#: classes/Gems/Controller/BrowseEditAction.php:819 msgid "No" msgstr "No" -#: classes/Gems/Controller/BrowseEditAction.php:868 +#: classes/Gems/Controller/BrowseEditAction.php:872 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" -#: classes/Gems/Controller/BrowseEditAction.php:891 +#: classes/Gems/Controller/BrowseEditAction.php:895 #, php-format msgid "New %1$s..." msgstr "New %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:899 +#: classes/Gems/Controller/BrowseEditAction.php:903 msgid "Save" msgstr "Save" -#: classes/Gems/Controller/BrowseEditAction.php:935 +#: classes/Gems/Controller/BrowseEditAction.php:939 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" -#: classes/Gems/Controller/BrowseEditAction.php:938 +#: classes/Gems/Controller/BrowseEditAction.php:942 msgid "No changes to save." msgstr "No changes to save." -#: classes/Gems/Controller/BrowseEditAction.php:947 +#: classes/Gems/Controller/BrowseEditAction.php:951 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" -#: classes/Gems/Controller/BrowseEditAction.php:975 +#: classes/Gems/Controller/BrowseEditAction.php:979 #, php-format msgid "Show %s" msgstr "Show %s" -#: classes/Gems/Controller/BrowseEditAction.php:982 +#: classes/Gems/Controller/BrowseEditAction.php:986 #, php-format msgid "Unknown %s." msgstr "Unknown %s." @@ -550,26 +554,26 @@ msgid "Cancel" msgstr "Cancel" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:238 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:249 #, php-format msgid "Do you want to delete this %s?" msgstr "Do you want to delete this %s?" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:271 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:282 msgid "No data found." msgstr "No data found." -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:333 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:344 #, php-format msgid "No %s found..." msgstr "No %s found..." -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:343 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:354 #, php-format msgid "Showing %s" msgstr "Showing %s" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:379 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 msgid "item" msgid_plural "items" msgstr[0] "item" @@ -982,16 +986,16 @@ msgid "Export data" msgstr "Export data" -#: classes/Gems/Default/ExportAction.php:153 +#: classes/Gems/Default/ExportAction.php:152 msgid "Survey" msgstr "Survey" -#: classes/Gems/Default/ExportAction.php:168 +#: classes/Gems/Default/ExportAction.php:167 #, php-format msgid "%s records found." msgstr "%s records found." -#: classes/Gems/Default/ExportAction.php:181 +#: classes/Gems/Default/ExportAction.php:180 msgid "Export to" msgstr "Export to" @@ -1419,7 +1423,7 @@ msgstr "Email servers" #: classes/Gems/Default/MailTemplateAction.php:76 -#: classes/Gems/Default/RespondentAction.php:372 +#: classes/Gems/Default/RespondentAction.php:338 msgid "(all organizations)" msgstr "(all organizations)" @@ -1443,7 +1447,7 @@ #: classes/Gems/Default/OptionAction.php:136 #: classes/Gems/Default/OrganizationAction.php:135 -#: classes/Gems/Default/RespondentAction.php:220 +#: classes/Gems/Default/RespondentAction.php:186 msgid "Language" msgstr "Language" @@ -1820,112 +1824,102 @@ msgstr[0] "reception code" msgstr[1] "reception codes" -#: classes/Gems/Default/RespondentAction.php:76 -#: classes/Gems/Default/RespondentExportAction.php:71 -msgid "Group surveys" -msgstr "Group surveys" - -#: classes/Gems/Default/RespondentAction.php:81 -#: classes/Gems/Default/RespondentExportAction.php:76 -msgid "Output format" -msgstr "Output format" - -#: classes/Gems/Default/RespondentAction.php:159 +#: classes/Gems/Default/RespondentAction.php:125 #, php-format msgid "Random Example BSN: %s" msgstr "Random Example BSN: %s" -#: classes/Gems/Default/RespondentAction.php:161 +#: classes/Gems/Default/RespondentAction.php:127 msgid "Enter a 9-digit SSN number." msgstr "Enter a 9-digit BSN number." -#: classes/Gems/Default/RespondentAction.php:168 +#: classes/Gems/Default/RespondentAction.php:134 msgid "Identification" msgstr "Identification" -#: classes/Gems/Default/RespondentAction.php:179 +#: classes/Gems/Default/RespondentAction.php:145 msgid "SSN" msgstr "BSN" -#: classes/Gems/Default/RespondentAction.php:183 +#: classes/Gems/Default/RespondentAction.php:149 msgid "Patient number" msgstr "Patient number" -#: classes/Gems/Default/RespondentAction.php:192 +#: classes/Gems/Default/RespondentAction.php:158 msgid "Medical data" msgstr "Medical data" -#: classes/Gems/Default/RespondentAction.php:199 +#: classes/Gems/Default/RespondentAction.php:165 msgid "DBC's, etc..." msgstr "DBC's, etc..." -#: classes/Gems/Default/RespondentAction.php:202 +#: classes/Gems/Default/RespondentAction.php:168 msgid "Contact information" msgstr "Contact information" -#: classes/Gems/Default/RespondentAction.php:207 +#: classes/Gems/Default/RespondentAction.php:173 msgid "Respondent has no e-mail" msgstr "Patient has no e-mail" -#: classes/Gems/Default/RespondentAction.php:208 +#: classes/Gems/Default/RespondentAction.php:174 msgid "With housenumber" msgstr "With housenumber" -#: classes/Gems/Default/RespondentAction.php:215 +#: classes/Gems/Default/RespondentAction.php:181 msgid "Country" msgstr "Country" -#: classes/Gems/Default/RespondentAction.php:219 +#: classes/Gems/Default/RespondentAction.php:185 msgid "Settings" msgstr "Settings" -#: classes/Gems/Default/RespondentAction.php:221 +#: classes/Gems/Default/RespondentAction.php:187 msgid "Has the respondent signed the informed consent letter?" msgstr "Has the patient signed the informed consent letter?" -#: classes/Gems/Default/RespondentAction.php:251 +#: classes/Gems/Default/RespondentAction.php:217 msgid "Comments" msgstr "Comments" -#: classes/Gems/Default/RespondentAction.php:252 +#: classes/Gems/Default/RespondentAction.php:218 msgid "Treatment" msgstr "Treatment" -#: classes/Gems/Default/RespondentAction.php:280 +#: classes/Gems/Default/RespondentAction.php:246 msgid "Rejection code" msgstr "Rejection code" -#: classes/Gems/Default/RespondentAction.php:287 +#: classes/Gems/Default/RespondentAction.php:253 msgid "Delete respondent" msgstr "Delete patient" -#: classes/Gems/Default/RespondentAction.php:319 +#: classes/Gems/Default/RespondentAction.php:285 msgid "Respondent deleted." msgstr "Patient deleted" -#: classes/Gems/Default/RespondentAction.php:323 +#: classes/Gems/Default/RespondentAction.php:289 msgid "Respondent tracks stopped." msgstr "Patient tracks stopped." -#: classes/Gems/Default/RespondentAction.php:327 +#: classes/Gems/Default/RespondentAction.php:293 msgid "Choose a reception code to delete." msgstr "Choose a reception code to delete." -#: classes/Gems/Default/RespondentAction.php:421 +#: classes/Gems/Default/RespondentAction.php:387 msgid "respondent" msgid_plural "respondents" msgstr[0] "patient" msgstr[1] "patients" -#: classes/Gems/Default/RespondentAction.php:496 +#: classes/Gems/Default/RespondentAction.php:462 msgid "Please settle the informed consent form for this respondent." msgstr "Please settle the informed consent form for this patient." -#: classes/Gems/Default/RespondentExportAction.php:61 +#: classes/Gems/Default/RespondentExportAction.php:54 msgid "Respondent number" msgstr "Patient number" -#: classes/Gems/Default/RespondentExportAction.php:65 +#: classes/Gems/Default/RespondentExportAction.php:56 msgid "Separate multiple respondents with a comma (,)" msgstr "Separate multiple respondents with a comma (,)" @@ -1949,52 +1943,65 @@ msgid "Respondent planning" msgstr "Patient planning" -#: classes/Gems/Default/RoleAction.php:94 -#: classes/Gems/Default/RoleAction.php:242 +#: classes/Gems/Default/RoleAction.php:97 +msgid "child of current role" +msgstr "child of current role" + +#: classes/Gems/Default/RoleAction.php:105 +#, php-format +msgid "inherited from %s" +msgstr "inherited from %s" + +#: classes/Gems/Default/RoleAction.php:113 +msgid "this role" +msgstr "this role" + +#: classes/Gems/Default/RoleAction.php:144 +#: classes/Gems/Default/RoleAction.php:302 msgid "Inherited" msgstr "Inherited" -#: classes/Gems/Default/RoleAction.php:156 +#: classes/Gems/Default/RoleAction.php:209 msgid "Illegal name" msgstr "Illegal name" -#: classes/Gems/Default/RoleAction.php:180 -#: classes/Gems/Default/RoleAction.php:239 +#: classes/Gems/Default/RoleAction.php:233 +#: classes/Gems/Default/RoleAction.php:299 msgid "Parents" msgstr "Parents" -#: classes/Gems/Default/RoleAction.php:195 +#: classes/Gems/Default/RoleAction.php:255 msgid "Editing `master` is not allowed" msgstr "Editing `master` is not allowed" -#: classes/Gems/Default/RoleAction.php:213 +#: classes/Gems/Default/RoleAction.php:273 msgid "role" msgid_plural "roles" msgstr[0] "role" msgstr[1] "roles" -#: classes/Gems/Default/RoleAction.php:218 +#: classes/Gems/Default/RoleAction.php:278 msgid "Administrative roles" msgstr "Administrative roles" -#: classes/Gems/Default/RoleAction.php:240 -#: classes/Gems/Default/RoleAction.php:258 +#: classes/Gems/Default/RoleAction.php:300 +#: classes/Gems/Default/RoleAction.php:318 msgid "Allowed" msgstr "Allowed" -#: classes/Gems/Default/RoleAction.php:247 +#: classes/Gems/Default/RoleAction.php:307 msgid "Project role overview" msgstr "Project role overview" -#: classes/Gems/Default/RoleAction.php:257 +#: classes/Gems/Default/RoleAction.php:317 msgid "Privilege" msgstr "Privilege" -#: classes/Gems/Default/RoleAction.php:259 +#: classes/Gems/Default/RoleAction.php:319 msgid "Denied" msgstr "Denied" -#: classes/Gems/Default/RoleAction.php:263 +#: classes/Gems/Default/RoleAction.php:323 msgid "Project privileges" msgstr "Project privileges" @@ -2199,107 +2206,107 @@ msgid "If empty, survey will never show up!" msgstr "If empty, survey will never show up!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:129 +#: classes/Gems/Default/SurveyMaintenanceAction.php:130 msgid "Upload new PDF" msgstr "Upload new PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:137 +#: classes/Gems/Default/SurveyMaintenanceAction.php:138 msgid "Usage" msgstr "Usage" -#: classes/Gems/Default/SurveyMaintenanceAction.php:152 +#: classes/Gems/Default/SurveyMaintenanceAction.php:153 msgid "Single Survey Assignment" msgstr "Single Survey Assignment" -#: classes/Gems/Default/SurveyMaintenanceAction.php:197 +#: classes/Gems/Default/SurveyMaintenanceAction.php:198 msgid "Assignable since" msgstr "Assignable since" -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 msgid "Assignable until" msgstr "Assignable until" -#: classes/Gems/Default/SurveyMaintenanceAction.php:204 +#: classes/Gems/Default/SurveyMaintenanceAction.php:205 msgid "Create Single Survey" msgstr "Create Single Survey" -#: classes/Gems/Default/SurveyMaintenanceAction.php:208 +#: classes/Gems/Default/SurveyMaintenanceAction.php:209 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "At the moment this survey can only be assigned to paitents as part of an existing track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:263 +#: classes/Gems/Default/SurveyMaintenanceAction.php:264 msgid "Survey should be assigned to a group before making it active." msgstr "Survey should be assigned to a group before making it active." -#: classes/Gems/Default/SurveyMaintenanceAction.php:280 +#: classes/Gems/Default/SurveyMaintenanceAction.php:281 #, php-format msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:292 +#: classes/Gems/Default/SurveyMaintenanceAction.php:293 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:349 +#: classes/Gems/Default/SurveyMaintenanceAction.php:350 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:356 +#: classes/Gems/Default/SurveyMaintenanceAction.php:357 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:357 +#: classes/Gems/Default/SurveyMaintenanceAction.php:358 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:360 +#: classes/Gems/Default/SurveyMaintenanceAction.php:361 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:361 +#: classes/Gems/Default/SurveyMaintenanceAction.php:362 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:368 +#: classes/Gems/Default/SurveyMaintenanceAction.php:369 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:377 +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 msgid "Result field" msgstr "Result field" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 msgid "Duration description" msgstr "Duration description" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 msgid "Text to inform the respondent." msgstr "Text to inform the respondent." -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 +#: classes/Gems/Default/SurveyMaintenanceAction.php:383 msgid "Before answering" msgstr "Before answering" -#: classes/Gems/Default/SurveyMaintenanceAction.php:380 +#: classes/Gems/Default/SurveyMaintenanceAction.php:384 msgid "After completion" msgstr "After completion" -#: classes/Gems/Default/SurveyMaintenanceAction.php:410 +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:420 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:422 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -2781,138 +2788,146 @@ msgid "Format answers" msgstr "Format answers" -#: classes/Gems/Export/RespondentExport.php:128 +#: classes/Gems/Export/RespondentExport.php:130 #, php-format -msgid "Unable to run PDF conversion: \"%s\"" -msgstr "Unable to run PDF conversion: \"%s\"" +msgid "Unable to run PDF conversion (%s): \"%s\"" +msgstr "Unable to run PDF conversion (%s): \"%s\"" -#: classes/Gems/Export/RespondentExport.php:193 +#: classes/Gems/Export/RespondentExport.php:200 msgid "Single Survey" msgstr "Single Survey" -#: classes/Gems/Export/RespondentExport.php:254 +#: classes/Gems/Export/RespondentExport.php:261 msgid "Track information" msgstr "Track information" -#: classes/Gems/Export/Spss.php:59 +#: classes/Gems/Export/RespondentExport.php:324 +msgid "Group surveys" +msgstr "Group surveys" + +#: classes/Gems/Export/RespondentExport.php:329 +msgid "Output format" +msgstr "Output format" + +#: classes/Gems/Export/Spss.php:80 msgid "Which file" msgstr "Which file" -#: classes/Gems/Export/Spss.php:60 +#: classes/Gems/Export/Spss.php:81 msgid "syntax" msgstr "syntax" -#: classes/Gems/Export/Spss.php:61 +#: classes/Gems/Export/Spss.php:82 msgid "data" msgstr "data" -#: classes/Gems/Export/Spss.php:66 +#: classes/Gems/Export/Spss.php:86 msgid "Some help for this export" msgstr "Some help for this export" -#: classes/Gems/Menu/MenuAbstract.php:250 +#: classes/Gems/Menu/MenuAbstract.php:267 msgid "Activity log" msgstr "Activity Log" -#: classes/Gems/Menu/MenuAbstract.php:256 +#: classes/Gems/Menu/MenuAbstract.php:273 msgid "Automatic mail" msgstr "Automatic mail" -#: classes/Gems/Menu/MenuAbstract.php:257 +#: classes/Gems/Menu/MenuAbstract.php:274 msgid "Turn Automatic Mail Jobs OFF" msgstr "Turn Automatic Mail Jobs OFF" -#: classes/Gems/Menu/MenuAbstract.php:261 +#: classes/Gems/Menu/MenuAbstract.php:278 msgid "Servers" msgstr "Servers" -#: classes/Gems/Menu/MenuAbstract.php:265 +#: classes/Gems/Menu/MenuAbstract.php:282 msgid "Templates" msgstr "Templates" -#: classes/Gems/Menu/MenuAbstract.php:297 +#: classes/Gems/Menu/MenuAbstract.php:314 msgid "By period" msgstr "By period" -#: classes/Gems/Menu/MenuAbstract.php:298 +#: classes/Gems/Menu/MenuAbstract.php:315 msgid "By token" msgstr "By token" -#: classes/Gems/Menu/MenuAbstract.php:299 +#: classes/Gems/Menu/MenuAbstract.php:316 msgid "By respondent" msgstr "By patient" -#: classes/Gems/Menu/MenuAbstract.php:303 +#: classes/Gems/Menu/MenuAbstract.php:320 msgid "Bulk mail" msgstr "Bulk mail" -#: classes/Gems/Menu/MenuAbstract.php:321 +#: classes/Gems/Menu/MenuAbstract.php:338 msgid "Errors" msgstr "Errors" -#: classes/Gems/Menu/MenuAbstract.php:322 +#: classes/Gems/Menu/MenuAbstract.php:339 msgid "PHP" msgstr "PHP" -#: classes/Gems/Menu/MenuAbstract.php:325 +#: classes/Gems/Menu/MenuAbstract.php:342 msgid "Maintenance mode" msgstr "Maintenance mode" -#: classes/Gems/Menu/MenuAbstract.php:326 +#: classes/Gems/Menu/MenuAbstract.php:343 msgid "Clean cache" msgstr "Clean cache" -#: classes/Gems/Menu/MenuAbstract.php:393 +#: classes/Gems/Menu/MenuAbstract.php:410 msgid "Reset password" msgstr "Reset password" -#: classes/Gems/Menu/MenuAbstract.php:419 +#: classes/Gems/Menu/MenuAbstract.php:437 msgid "Check status" msgstr "Check status" -#: classes/Gems/Menu/MenuAbstract.php:420 +#: classes/Gems/Menu/MenuAbstract.php:438 msgid "Synchronize surveys" msgstr "Synchronize surveys" -#: classes/Gems/Menu/MenuAbstract.php:421 -#: classes/Gems/Menu/MenuAbstract.php:433 +#: classes/Gems/Menu/MenuAbstract.php:439 +#: classes/Gems/Menu/MenuAbstract.php:451 msgid "Check is answered" msgstr "Check is answered" -#: classes/Gems/Menu/MenuAbstract.php:422 +#: classes/Gems/Menu/MenuAbstract.php:440 msgid "Check attributes" msgstr "Check attributes" -#: classes/Gems/Menu/MenuAbstract.php:423 +#: classes/Gems/Menu/MenuAbstract.php:441 msgid "Synchronize all surveys" msgstr "Synchronize all surveys" -#: classes/Gems/Menu/MenuAbstract.php:424 -#: classes/Gems/Menu/MenuAbstract.php:434 +#: classes/Gems/Menu/MenuAbstract.php:442 +#: classes/Gems/Menu/MenuAbstract.php:452 msgid "Check all is answered" msgstr "Check all is answered" -#: classes/Gems/Menu/MenuAbstract.php:430 +#: classes/Gems/Menu/MenuAbstract.php:448 msgid "PDF" msgstr "PDF" -#: classes/Gems/Menu/MenuAbstract.php:464 +#: classes/Gems/Menu/MenuAbstract.php:482 msgid "Check assignments" msgstr "Check assignments" -#: classes/Gems/Menu/MenuAbstract.php:467 +#: classes/Gems/Menu/MenuAbstract.php:485 msgid "Check all assignments" msgstr "Check all assignments" -#: classes/Gems/Menu/SubMenuItem.php:410 +#: classes/Gems/Menu/SubMenuItem.php:382 msgid "New" msgstr "New" -#: classes/Gems/Menu/SubMenuItem.php:464 +#: classes/Gems/Menu/SubMenuItem.php:436 msgid "Export the current data set to Excel" msgstr "Export the current data set to Excel" -#: classes/Gems/Menu/SubMenuItem.php:468 +#: classes/Gems/Menu/SubMenuItem.php:440 msgid "Excel export" msgstr "Excel export" @@ -3859,6 +3874,14 @@ msgid "User not found or no e-mail address known or user cannot be reset." msgstr "User not found or no e-mail address known or user cannot be reset." +#: classes/Gems/Util/DbLookup.php:370 +msgid "inactive" +msgstr "inactive" + +#: classes/Gems/Util/DbLookup.php:371 +msgid "source inactive" +msgstr "source inactive" + #: classes/Gems/Util/ReceptionCodeLibrary.php:100 msgid "Yes (forget answers)" msgstr "Yes (forget answers)" @@ -4196,6 +4219,7 @@ msgstr "Lists choices changed." #: snippets/EditSingleSurveyTokenSnippet.php:132 +#: snippets/ShowSingleSurveyTokenSnippet.php:153 msgid "Show survey" msgstr "Show survey" Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-07-13 11:32:36 UTC (rev 843) +++ trunk/library/languages/default-nl.po 2012-07-13 13:43:15 UTC (rev 844) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-06-28 12:07+0100\n" +"POT-Creation-Date: 2012-07-13 14:42+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Matijs de Jong <mj...@ma...>\n" +"Last-Translator: Menno Dekker <men...@er...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -18,77 +18,81 @@ "X-Poedit-KeywordsList: plural:1,2\n" "X-Poedit-SearchPath-0: .\n" -#: classes/GemsEscort.php:214 +#: classes/GemsEscort.php:215 #, php-format msgid "Path %s not writable" msgstr "Path %s niet schrijfbaar" -#: classes/GemsEscort.php:776 +#: classes/GemsEscort.php:597 +msgid " > " +msgstr " | " + +#: classes/GemsEscort.php:788 #, php-format msgid "You are logged in as %s" msgstr "Ingelogd als %s" -#: classes/GemsEscort.php:778 +#: classes/GemsEscort.php:790 #: classes/Gems/Menu.php:249 msgid "Logoff" msgstr "Uitloggen" -#: classes/GemsEscort.php:781 +#: classes/GemsEscort.php:793 msgid "You are not logged in" msgstr "U bent niet ingelogd" -#: classes/GemsEscort.php:968 +#: classes/GemsEscort.php:980 #, php-format msgid "User: %s" msgstr "Login: %s" -#: classes/GemsEscort.php:993 +#: classes/GemsEscort.php:1005 msgid "version" msgstr "versie" -#: classes/GemsEscort.php:1435 +#: classes/GemsEscort.php:1447 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." -#: classes/GemsEscort.php:1564 +#: classes/GemsEscort.php:1576 msgid "Please check back later." msgstr "Probeer het later opnieuw." -#: classes/GemsEscort.php:1566 -#: classes/GemsEscort.php:1570 -#: classes/GemsEscort.php:1571 +#: classes/GemsEscort.php:1578 +#: classes/GemsEscort.php:1582 +#: classes/GemsEscort.php:1583 msgid "System is in maintenance mode" msgstr "Systeem is in onderhoudsmodus" -#: classes/GemsEscort.php:1581 +#: classes/GemsEscort.php:1593 msgid "No access to site." msgstr "Geen toegang tot website." -#: classes/GemsEscort.php:1583 -#: classes/GemsEscort.php:1626 +#: classes/GemsEscort.php:1595 +#: classes/GemsEscort.php:1638 msgid "You have no access to this site." msgstr "U heeft geen toegang tot deze website." -#: classes/GemsEscort.php:1599 +#: classes/GemsEscort.php:1611 msgid "No access to page" msgstr "Geen toegang tot pagina" -#: classes/GemsEscort.php:1601 +#: classes/GemsEscort.php:1613 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." -#: classes/GemsEscort.php:1611 -#: classes/GemsEscort.php:1624 +#: classes/GemsEscort.php:1623 +#: classes/GemsEscort.php:1636 msgid "You are no longer logged in." msgstr "U bent niet meer ingelogd." -#: classes/GemsEscort.php:1612 +#: classes/GemsEscort.php:1624 msgid "You must login to access this page." msgstr "U moet ingelogd zijn voor toegang tot deze pagina." -#: classes/GemsEscort.php:1753 -#: classes/GemsEscort.php:1755 +#: classes/GemsEscort.php:1765 +#: classes/GemsEscort.php:1767 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -453,94 +457,94 @@ msgid "Trying upgrade for %s to level %s: %s" msgstr "Probeert upgrade voor %s naar niveau %s: %s" -#: classes/Gems/Controller/BrowseEditAction.php:355 +#: classes/Gems/Controller/BrowseEditAction.php:356 #, php-format msgid "New %s..." msgstr "Nieuwe %s..." -#: classes/Gems/Controller/BrowseEditAction.php:388 +#: classes/Gems/Controller/BrowseEditAction.php:389 #, php-format msgid "Delete %s" msgstr "Verwijder %s" -#: classes/Gems/Controller/BrowseEditAction.php:392 +#: classes/Gems/Controller/BrowseEditAction.php:393 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s verwijderd" -#: classes/Gems/Controller/BrowseEditAction.php:409 +#: classes/Gems/Controller/BrowseEditAction.php:410 #, php-format msgid "Edit %s %s" msgstr "Bewerk %s %s" -#: classes/Gems/Controller/BrowseEditAction.php:411 +#: classes/Gems/Controller/BrowseEditAction.php:412 #, php-format msgid "Edit %s" msgstr "Bewerk %s" -#: classes/Gems/Controller/BrowseEditAction.php:509 +#: classes/Gems/Controller/BrowseEditAction.php:513 msgid "Free search text" msgstr "Vrije zoek tekst" -#: classes/Gems/Controller/BrowseEditAction.php:580 +#: classes/Gems/Controller/BrowseEditAction.php:584 msgid "Search" msgstr "Zoeken" -#: classes/Gems/Controller/BrowseEditAction.php:596 +#: classes/Gems/Controller/BrowseEditAction.php:600 #, php-format msgid "No %s found" msgstr "Geen %s gevonden" -#: classes/Gems/Controller/BrowseEditAction.php:680 +#: classes/Gems/Controller/BrowseEditAction.php:684 #, php-format msgid "No %s found." msgstr "Geen %s gevonden." -#: classes/Gems/Controller/BrowseEditAction.php:798 +#: classes/Gems/Controller/BrowseEditAction.php:802 msgid "Are you sure?" msgstr "Weet u het zeker?" -#: classes/Gems/Controller/BrowseEditAction.php:814 +#: classes/Gems/Controller/BrowseEditAction.php:818 msgid "Yes" msgstr "Ja" -#: classes/Gems/Controller/BrowseEditAction.php:815 +#: classes/Gems/Controller/BrowseEditAction.php:819 msgid "No" msgstr "Nee" -#: classes/Gems/Controller/BrowseEditAction.php:868 +#: classes/Gems/Controller/BrowseEditAction.php:872 #, php-format msgid "Unknown %s requested" msgstr "Onjuist %s verzoek" -#: classes/Gems/Controller/BrowseEditAction.php:891 +#: classes/Gems/Controller/BrowseEditAction.php:895 #, php-format msgid "New %1$s..." msgstr "Nieuwe %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:899 +#: classes/Gems/Controller/BrowseEditAction.php:903 msgid "Save" msgstr "Opslaan" -#: classes/Gems/Controller/BrowseEditAction.php:935 +#: classes/Gems/Controller/BrowseEditAction.php:939 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s opgeslagen" -#: classes/Gems/Controller/BrowseEditAction.php:938 +#: classes/Gems/Controller/BrowseEditAction.php:942 msgid "No changes to save." msgstr "Geen verandering om op te slaan." -#: classes/Gems/Controller/BrowseEditAction.php:947 +#: classes/Gems/Controller/BrowseEditAction.php:951 msgid "Input error! No changes saved!" msgstr "Invoer fout! Veranderingen niet opgeslagen!" -#: classes/Gems/Controller/BrowseEditAction.php:975 +#: classes/Gems/Controller/BrowseEditAction.php:979 #, php-format msgid "Show %s" msgstr "Toon %s" -#: classes/Gems/Controller/BrowseEditAction.php:982 +#: classes/Gems/Controller/BrowseEditAction.php:986 #, php-format msgid "Unknown %s." msgstr "%s is onbekend." @@ -550,26 +554,26 @@ msgid "Cancel" msgstr "Annuleren" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:238 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:249 #, php-format msgid "Do you want to delete this %s?" msgstr "Weet u zeker dat deze %s verwijderd moet worden?" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:271 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:282 msgid "No data found." msgstr "Geen gegevens gevonden." -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:333 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:344 #, php-format msgid "No %s found..." msgstr "Geen %s gevonden..." -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:343 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:354 #, php-format msgid "Showing %s" msgstr "Toon %s" -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:379 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 msgid "item" msgid_plural "items" msgstr[0] "item" @@ -908,7 +912,7 @@ #: classes/Gems/Default/DatabaseAction.php:474 #, php-format msgid "Finished %s creation script for object %d of %d" -msgstr "Klaar %s met aanmaak script voor object %d van %d" +msgstr "Klaar met %s aanmaak script voor object %d van %d" #: classes/Gems/Default/DatabaseAction.php:479 msgid "All objects exist. Nothing was executed." @@ -982,16 +986,16 @@ msgid "Export data" msgstr "Exporteer gegevens" -#: classes/Gems/Default/ExportAction.php:153 +#: classes/Gems/Default/ExportAction.php:152 msgid "Survey" msgstr "Vragenlijst" -#: classes/Gems/Default/ExportAction.php:168 +#: classes/Gems/Default/ExportAction.php:167 #, php-format msgid "%s records found." msgstr "%s records gevonden." -#: classes/Gems/Default/ExportAction.php:181 +#: classes/Gems/Default/ExportAction.php:180 msgid "Export to" msgstr "Exporteer naar" @@ -1419,7 +1423,7 @@ msgstr "Email servers" #: classes/Gems/Default/MailTemplateAction.php:76 -#: classes/Gems/Default/RespondentAction.php:372 +#: classes/Gems/Default/RespondentAction.php:338 msgid "(all organizations)" msgstr "(alle organisaties)" @@ -1443,7 +1447,7 @@ #: classes/Gems/Default/OptionAction.php:136 #: classes/Gems/Default/OrganizationAction.php:135 -#: classes/Gems/Default/RespondentAction.php:220 +#: classes/Gems/Default/RespondentAction.php:186 msgid "Language" msgstr "Taal" @@ -1820,112 +1824,102 @@ msgstr[0] "Ontvangst code" msgstr[1] "Ontvangst code" -#: classes/Gems/Default/RespondentAction.php:76 -#: classes/Gems/Default/RespondentExportAction.php:71 -msgid "Group surveys" -msgstr "Groepeer vragenlijsten" - -#: classes/Gems/Default/RespondentAction.php:81 -#: classes/Gems/Default/RespondentExportAction.php:76 -msgid "Output format" -msgstr "Uitvoerformaat" - -#: classes/Gems/Default/RespondentAction.php:159 +#: classes/Gems/Default/RespondentAction.php:125 #, php-format msgid "Random Example BSN: %s" msgstr "Willekeurig voorbeeld BSN: %s" -#: classes/Gems/Default/RespondentAction.php:161 +#: classes/Gems/Default/RespondentAction.php:127 msgid "Enter a 9-digit SSN number." msgstr "Voer een BSN nummer van 9 cijfers in." -#: classes/Gems/Default/RespondentAction.php:168 +#: classes/Gems/Default/RespondentAction.php:134 msgid "Identification" msgstr "Identificatie" -#: classes/Gems/Default/RespondentAction.php:179 +#: classes/Gems/Default/RespondentAction.php:145 msgid "SSN" msgstr "SSN" -#: classes/Gems/Default/RespondentAction.php:183 +#: classes/Gems/Default/RespondentAction.php:149 msgid "Patient number" msgstr "Patiënt nummer" -#: classes/Gems/Default/RespondentAction.php:192 +#: classes/Gems/Default/RespondentAction.php:158 msgid "Medical data" msgstr "Medische gegevens" -#: classes/Gems/Default/RespondentAction.php:199 +#: classes/Gems/Default/RespondentAction.php:165 msgid "DBC's, etc..." msgstr "DBC's, etc..." -#: classes/Gems/Default/RespondentAction.php:202 +#: classes/Gems/Default/RespondentAction.php:168 msgid "Contact information" msgstr "Contact informatie" -#: classes/Gems/Default/RespondentAction.php:207 +#: classes/Gems/Default/RespondentAction.php:173 msgid "Respondent has no e-mail" msgstr "Patiënt zonder email" -#: classes/Gems/Default/RespondentAction.php:208 +#: classes/Gems/Default/RespondentAction.php:174 msgid "With housenumber" msgstr "Met huisnummer" -#: classes/Gems/Default/RespondentAction.php:215 +#: classes/Gems/Default/RespondentAction.php:181 msgid "Country" msgstr "Land" -#: classes/Gems/Default/RespondentAction.php:219 +#: classes/Gems/Default/RespondentAction.php:185 msgid "Settings" msgstr "Instellingen" -#: classes/Gems/Default/RespondentAction.php:221 +#: classes/Gems/Default/RespondentAction.php:187 msgid "Has the respondent signed the informed consent letter?" msgstr "Heeft de patiënt het \"informed consent\" formulier ondertekend?" -#: classes/Gems/Default/RespondentAction.php:251 +#: classes/Gems/Default/RespondentAction.php:217 msgid "Comments" msgstr "Opmerkingen" -#: classes/Gems/Default/RespondentAction.php:252 +#: classes/Gems/Default/RespondentAction.php:218 msgid "Treatment" msgstr "Behandeling" -#: classes/Gems/Default/RespondentAction.php:280 +#: classes/Gems/Default/RespondentAction.php:246 msgid "Rejection code" msgstr "Afkeuringscode" -#: classes/Gems/Default/RespondentAction.php:287 +#: classes/Gems/Default/RespondentAction.php:253 msgid "Delete respondent" msgstr "Verwijder patiënt" -#: classes/Gems/Default/RespondentAction.php:319 +#: classes/Gems/Default/RespondentAction.php:285 msgid "Respondent deleted." msgstr "Patiënt verwijderd" -#: classes/Gems/Default/RespondentAction.php:323 +#: classes/Gems/Default/RespondentAction.php:289 msgid "Respondent tracks stopped." msgstr "Trajecten van patiënt zijn gestopt." -#: classes/Gems/Default/RespondentAction.php:327 +#: classes/Gems/Default/RespondentAction.php:293 msgid "Choose a reception code to delete." msgstr "Kies een ontvangst code om te verwijderen." -#: classes/Gems/Default/RespondentAction.php:421 +#: classes/Gems/Default/RespondentAction.php:387 msgid "respondent" msgid_plural "respondents" msgstr[0] "patiënt" msgstr[1] "patiënten" -#: classes/Gems/Default/RespondentAction.php:496 +#: classes/Gems/Default/RespondentAction.php:462 msgid "Please settle the informed consent form for this respondent." msgstr "A.u.b. het informed consent formulier doornemen met deze patiënt" -#: classes/Gems/Default/RespondentExportAction.php:61 +#: classes/Gems/Default/RespondentExportAction.php:54 msgid "Respondent number" msgstr "Patiënt nummer" -#: classes/Gems/Default/RespondentExportAction.php:65 +#: classes/Gems/Default/RespondentExportAction.php:56 msgid "Separate multiple respondents with a comma (,)" msgstr "Scheid meerdere patienten met een comma (,)" @@ -1949,52 +1943,65 @@ msgid "Respondent planning" msgstr "Per patiënt plannen" -#: classes/Gems/Default/RoleAction.php:94 -#: classes/Gems/Default/RoleAction.php:242 +#: classes/Gems/Default/RoleAction.php:97 +msgid "child of current role" +msgstr "afgeleid van huidige rol" + +#: classes/Gems/Default/RoleAction.php:105 +#, php-format +msgid "inherited from %s" +msgstr "overerfd van %s" + +#: classes/Gems/Default/RoleAction.php:113 +msgid "this role" +msgstr "deze rol" + +#: classes/Gems/Default/RoleAction.php:144 +#: classes/Gems/Default/RoleAction.php:302 msgid "Inherited" msgstr "Overerfd" -#: classes/Gems/Default/RoleAction.php:156 +#: classes/Gems/Default/RoleAction.php:209 msgid "Illegal name" msgstr "Naam niet toegestaan" -#: classes/Gems/Default/RoleAction.php:180 -#: classes/Gems/Default/RoleAction.php:239 +#: classes/Gems/Default/RoleAction.php:233 +#: classes/Gems/Default/RoleAction.php:299 msgid "Parents" msgstr "Afgeleid van" -#: classes/Gems/Default/RoleAction.php:195 +#: classes/Gems/Default/RoleAction.php:255 msgid "Editing `master` is not allowed" msgstr "Het wijzigen van `master` is niet toegestaan" -#: classes/Gems/Default/RoleAction.php:213 +#: classes/Gems/Default/RoleAction.php:273 msgid "role" msgid_plural "roles" msgstr[0] "Rol" msgstr[1] "Rollen" -#: classes/Gems/Default/RoleAction.php:218 +#: classes/Gems/Default/RoleAction.php:278 msgid "Administrative roles" msgstr "Beheer rollen en rechten" -#: classes/Gems/Default/RoleAction.php:240 -#: classes/Gems/Default/RoleAction.php:258 +#: classes/Gems/Default/RoleAction.php:300 +#: classes/Gems/Default/RoleAction.php:318 msgid "Allowed" msgstr "Toegestaan" -#: classes/Gems/Default/RoleAction.php:247 +#: classes/Gems/Default/RoleAction.php:307 msgid "Project role overview" msgstr "Project rollen" -#: classes/Gems/Default/RoleAction.php:257 +#: classes/Gems/Default/RoleAction.php:317 msgid "Privilege" msgstr "Privilége" -#: classes/Gems/Default/RoleAction.php:259 +#: classes/Gems/Default/RoleAction.php:319 msgid "Denied" msgstr "Geweigerd" -#: classes/Gems/Default/RoleAction.php:263 +#: classes/Gems/Default/RoleAction.php:323 msgid "Project privileges" msgstr "Project priviléges" @@ -2199,107 +2206,107 @@ msgid "If empty, survey will never show up!" msgstr "Indien leeg zal de vragenlijst niet tevoorschijn komen!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:129 +#: classes/Gems/Default/SurveyMaintenanceAction.php:130 msgid "Upload new PDF" msgstr "Upload nieuwe PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:137 +#: classes/Gems/Default/SurveyMaintenanceAction.php:138 msgid "Usage" msgstr "Gebruik" -#: classes/Gems/Default/SurveyMaintenanceAction.php:152 +#: classes/Gems/Default/SurveyMaintenanceAction.php:153 msgid "Single Survey Assignment" msgstr "Losse vragenlijst toewijzing" -#: classes/Gems/Default/SurveyMaintenanceAction.php:197 +#: classes/Gems/Default/SurveyMaintenanceAction.php:198 msgid "Assignable since" msgstr "Toewijsbaar sinds" -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 msgid "Assignable until" msgstr "Toewijsbaar tot" -#: classes/Gems/Default/SurveyMaintenanceAction.php:204 +#: classes/Gems/Default/SurveyMaintenanceAction.php:205 msgid "Create Single Survey" msgstr "Maak losse vragenlijst" -#: classes/Gems/Default/SurveyMaintenanceAction.php:208 +#: classes/Gems/Default/SurveyMaintenanceAction.php:209 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "Op dit moment kan deze vragenlijst alleen aan patiënten toegewezen als onderdeel van een traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:263 +#: classes/Gems/Default/SurveyMaintenanceAction.php:264 msgid "Survey should be assigned to a group before making it active." msgstr "Vragenlijst moet aan een groep toegewezen worden voordat deze actief kan worden gemaakt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:280 +#: classes/Gems/Default/SurveyMaintenanceAction.php:281 #, php-format msgid "Checking survey results for the %s survey." msgstr "Controle op vragenlijstresultaten voor de vragenlijst '%s'." -#: classes/Gems/Default/SurveyMaintenanceAction.php:292 +#: classes/Gems/Default/SurveyMaintenanceAction.php:293 msgid "Checking survey results for all surveys." msgstr "Controle op vragenlijstresultaten voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:349 +#: classes/Gems/Default/SurveyMaintenanceAction.php:350 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:356 +#: classes/Gems/Default/SurveyMaintenanceAction.php:357 msgid "Source" msgstr "Bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:357 +#: classes/Gems/Default/SurveyMaintenanceAction.php:358 msgid "Status in source" msgstr "Status in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:360 +#: classes/Gems/Default/SurveyMaintenanceAction.php:361 msgid "Active in source" msgstr "Actief in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:361 +#: classes/Gems/Default/SurveyMaintenanceAction.php:362 #, php-format msgid "Active in %s" msgstr "Actief in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:368 +#: classes/Gems/Default/SurveyMaintenanceAction.php:369 msgid "Single" msgstr "Los" -#: classes/Gems/Default/SurveyMaintenanceAction.php:377 +#: classes/Gems/Default/SurveyMaintenanceAction.php:378 msgid "Result field" msgstr "Resultaat veld" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 msgid "Duration description" msgstr "Beschrijving afnametijd" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:379 msgid "Text to inform the respondent." msgstr "tekst er informatie van de patiënt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 +#: classes/Gems/Default/SurveyMaintenanceAction.php:383 msgid "Before answering" msgstr "Voor beantwoording" -#: classes/Gems/Default/SurveyMaintenanceAction.php:380 +#: classes/Gems/Default/SurveyMaintenanceAction.php:384 msgid "After completion" msgstr "Na afronding" -#: classes/Gems/Default/SurveyMaintenanceAction.php:410 +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 #, php-format msgid "%d times in track." msgstr "%d keer in traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 #, php-format msgid "%d times in %d track(s)." msgstr "%d keer in %d traject(en)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:420 msgid "Not used in track." msgstr "Niet in traject gebruikt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:422 msgid "Not used in tracks." msgstr "Niet in trajecten gebruikt." @@ -2781,138 +2788,146 @@ msgid "Format answers" msgstr "Antwoorden opmaken" -#: classes/Gems/Export/RespondentExport.php:128 +#: classes/Gems/Export/RespondentExport.php:130 #, php-format -msgid "Unable to run PDF conversion: \"%s\"" -msgstr "Kan PDF conversie niet starten: \"%s\"" +msgid "Unable to run PDF conversion (%s): \"%s\"" +msgstr "Kan PDF conversie (%s) niet starten: \"%s\"" -#: classes/Gems/Export/RespondentExport.php:193 +#: classes/Gems/Export/RespondentExport.php:200 msgid "Single Survey" msgstr "Losse vragenlijst" -#: classes/Gems/Export/RespondentExport.php:254 +#: classes/Gems/Export/RespondentExport.php:261 msgid "Track information" msgstr "Traject informatie" -#: classes/Gems/Export/Spss.php:59 +#: classes/Gems/Export/RespondentExport.php:324 +msgid "Group surveys" +msgstr "Groepeer vragenlijsten" + +#: classes/Gems/Export/RespondentExport.php:329 +msgid "Output format" +msgstr "Uitvoerformaat" + +#: classes/Gems/Export/Spss.php:80 msgid "Which file" msgstr "Kies bestand" -#: classes/Gems/Export/Spss.php:60 +#: classes/Gems/Export/Spss.php:81 msgid "syntax" msgstr "syntax" -#: classes/Gems/Export/Spss.php:61 +#: classes/Gems/Export/Spss.php:82 msgid "data" msgstr "data" -#: classes/Gems/Export/Spss.php:66 +#: classes/Gems/Export/Spss.php:86 msgid "Some help for this export" msgstr "Uitleg over deze export mogelijkheid" -#: classes/Gems/Menu/MenuAbstract.php:250 +#: classes/Gems/Menu/MenuAbstract.php:267 msgid "Activity log" msgstr "Activiteit" -#: classes/Gems/Menu/MenuAbstract.php:256 +#: classes/Gems/Menu/MenuAbstract.php:273 msgid "Automatic mail" msgstr "Automatische mail" -#: classes/Gems/Menu/MenuAbstract.php:257 +#: classes/Gems/Menu/MenuAbstract.php:274 msgid "Turn Automatic Mail Jobs OFF" msgstr "Automatische mail opdrachten UITzetten" -#: classes/Gems/Menu/MenuAbstract.php:261 +#: classes/Gems/Menu/MenuAbstract.php:278 msgid "Servers" msgstr "Servers" -#: classes/Gems/Menu/MenuAbstract.php:265 +#: classes/Gems/Menu/MenuAbstract.php:282 msgid "Templates" msgstr "Sjablonen" -#: classes/Gems/Menu/MenuAbstract.php:297 +#: classes/Gems/Menu/MenuAbstract.php:314 msgid "By period" msgstr "Per periode" -#: classes/Gems/Menu/MenuAbstract.php:298 +#: classes/Gems/Menu/MenuAbstract.php:315 msgid "By token" msgstr "Per kenmerk" -#: classes/Gems/Menu/MenuAbstract.php:299 +#: classes/Gems/Menu/MenuAbstract.php:316 msgid "By respondent" msgstr "Per patiënt" -#: classes/Gems/Menu/MenuAbstract.php:303 +#: classes/Gems/Menu/MenuAbstract.php:320 msgid "Bulk mail" msgstr "Bulk mail" -#: classes/Gems/Menu/MenuAbstract.php:321 +#: classes/Gems/Menu/MenuAbstract.php:338 msgid "Errors" msgstr "Foutmeldingen" -#: classes/Gems/Menu/MenuAbstract.php:322 +#: classes/Gems/Menu/MenuAbstract.php:339 msgid "PHP" msgstr "PHP" -#: classes/Gems/Menu/MenuAbstract.php:325 +#: classes/Gems/Menu/MenuAbstract.php:342 msgid "Maintenance mode" msgstr "Onderhoudsmodus" -#: classes/Gems/Menu/MenuAbstract.php:326 +#: classes/Gems/Menu/MenuAbstract.php:343 msgid "Clean cache" msgstr "Cache opruimen" -#: classes/Gems/Menu/MenuAbstract.php:393 +#: classes/Gems/Menu/MenuAbstract.php:410 msgid "Reset password" msgstr "Reset wachtwoord" -#: classes/Gems/Menu/MenuAbstract.php:419 +#: classes/Gems/Menu/MenuAbstract.php:437 msgid "Check status" msgstr "Status controle" -#: classes/Gems/Menu/MenuAbstract.php:420 +#: classes/Gems/Menu/MenuAbstract.php:438 msgid "Synchronize surveys" msgstr "Synchroniseer vragenlijsten" -#: classes/Gems/Menu/MenuAbstract.php:421 -#: classes/Gems/Menu/MenuAbstract.php:433 +#: classes/Gems/Menu/MenuAbstract.php:439 +#: classes/Gems/Menu/MenuAbstract.php:451 msgid "Check is answered" msgstr "Controleer op antwoorden" -#: classes/Gems/Menu/MenuAbstract.php:422 +#: classes/Gems/Menu/MenuAbstract.php:440 msgid "Check attributes" msgstr "Controleer attributen" -#: classes/Gems/Menu/MenuAbstract.php:423 +#: classes/Gems/Menu/MenuAbstract.php:441 msgid "Synchronize all surveys" msgstr "Synchroniseer alle vragenlijsten" -#: classes/Gems/Menu/MenuAbstract.php:424 -#: classes/Gems/Menu/MenuAbstract.php:434 +#: classes/Gems/Menu/MenuAbstract.php:442 +#: classes/Gems/Menu/MenuAbstract.php:452 msgid "Check all is answered" msgstr "Controleer alles op antwoorden" -#: classes/Gems/Menu/MenuAbstract.php:430 +#: classes/Gems/Menu/MenuAbstract.php:448 msgid "PDF" msgstr "PDF" -#: classes/Gems/Menu/MenuAbstract.php:464 +#: classes/Gems/Menu/MenuAbstract.php:482 msgid "Check assignments" msgstr "Controleer toewijzingen" -#: classes/Gems/Menu/MenuAbstract.php:467 +#: classes/Gems/Menu/MenuAbstract.php:485 msgid "Check all assignments" msgstr "Controleer alle toewijzingen" -#: classes/Gems/Menu/SubMenuItem.php:410 +#: classes/Gems/Menu/SubMenuItem.php:382 msgid "New" msgstr "Nieuw" -#: classes/Gems/Menu/SubMenuItem.php:464 +#: classes/Gems/Menu/SubMenuItem.php:436 msgid "Export the current data set to Excel" msgstr "Exporteer de huidige gegevens naar Excel" -#: classes/Gems/Menu/SubMenuItem.php:468 +#: classes/Gems/Menu/SubMenuItem.php:440 msgid "Excel export" msgstr "Excel export" @@ -3859,6 +3874,14 @@ msgid "User not found or no e-mail address known or user cannot be reset." msgstr "Gebruiker niet gevonden of email adres onbekend of gebruiker kan niet gereset worden." +#: classes/Gems/Util/DbLookup.php:370 +msgid "inactive" +msgstr "inactief" + +#: classes/Gems/Util/DbLookup.php:371 +msgid "source inactive" +msgstr "bron inactief" + #: classes/Gems/Util/ReceptionCodeLibrary.php:100 msgid "Yes (forget answers)" msgstr "Ja (vergeet antwoorden)" @@ -4196,6 +4219,7 @@ msgstr "Keuzelijst is veranderd." #: snippets/EditSingleSurveyTokenSnippet.php:132 +#: snippets/ShowSingleSurveyTokenSnippet.php:153 msgid "Show survey" msgstr "Toon vragenlijst" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-07-16 17:37:01
|
Revision: 848 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=848&view=rev Author: matijsdejong Date: 2012-07-16 17:36:52 +0000 (Mon, 16 Jul 2012) Log Message: ----------- Survey duration implemented and used when entered #492 Modified Paths: -------------- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php trunk/library/classes/Gems/Tracker/Survey.php trunk/library/classes/Gems/Util/Translated.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po trunk/library/snippets/Track/Token/ShowAllOpenSnippet.php Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-16 17:36:52 UTC (rev 848) @@ -123,6 +123,7 @@ $bridge->addSelect( 'gsu_id_primary_group', 'description', $this->_('If empty, survey will never show up!')); $bridge->addSelect( 'gsu_result_field', 'multiOptions', $surveyFields); $bridge->addText( 'gsu_duration'); + $bridge->addExhibitor( 'calc_duration', 'label', $this->_('Duration calculated'), 'value', $this->calculateDuration(isset($data['gsu_id_survey']) ? $data['gsu_id_survey'] : null)); $bridge->addText( 'gsu_code'); $bridge->addSelect( 'gsu_beforeanswering_event'); $bridge->addSelect( 'gsu_completed_event'); @@ -269,6 +270,57 @@ } /** + * Calculates the average duration for answering a survey + * + * @param $surveyId Id of survey to calculate it for + * @return MUtil_Html_HtmlElement + */ + public function calculateDuration($surveyId = null) + { + if ($surveyId) { + $fields['cnt'] = 'COUNT(*)'; + $fields['avg'] = 'AVG(gto_duration_in_sec)'; + $fields['std'] = 'STDDEV_POP(gto_duration_in_sec)'; + + $select = $this->loader->getTracker()->getTokenSelect($fields); + $select->forSurveyId($surveyId) + ->onlyCompleted(); + + $row = $select->fetchRow(); + if ($row) { + $trs = $this->util->getTranslated(); + $seq = new MUtil_Html_Sequence(); + $seq->setGlue(MUtil_Html::create('br', $this->view)); + + $seq->append(sprintf($this->_('Answered surveys: %d.'), $row['cnt'])); + $seq->append(sprintf($this->_('Average answer time: %s.'), $trs->formatTime($row['avg']))); + $seq->append(sprintf($this->_('Standard deviation: %s.'), $trs->formatTime($row['std']))); + + // Picked solution from http://stackoverflow.com/questions/1291152/simple-way-to-calculate-median-with-mysql + $sql = " +SELECT t1.gto_duration_in_sec as median_val +FROM (SELECT @rownum:=@rownum+1 as `row_number`, gto_duration_in_sec + FROM gems__tokens, (SELECT @rownum:=0) r + WHERE gto_id_survey = ? AND gto_completion_time IS NOT NULL + ORDER BY gto_duration_in_sec + ) AS t1, + (SELECT count(*) as total_rows + FROM gems__tokens + WHERE gto_id_survey = ? AND gto_completion_time IS NOT NULL + ) as t2 +WHERE t1.row_number=floor(total_rows/2)+1"; + if ($med = $this->db->fetchOne($sql, array($surveyId, $surveyId))) { + $seq->append(sprintf($this->_('Median value: %s.'), $trs->formatTime($med))); + } + + return $seq; + } + } + + return $this->_('incalculable'); + } + + /** * Check the tokens for a single survey */ public function checkAction() @@ -354,7 +406,11 @@ $model->set('gsu_survey_name', 'label', $this->_('Name')); $model->set('gsu_survey_description', 'label', $this->_('Description'), 'formatFunction', array(__CLASS__, 'formatDescription')); - $model->set('gso_source_name', 'label', $this->_('Source')); + if ($detailed) { + $model->set('gso_source_name', 'label', $this->_('Source')); + } else { + $model->set('gsu_duration', 'label', $this->_('Duration description'), 'description', $this->_('Text to inform the respondent, e.g. "20 seconds" or "1 minute".')); + } $model->set('gsu_status_show', 'label', $this->_('Status in source')); if ($detailed) { @@ -376,10 +432,10 @@ $events = $this->loader->getEvents(); $model->set('gsu_result_field', 'label', $this->_('Result field')); - $model->set('gsu_duration', 'label', $this->_('Duration description'), 'description', $this->_('Text to inform the respondent.')); - + $model->set('gsu_duration', 'label', $this->_('Duration description'), 'description', $this->_('Text to inform the respondent, e.g. "20 seconds" or "1 minute".')); + $model->setIfExists('gsu_code', 'label', $this->_('Code name'), 'size', 10, 'description', $this->_('Only for programmers.')); - + $model->set('gsu_beforeanswering_event', 'label', $this->_('Before answering'), 'multiOptions', $events->listSurveyBeforeAnsweringEvents()); $model->set('gsu_completed_event', 'label', $this->_('After completion'), 'multiOptions', $events->listSurveyCompletionEvents()); } Modified: trunk/library/classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php 2012-07-16 17:36:52 UTC (rev 848) @@ -60,6 +60,13 @@ protected $request; /** + * Switch for showing the duration. + * + * @var boolean + */ + protected $showDuration = true; + + /** * Required, the current token, possibly already answered * * @var Gems_Tracker_Token @@ -129,6 +136,19 @@ } /** + * Returns the duration if it should be displayed. + * + * @param string $duration + * @return string + */ + public function formatDuration($duration) + { + if ($duration && $this->showDuration) { + return sprintf($this->_('Takes about %s to answer.'), $duration) . ' '; + } + } + + /** * Formats an until date for this display * * @param MUtil_Date $dateTime @@ -137,30 +157,30 @@ public function formatUntil(MUtil_Date $dateTime = null) { if (null === $dateTime) { - return $this->_('This survey has no set time limit.'); + return $this->_('Survey has no time limit.'); } $days = $dateTime->diffDays(); switch ($days) { case 0: - return array(MUtil_Html::create('strong', $this->_('Warning!!!')), ' ', $this->_('This survey must be answered today!')); + return array(MUtil_Html::create('strong', $this->_('Warning!!!')), ' ', $this->_('Survey must be answered today!')); case 1: - return array(MUtil_Html::create('strong', $this->_('Warning!!')), ' ', $this->_('This survey must be answered tomorrow!')); + return array(MUtil_Html::create('strong', $this->_('Warning!!')), ' ', $this->_('Survey must be answered tomorrow!')); case 2: - return $this->_('Warning! This survey must be answered over 2 days!'); + return $this->_('Warning! Survey must be answered over 2 days!'); default: if (abs($days) <= 14) { if ($days >= 0) { - return sprintf($this->_('This survey must be answered in %d days.'), $days); + return sprintf($this->_('Survey must be answered in %d days.'), $days); } else { - return $this->_('This survey can no longer be answered.'); + return $this->_('Survey can no longer be answered.'); } } - return sprintf($this->_('This survey can be answered until %s.'), $dateTime->toString($this->dateFormat)); + return sprintf($this->_('Survey can be answered until %s.'), $dateTime->toString($this->dateFormat)); } } Modified: trunk/library/classes/Gems/Tracker/Survey.php =================================================================== --- trunk/library/classes/Gems/Tracker/Survey.php 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/classes/Gems/Tracker/Survey.php 2012-07-16 17:36:52 UTC (rev 848) @@ -253,7 +253,7 @@ { return $this->_gemsSurvey['gsu_code']; } - + /** * The time the survey was completed according to the source * @@ -289,6 +289,14 @@ return $this->_gemsSurvey['gsu_survey_description']; } + /** + * + * @return string The (manually entered) normal duration for taking this survey + */ + public function getDuration() + { + return $this->_gemsSurvey['gsu_duration']; + } /** * Modified: trunk/library/classes/Gems/Util/Translated.php =================================================================== --- trunk/library/classes/Gems/Util/Translated.php 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/classes/Gems/Util/Translated.php 2012-07-16 17:36:52 UTC (rev 848) @@ -167,6 +167,31 @@ } /** + * Returns the time in seconds as aq display string + * + * @param int $dateTimeValue + * @return string + */ + public function formatTime($dateTimeValue) + { + $seconds = str_pad($dateTimeValue % 60, 2, '0', STR_PAD_LEFT); + $rest = intval($dateTimeValue / 60); + $minutes = str_pad($rest % 60, 2, '0', STR_PAD_LEFT); + $hours = intval($rest / 60); + $days = intval($hours / 24); + + if ($hours > 48) { + $hours = $hours % 24; + + return sprintf($this->_('%d days %d:%s:%s'), $days, $hours, $minutes, $seconds); + } elseif ($hours) { + return sprintf($this->_('%d:%s:%s'), $hours, $minutes, $seconds); + } else { + return sprintf($this->_('%d:%s'), $minutes, $seconds); + } + } + + /** * The options for bulk mail token processing. * * @return array Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/languages/default-en.po 2012-07-16 17:36:52 UTC (rev 848) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-13 14:46+0100\n" +"POT-Creation-Date: 2012-07-16 19:30+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" +"Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -50,49 +50,49 @@ msgid "version" msgstr "version" -#: classes/GemsEscort.php:1447 +#: classes/GemsEscort.php:1451 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -#: classes/GemsEscort.php:1576 +#: classes/GemsEscort.php:1580 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1578 #: classes/GemsEscort.php:1582 -#: classes/GemsEscort.php:1583 +#: classes/GemsEscort.php:1586 +#: classes/GemsEscort.php:1587 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" -#: classes/GemsEscort.php:1593 +#: classes/GemsEscort.php:1597 msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1595 -#: classes/GemsEscort.php:1638 +#: classes/GemsEscort.php:1599 +#: classes/GemsEscort.php:1642 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1611 +#: classes/GemsEscort.php:1615 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1613 +#: classes/GemsEscort.php:1617 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1623 -#: classes/GemsEscort.php:1636 +#: classes/GemsEscort.php:1627 +#: classes/GemsEscort.php:1640 msgid "You are no longer logged in." msgstr "You are no longer logged in." -#: classes/GemsEscort.php:1624 +#: classes/GemsEscort.php:1628 msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1765 -#: classes/GemsEscort.php:1767 +#: classes/GemsEscort.php:1769 +#: classes/GemsEscort.php:1771 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -2206,107 +2206,137 @@ msgid "If empty, survey will never show up!" msgstr "If empty, survey will never show up!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:130 +#: classes/Gems/Default/SurveyMaintenanceAction.php:126 +msgid "Duration calculated" +msgstr "Duration calculated" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:131 msgid "Upload new PDF" msgstr "Upload new PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:138 +#: classes/Gems/Default/SurveyMaintenanceAction.php:139 msgid "Usage" msgstr "Usage" -#: classes/Gems/Default/SurveyMaintenanceAction.php:153 +#: classes/Gems/Default/SurveyMaintenanceAction.php:154 msgid "Single Survey Assignment" msgstr "Single Survey Assignment" -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 msgid "Assignable since" msgstr "Assignable since" -#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:200 msgid "Assignable until" msgstr "Assignable until" -#: classes/Gems/Default/SurveyMaintenanceAction.php:205 +#: classes/Gems/Default/SurveyMaintenanceAction.php:206 msgid "Create Single Survey" msgstr "Create Single Survey" -#: classes/Gems/Default/SurveyMaintenanceAction.php:209 +#: classes/Gems/Default/SurveyMaintenanceAction.php:210 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "At the moment this survey can only be assigned to paitents as part of an existing track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:264 +#: classes/Gems/Default/SurveyMaintenanceAction.php:265 msgid "Survey should be assigned to a group before making it active." msgstr "Survey should be assigned to a group before making it active." -#: classes/Gems/Default/SurveyMaintenanceAction.php:281 +#: classes/Gems/Default/SurveyMaintenanceAction.php:295 #, php-format +msgid "Answered surveys: %d." +msgstr "Answered surveys: %d." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#, php-format +msgid "Average answer time: %s." +msgstr "Average answer time: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#, php-format +msgid "Standard deviation: %s." +msgstr "Standard deviation: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:313 +#, php-format +msgid "Median value: %s." +msgstr "Median value: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:320 +msgid "incalculable" +msgstr "incalculable" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:333 +#, php-format msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:293 +#: classes/Gems/Default/SurveyMaintenanceAction.php:345 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:350 +#: classes/Gems/Default/SurveyMaintenanceAction.php:402 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:357 +#: classes/Gems/Default/SurveyMaintenanceAction.php:410 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:358 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +msgid "Duration description" +msgstr "Duration description" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." +msgstr "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:361 +#: classes/Gems/Default/SurveyMaintenanceAction.php:417 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:362 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:369 +#: classes/Gems/Default/SurveyMaintenanceAction.php:425 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:434 msgid "Result field" msgstr "Result field" -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 -msgid "Duration description" -msgstr "Duration description" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 -msgid "Text to inform the respondent." -msgstr "Text to inform the respondent." - -#: classes/Gems/Default/SurveyMaintenanceAction.php:383 +#: classes/Gems/Default/SurveyMaintenanceAction.php:439 msgid "Before answering" msgstr "Before answering" -#: classes/Gems/Default/SurveyMaintenanceAction.php:384 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "After completion" msgstr "After completion" -#: classes/Gems/Default/SurveyMaintenanceAction.php:414 +#: classes/Gems/Default/SurveyMaintenanceAction.php:470 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:472 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:420 +#: classes/Gems/Default/SurveyMaintenanceAction.php:476 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:422 +#: classes/Gems/Default/SurveyMaintenanceAction.php:478 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -3479,65 +3509,70 @@ msgid "Next >" msgstr "Next >" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:115 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:122 msgid "We have received your answers today. Thank you!" msgstr "We have received your answers today. Thank you!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:118 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:125 msgid "We have received your answers yesterday. Thank you!" msgstr "We have received your answers yesterday. Thank you!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:121 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:128 msgid "We have received your answers 2 days ago. Thank you." msgstr "We have received your answers 2 days ago. Thank you." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:125 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:132 #, php-format msgid "We have received your answers %d days ago. Thank you." msgstr "We have received your answers %d days ago. Thank you." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:127 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:134 #, php-format msgid "We have received your answers on %s. " msgstr "We have received your answers on %s. " -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:140 -msgid "This survey has no set time limit." -msgstr "This survey has no set time limit." +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 +#, php-format +msgid "Takes about %s to answer." +msgstr "Takes about %s to answer." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:160 +msgid "Survey has no time limit." +msgstr "Survey has no time limit." + +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:167 msgid "Warning!!!" msgstr "Warning!!!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 -msgid "This survey must be answered today!" -msgstr "This survey must be answered today!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:167 +msgid "Survey must be answered today!" +msgstr "Survey must be answered today!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:150 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:170 msgid "Warning!!" msgstr "Warning!!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:150 -msgid "This survey must be answered tomorrow!" -msgstr "This survey must be answered tomorrow!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:170 +msgid "Survey must be answered tomorrow!" +msgstr "Survey must be answered tomorrow!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:153 -msgid "Warning! This survey must be answered over 2 days!" -msgstr "Warning! This survey must be answered over 2 days!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:173 +msgid "Warning! Survey must be answered over 2 days!" +msgstr "Warning! Survey must be answered over 2 days!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:158 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:178 #, php-format -msgid "This survey must be answered in %d days." -msgstr "This survey must be answered in %d days." +msgid "Survey must be answered in %d days." +msgstr "Survey must be answered in %d days." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:160 -msgid "This survey can no longer be answered." -msgstr "This survey can no longer be answered." +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:180 +msgid "Survey can no longer be answered." +msgstr "Survey can no longer be answered." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:163 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:183 #, php-format -msgid "This survey can be answered until %s." -msgstr "This survey can be answered until %s." +msgid "Survey can be answered until %s." +msgstr "Survey can be answered until %s." #: classes/Gems/Tracker/Source/LimeSurvey1m9Database.php:376 #: classes/Gems/Tracker/Source/LimeSurvey1m9Database.php:1162 @@ -3806,12 +3841,12 @@ msgid "Unable to send e-mail." msgstr "Unable to send e-mail." -#: classes/Gems/User/UserLoader.php:234 -#: classes/Gems/User/UserLoader.php:248 +#: classes/Gems/User/UserLoader.php:244 +#: classes/Gems/User/UserLoader.php:258 msgid "Db storage" msgstr "Db storage" -#: classes/Gems/User/UserLoader.php:249 +#: classes/Gems/User/UserLoader.php:259 msgid "Radius storage" msgstr "Radius storage" @@ -3944,43 +3979,58 @@ msgid "%d days ago" msgstr "%d days ago" -#: classes/Gems/Util/Translated.php:177 +#: classes/Gems/Util/Translated.php:186 +#, php-format +msgid "%d days %d:%s:%s" +msgstr "%d days %d:%s:%s" + +#: classes/Gems/Util/Translated.php:188 +#, php-format +msgid "%d:%s:%s" +msgstr "%d:%s:%s" + +#: classes/Gems/Util/Translated.php:190 +#, php-format +msgid "%d:%s" +msgstr "%d:%s" + +#: classes/Gems/Util/Translated.php:202 msgid "Send multiple mails per respondent, one for each checked token." msgstr "Send multiple mails per patient, one for each checked token." -#: classes/Gems/Util/Translated.php:178 +#: classes/Gems/Util/Translated.php:203 msgid "Send one mail per respondent, mark all checked tokens as send." msgstr "Send one mail per patient, mark all checked tokens as send." -#: classes/Gems/Util/Translated.php:179 +#: classes/Gems/Util/Translated.php:204 msgid "Send one mail per respondent, mark only mailed tokens as send." msgstr "Send one mail per patient, mark only mailed tokens as send." -#: classes/Gems/Util/Translated.php:204 +#: classes/Gems/Util/Translated.php:229 msgid "Unknown" msgstr "Unknown" -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mr." msgstr "Mr." -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mrs." msgstr "Mrs." -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mr./mrs." msgstr "Mr./Mrs." -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mr." msgstr "Mr." -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mrs." msgstr "Mrs." -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mr./Mrs." msgstr "Mr./Mrs." @@ -4374,17 +4424,17 @@ msgid "Round: %s" msgstr "Round: %s" -#: snippets/Track/Token/ShowAllOpenSnippet.php:189 +#: snippets/Track/Token/ShowAllOpenSnippet.php:190 msgid "Please answer the open survey." msgid_plural "Please answer the open surveys." msgstr[0] "Please answer the open survey." msgstr[1] "Please answer the open surveys." -#: snippets/Track/Token/ShowAllOpenSnippet.php:191 +#: snippets/Track/Token/ShowAllOpenSnippet.php:192 msgid "Thank you for answering all open surveys." msgstr "Thank you for answering all open surveys." -#: snippets/Track/Token/ShowAllOpenSnippet.php:194 +#: snippets/Track/Token/ShowAllOpenSnippet.php:195 msgid "There are no surveys to show for this token." msgstr "There are no surveys to show for this token." @@ -4660,9 +4710,6 @@ #~ msgid "Completion event" #~ msgstr "Completion event" -#~ msgid "Do not calculate this date." -#~ msgstr "Do not calculate this date." - #~ msgid "" #~ "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer " #~ "de gegevens en probeer a.u.b. opnieuw." Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/languages/default-nl.po 2012-07-16 17:36:52 UTC (rev 848) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-13 14:42+0100\n" +"POT-Creation-Date: 2012-07-16 19:31+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" +"Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -50,49 +50,49 @@ msgid "version" msgstr "versie" -#: classes/GemsEscort.php:1447 +#: classes/GemsEscort.php:1451 msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." -#: classes/GemsEscort.php:1576 +#: classes/GemsEscort.php:1580 msgid "Please check back later." msgstr "Probeer het later opnieuw." -#: classes/GemsEscort.php:1578 #: classes/GemsEscort.php:1582 -#: classes/GemsEscort.php:1583 +#: classes/GemsEscort.php:1586 +#: classes/GemsEscort.php:1587 msgid "System is in maintenance mode" msgstr "Systeem is in onderhoudsmodus" -#: classes/GemsEscort.php:1593 +#: classes/GemsEscort.php:1597 msgid "No access to site." msgstr "Geen toegang tot website." -#: classes/GemsEscort.php:1595 -#: classes/GemsEscort.php:1638 +#: classes/GemsEscort.php:1599 +#: classes/GemsEscort.php:1642 msgid "You have no access to this site." msgstr "U heeft geen toegang tot deze website." -#: classes/GemsEscort.php:1611 +#: classes/GemsEscort.php:1615 msgid "No access to page" msgstr "Geen toegang tot pagina" -#: classes/GemsEscort.php:1613 +#: classes/GemsEscort.php:1617 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." -#: classes/GemsEscort.php:1623 -#: classes/GemsEscort.php:1636 +#: classes/GemsEscort.php:1627 +#: classes/GemsEscort.php:1640 msgid "You are no longer logged in." msgstr "U bent niet meer ingelogd." -#: classes/GemsEscort.php:1624 +#: classes/GemsEscort.php:1628 msgid "You must login to access this page." msgstr "U moet ingelogd zijn voor toegang tot deze pagina." -#: classes/GemsEscort.php:1765 -#: classes/GemsEscort.php:1767 +#: classes/GemsEscort.php:1769 +#: classes/GemsEscort.php:1771 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -2206,107 +2206,137 @@ msgid "If empty, survey will never show up!" msgstr "Indien leeg zal de vragenlijst niet tevoorschijn komen!" -#: classes/Gems/Default/SurveyMaintenanceAction.php:130 +#: classes/Gems/Default/SurveyMaintenanceAction.php:126 +msgid "Duration calculated" +msgstr "Afnametijd berekent" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:131 msgid "Upload new PDF" msgstr "Upload nieuwe PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:138 +#: classes/Gems/Default/SurveyMaintenanceAction.php:139 msgid "Usage" msgstr "Gebruik" -#: classes/Gems/Default/SurveyMaintenanceAction.php:153 +#: classes/Gems/Default/SurveyMaintenanceAction.php:154 msgid "Single Survey Assignment" msgstr "Losse vragenlijst toewijzing" -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 msgid "Assignable since" msgstr "Toewijsbaar sinds" -#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:200 msgid "Assignable until" msgstr "Toewijsbaar tot" -#: classes/Gems/Default/SurveyMaintenanceAction.php:205 +#: classes/Gems/Default/SurveyMaintenanceAction.php:206 msgid "Create Single Survey" msgstr "Maak losse vragenlijst" -#: classes/Gems/Default/SurveyMaintenanceAction.php:209 +#: classes/Gems/Default/SurveyMaintenanceAction.php:210 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "Op dit moment kan deze vragenlijst alleen aan patiënten toegewezen als onderdeel van een traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:264 +#: classes/Gems/Default/SurveyMaintenanceAction.php:265 msgid "Survey should be assigned to a group before making it active." msgstr "Vragenlijst moet aan een groep toegewezen worden voordat deze actief kan worden gemaakt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:281 +#: classes/Gems/Default/SurveyMaintenanceAction.php:295 #, php-format +msgid "Answered surveys: %d." +msgstr "Beantwoorde vragenlijsten: %d." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#, php-format +msgid "Average answer time: %s." +msgstr "Gemiddelde antwoordtijd: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#, php-format +msgid "Standard deviation: %s." +msgstr "Standaard deviatie: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:313 +#, php-format +msgid "Median value: %s." +msgstr "Median waarde: %s." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:320 +msgid "incalculable" +msgstr "onberekenbaar" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:333 +#, php-format msgid "Checking survey results for the %s survey." msgstr "Controle op vragenlijstresultaten voor de vragenlijst '%s'." -#: classes/Gems/Default/SurveyMaintenanceAction.php:293 +#: classes/Gems/Default/SurveyMaintenanceAction.php:345 msgid "Checking survey results for all surveys." msgstr "Controle op vragenlijstresultaten voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:350 +#: classes/Gems/Default/SurveyMaintenanceAction.php:402 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:357 +#: classes/Gems/Default/SurveyMaintenanceAction.php:410 msgid "Source" msgstr "Bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:358 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +msgid "Duration description" +msgstr "Beschrijving afnametijd" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." +msgstr "Tekst om de patiënt te informeren, bijv. \"20 seconden\" of \"1 minuut\"." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 msgid "Status in source" msgstr "Status in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:361 +#: classes/Gems/Default/SurveyMaintenanceAction.php:417 msgid "Active in source" msgstr "Actief in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:362 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 #, php-format msgid "Active in %s" msgstr "Actief in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:369 +#: classes/Gems/Default/SurveyMaintenanceAction.php:425 msgid "Single" msgstr "Los" -#: classes/Gems/Default/SurveyMaintenanceAction.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:434 msgid "Result field" msgstr "Resultaat veld" -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 -msgid "Duration description" -msgstr "Beschrijving afnametijd" - -#: classes/Gems/Default/SurveyMaintenanceAction.php:379 -msgid "Text to inform the respondent." -msgstr "tekst er informatie van de patiënt." - -#: classes/Gems/Default/SurveyMaintenanceAction.php:383 +#: classes/Gems/Default/SurveyMaintenanceAction.php:439 msgid "Before answering" msgstr "Voor beantwoording" -#: classes/Gems/Default/SurveyMaintenanceAction.php:384 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "After completion" msgstr "Na afronding" -#: classes/Gems/Default/SurveyMaintenanceAction.php:414 +#: classes/Gems/Default/SurveyMaintenanceAction.php:470 #, php-format msgid "%d times in track." msgstr "%d keer in traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:472 #, php-format msgid "%d times in %d track(s)." msgstr "%d keer in %d traject(en)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:420 +#: classes/Gems/Default/SurveyMaintenanceAction.php:476 msgid "Not used in track." msgstr "Niet in traject gebruikt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:422 +#: classes/Gems/Default/SurveyMaintenanceAction.php:478 msgid "Not used in tracks." msgstr "Niet in trajecten gebruikt." @@ -3479,65 +3509,70 @@ msgid "Next >" msgstr "Verder >" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:115 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:122 msgid "We have received your answers today. Thank you!" msgstr "We hebben uw vragenlijst vandaag ingevuld ontvangen. Dank u wel!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:118 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:125 msgid "We have received your answers yesterday. Thank you!" msgstr "We hebben uw vragenlijst gisteren ingevuld ontvangen. Dank u wel!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:121 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:128 msgid "We have received your answers 2 days ago. Thank you." msgstr "We hebben uw vragenlijst eergisteren ingevuld ontvangen. Dank u wel." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:125 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:132 #, php-format msgid "We have received your answers %d days ago. Thank you." msgstr "We hebben uw vragenlijst %d dagen geleden ingevuld ontvangen. Dank u wel." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:127 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:134 #, php-format msgid "We have received your answers on %s. " msgstr "We hebben uw vragenlijst op %s ingevuld ontvangen." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:140 -msgid "This survey has no set time limit." -msgstr "Deze vragenlijst heeft geen eindtijd." +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 +#, php-format +msgid "Takes about %s to answer." +msgstr "Duurt meestal ongeveer %s." -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:160 +msgid "Survey has no time limit." +msgstr "Vragenlijst zonder eindtijd." + +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:167 msgid "Warning!!!" msgstr "Let op!!!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:147 -msgid "This survey must be answered today!" -msgstr "Deze vragenlijst moet vandaag ingevuld zijn!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:167 +msgid "Survey must be answered today!" +msgstr "Vragenlijst moet vandaag ingevuld zijn!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:150 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:170 msgid "Warning!!" msgstr "Let op!!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:150 -msgid "This survey must be answered tomorrow!" -msgstr "Deze vragenlijst moet morgen ingevuld zijn!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:170 +msgid "Survey must be answered tomorrow!" +msgstr "Vragenlijst moet morgen ingevuld zijn!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:153 -msgid "Warning! This survey must be answered over 2 days!" -msgstr "Let op! Deze vragenlijst moet overmorgen ingevuld zijn!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:173 +msgid "Warning! Survey must be answered over 2 days!" +msgstr "Let op! Vragenlijst moet overmorgen ingevuld zijn!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:158 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:178 #, php-format -msgid "This survey must be answered in %d days." -msgstr "Deze vragenlijst moet binnen %d dagen ingevuld zijn!" +msgid "Survey must be answered in %d days." +msgstr "Vragenlijst moet binnen %d dagen ingevuld zijn!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:160 -msgid "This survey can no longer be answered." -msgstr "Deze vragenlijst kan niet langer worden ingevuld!" +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:180 +msgid "Survey can no longer be answered." +msgstr "Vragenlijst kan niet langer worden ingevuld!" -#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:163 +#: classes/Gems/Tracker/Snippets/ShowTokenLoopAbstract.php:183 #, php-format -msgid "This survey can be answered until %s." -msgstr "Deze vragenlijst moet ingevuld worden voor %s." +msgid "Survey can be answered until %s." +msgstr "Moet ingevuld worden voor %s." #: classes/Gems/Tracker/Source/LimeSurvey1m9Database.php:376 #: classes/Gems/Tracker/Source/LimeSurvey1m9Database.php:1162 @@ -3806,12 +3841,12 @@ msgid "Unable to send e-mail." msgstr "Verzenden email mislukt." -#: classes/Gems/User/UserLoader.php:234 -#: classes/Gems/User/UserLoader.php:248 +#: classes/Gems/User/UserLoader.php:244 +#: classes/Gems/User/UserLoader.php:258 msgid "Db storage" msgstr "Database opslag" -#: classes/Gems/User/UserLoader.php:249 +#: classes/Gems/User/UserLoader.php:259 msgid "Radius storage" msgstr "Radius authenticatie" @@ -3944,43 +3979,58 @@ msgid "%d days ago" msgstr "%d dagen terug" -#: classes/Gems/Util/Translated.php:177 +#: classes/Gems/Util/Translated.php:186 +#, php-format +msgid "%d days %d:%s:%s" +msgstr "%d dagen %d:%s:%s" + +#: classes/Gems/Util/Translated.php:188 +#, php-format +msgid "%d:%s:%s" +msgstr "%d:%s:%s" + +#: classes/Gems/Util/Translated.php:190 +#, php-format +msgid "%d:%s" +msgstr "%d:%s" + +#: classes/Gems/Util/Translated.php:202 msgid "Send multiple mails per respondent, one for each checked token." msgstr "Verstuur meerdere emails per patiënt, één per gekozen kenmerk." -#: classes/Gems/Util/Translated.php:178 +#: classes/Gems/Util/Translated.php:203 msgid "Send one mail per respondent, mark all checked tokens as send." msgstr "Verstuur één email per patiënt, zet alle gekozen kenmerken op verzonden." -#: classes/Gems/Util/Translated.php:179 +#: classes/Gems/Util/Translated.php:204 msgid "Send one mail per respondent, mark only mailed tokens as send." msgstr "Verstuur één email per patiënt, zet alleen de verzonden kenmerken op verzonden." -#: classes/Gems/Util/Translated.php:204 +#: classes/Gems/Util/Translated.php:229 msgid "Unknown" msgstr "Onbekend" -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mr." msgstr "meneer" -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mrs." msgstr "mevrouw" -#: classes/Gems/Util/Translated.php:217 +#: classes/Gems/Util/Translated.php:242 msgid "mr./mrs." msgstr "heer/mevrouw" -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mr." msgstr "De heer" -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mrs." msgstr "Mevrouw" -#: classes/Gems/Util/Translated.php:230 +#: classes/Gems/Util/Translated.php:255 msgid "Mr./Mrs." msgstr "De heer/Mevrouw" @@ -4374,17 +4424,17 @@ msgid "Round: %s" msgstr "Ronde: %s" -#: snippets/Track/Token/ShowAllOpenSnippet.php:189 +#: snippets/Track/Token/ShowAllOpenSnippet.php:190 msgid "Please answer the open survey." msgid_plural "Please answer the open surveys." msgstr[0] "Wij verzoeken u de openstaande vragenlijst nu in te vullen." msgstr[1] "Wij verzoeken u de openstaande vragenlijsten nu in te vullen." -#: snippets/Track/Token/ShowAllOpenSnippet.php:191 +#: snippets/Track/Token/ShowAllOpenSnippet.php:192 msgid "Thank you for answering all open surveys." msgstr "Dank u voor het beantwoorden van alle openstaande vragenlijsten." -#: snippets/Track/Token/ShowAllOpenSnippet.php:194 +#: snippets/Track/Token/ShowAllOpenSnippet.php:195 msgid "There are no surveys to show for this token." msgstr "U heeft geen open vragenlijsten voor dit kenmerk." @@ -4675,9 +4725,6 @@ #~ msgid "Completion event" #~ msgstr "Afrondingscode" -#~ msgid "Do not calculate this date." -#~ msgstr "Laat deze datum leeg." - #~ msgid "" #~ "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer " #~ "de gegevens en probeer a.u.b. opnieuw." Modified: trunk/library/snippets/Track/Token/ShowAllOpenSnippet.php =================================================================== --- trunk/library/snippets/Track/Token/ShowAllOpenSnippet.php 2012-07-16 07:50:44 UTC (rev 847) +++ trunk/library/snippets/Track/Token/ShowAllOpenSnippet.php 2012-07-16 17:36:52 UTC (rev 848) @@ -174,6 +174,7 @@ $a = $div->actionLink($this->getTokenHref($token), $token->getSurveyName()); $div->append(' '); + $div->append($this->formatDuration($token->getSurvey()->getDuration())); $div->append($this->formatUntil($token->getValidUntil())); /* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-07-18 11:55:49
|
Revision: 856 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=856&view=rev Author: michieltcs Date: 2012-07-18 11:55:39 +0000 (Wed, 18 Jul 2012) Log Message: ----------- Fix 'privilige' typos, mark addHiddenPrivilige as deprecated (but retain it to keep BC) Modified Paths: -------------- trunk/library/classes/Gems/Menu.php trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/Gems/Menu.php =================================================================== --- trunk/library/classes/Gems/Menu.php 2012-07-18 11:53:21 UTC (rev 855) +++ trunk/library/classes/Gems/Menu.php 2012-07-18 11:55:39 UTC (rev 856) @@ -60,7 +60,7 @@ */ private $_currentMenuItem; - private $_hiddenPriviliges = array(); + private $_hiddenPrivileges = array(); private $_onlyActiveBranchVisible = false; /** @@ -128,7 +128,7 @@ * * @param string $label Label for the whole menu * @param string $project The project object - * @param string $privilege The privilige for reporting bugs + * @param string $privilege The privilege for reporting bugs */ public function addContactPage($label) { @@ -157,8 +157,8 @@ * you should ALWAYS put this menu in the root menu. * * @param string $label Label for the whole menu - * @param string $privilegeShow The limited privilige (look and edit some items) - * @param string $privilegeEdits The privilige for being allowed to do anything + * @param string $privilegeShow The limited privilege (look and edit some items) + * @param string $privilegeEdits The privilege for being allowed to do anything */ public function addGemsSetupContainer($label) { @@ -226,15 +226,27 @@ } /** - * Use this to add a privilege that is not associated with a menu item. + * Method retained to maintain BC - {@see Gems_Menu::addHiddenPrivilege} * + * @deprecated * @param string $privilege * @return Gems_Menu */ public function addHiddenPrivilige($privilege) { - $this->_hiddenPriviliges[$privilege] = sprintf($this->_('Stand-alone privilige: %s'), $privilege); + return $this->addHiddenPrivilege($privilege); + } + /** + * Use this to add a privilege that is not associated with a menu item. + * + * @param string $privilege + * @return Gems_Menu + */ + public function addHiddenPrivilege($privilege) + { + $this->_hiddenPrivileges[$privilege] = sprintf($this->_('Stand-alone privilege: %s'), $privilege); + return $this; } @@ -538,7 +550,7 @@ */ public function getUsedPrivileges() { - $privileges = $this->_hiddenPriviliges; + $privileges = $this->_hiddenPrivileges; $this->_addUsedPrivileges($privileges, ''); @@ -601,14 +613,14 @@ $this->addContactPage($this->_('Contact')); // Privileges not associated with menu item - //$this->addHiddenPrivilige('pr.plan.choose-org'); - $this->addHiddenPrivilige('pr.plan.mail-as-application'); - $this->addHiddenPrivilige('pr.respondent.multiorg'); - $this->addHiddenPrivilige('pr.respondent.result'); - $this->addHiddenPrivilige('pr.respondent.who'); - $this->addHiddenPrivilige('pr.staff.edit.all'); - $this->addHiddenPrivilige('pr.staff.see.all'); - $this->addHiddenPrivilige('pr.token.mail.freetext'); + //$this->addHiddenPrivilege('pr.plan.choose-org'); + $this->addHiddenPrivilege('pr.plan.mail-as-application'); + $this->addHiddenPrivilege('pr.respondent.multiorg'); + $this->addHiddenPrivilege('pr.respondent.result'); + $this->addHiddenPrivilege('pr.respondent.who'); + $this->addHiddenPrivilege('pr.staff.edit.all'); + $this->addHiddenPrivilege('pr.staff.see.all'); + $this->addHiddenPrivilege('pr.token.mail.freetext'); //Changelog added as button only Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-07-18 11:53:21 UTC (rev 855) +++ trunk/library/languages/default-nl.po 2012-07-18 11:55:39 UTC (rev 856) @@ -1,5230 +1,5219 @@ -msgid "" -msgstr "" -"Project-Id-Version: GemsTracker NL\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-18 11:32+0100\n" -"PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" -"Language-Team: Erasmus MGZ <mat...@ma...>\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: \n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: Dutch\n" -"X-Poedit-Country: NETHERLANDS\n" -"X-Poedit-SourceCharset: iso-8859-1\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-KeywordsList: plural:1,2\n" -"X-Poedit-SearchPath-0: .\n" - -#: classes/GemsEscort.php:215 -#, php-format -msgid "Path %s not writable" -msgstr "Path %s niet schrijfbaar" - -#: classes/GemsEscort.php:597 -msgid " > " -msgstr " | " - -#: classes/GemsEscort.php:788 -#, php-format -msgid "You are logged in as %s" -msgstr "Ingelogd als %s" - -#: classes/GemsEscort.php:790 -#: classes/Gems/Menu.php:249 -msgid "Logoff" -msgstr "Uitloggen" - -#: classes/GemsEscort.php:793 -msgid "You are not logged in" -msgstr "U bent niet ingelogd" - -#: classes/GemsEscort.php:980 -#, php-format -msgid "User: %s" -msgstr "Login: %s" - -#: classes/GemsEscort.php:1005 -msgid "version" -msgstr "versie" - -#: classes/GemsEscort.php:1451 -msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." - -#: classes/GemsEscort.php:1580 -msgid "Please check back later." -msgstr "Probeer het later opnieuw." - -#: classes/GemsEscort.php:1582 -#: classes/GemsEscort.php:1586 -#: classes/GemsEscort.php:1587 -msgid "System is in maintenance mode" -msgstr "Systeem is in onderhoudsmodus" - -#: classes/GemsEscort.php:1597 -msgid "No access to site." -msgstr "Geen toegang tot website." - -#: classes/GemsEscort.php:1599 -#: classes/GemsEscort.php:1642 -msgid "You have no access to this site." -msgstr "U heeft geen toegang tot deze website." - -#: classes/GemsEscort.php:1615 -msgid "No access to page" -msgstr "Geen toegang tot pagina" - -#: classes/GemsEscort.php:1617 -#, php-format -msgid "Access to this page is not allowed for current role: %s." -msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." - -#: classes/GemsEscort.php:1627 -#: classes/GemsEscort.php:1640 -msgid "You are no longer logged in." -msgstr "U bent niet meer ingelogd." - -#: classes/GemsEscort.php:1628 -msgid "You must login to access this page." -msgstr "U moet ingelogd zijn voor toegang tot deze pagina." - -#: classes/GemsEscort.php:1769 -#: classes/GemsEscort.php:1771 -#, php-format -msgid "%d survey" -msgid_plural "%d surveys" -msgstr[0] "%d vragenlijst" -msgstr[1] "%d vragenlijsten" - -#: classes/Gems/AccessLog.php:236 -msgid "Database needs to be updated!" -msgstr "Database dient ververst te worden!" - -#: classes/Gems/Html.php:155 -msgid "<< First" -msgstr "<< Eerste" - -#: classes/Gems/Html.php:156 -msgid "< Previous" -msgstr "< Terug" - -#: classes/Gems/Html.php:157 -msgid "Next >" -msgstr "Verder >" - -#: classes/Gems/Html.php:158 -msgid "Last >>" -msgstr "Laatste >>" - -#: classes/Gems/Html.php:159 -msgid " | " -msgstr " | " - -#: classes/Gems/Html.php:163 -msgid "to" -msgstr "tot" - -#: classes/Gems/Html.php:164 -msgid "of" -msgstr "van" - -#: classes/Gems/Menu.php:140 -#, php-format -msgid "About %s" -msgstr "Over %s" - -#: classes/Gems/Menu.php:144 -msgid "Reporting bugs" -msgstr "Meld een bug" - -#: classes/Gems/Menu.php:147 -msgid "Support" -msgstr "Ondersteuning" - -#: classes/Gems/Menu.php:167 -msgid "Project setup" -msgstr "Projectinfo" - -#: classes/Gems/Menu.php:170 -msgid "Database" -msgstr "Database" - -#: classes/Gems/Menu.php:174 -msgid "Content" -msgstr "Inhoud" - -#: classes/Gems/Menu.php:177 -msgid "Execute" -msgstr "Uitvoeren" - -#: classes/Gems/Menu.php:182 -msgid "Patches" -msgstr "Patches" - -#: classes/Gems/Menu.php:183 -msgid "Execute new" -msgstr "Nieuwe aanmaken" - -#: classes/Gems/Menu.php:185 -msgid "Refresh translateables" -msgstr "Ververs vertaalbaren" - -#: classes/Gems/Menu.php:187 -msgid "Run SQL" -msgstr "SQL uitvoeren" - -#: classes/Gems/Menu.php:190 -msgid "Reception codes" -msgstr "Ontvangst codes" - -#: classes/Gems/Menu.php:193 -msgid "Consents" -msgstr "Toestemmingen" - -#: classes/Gems/Menu.php:196 -msgid "Roles" -msgstr "Rollen" - -#: classes/Gems/Menu.php:197 -#: classes/Gems/Menu.php:377 -msgid "Assigned" -msgstr "Toegewezen" - -#: classes/Gems/Menu.php:198 -msgid "Privileges" -msgstr "Priviléges" - -#: classes/Gems/Menu.php:201 -msgid "Groups" -msgstr "Groepen" - -#: classes/Gems/Menu.php:204 -msgid "Organizations" -msgstr "Organisaties" - -#: classes/Gems/Menu.php:207 -msgid "Staff" -msgstr "Medewerkers" - -#: classes/Gems/Menu.php:210 -msgid "Logging" -msgstr "Logboek" - -#: classes/Gems/Menu.php:214 -msgid "Maintenance" -msgstr "Onderhoud" - -#: classes/Gems/Menu.php:219 -msgid "Upgrade" -msgstr "Upgrade" - -#: classes/Gems/Menu.php:220 -#: classes/Gems/Menu.php:341 -msgid "Show" -msgstr "Toon" - -#: classes/Gems/Menu.php:221 -msgid "Execute all" -msgstr "Alles uitvoeren" - -#: classes/Gems/Menu.php:222 -msgid "Execute this" -msgstr "Dit uitvoeren" - -#: classes/Gems/Menu.php:223 -msgid "Execute from here" -msgstr "Uitvoeren vanaf hier" - -#: classes/Gems/Menu.php:224 -msgid "Execute to here" -msgstr "Uitvoeren tot hier" - -#: classes/Gems/Menu.php:236 -#, php-format -msgid "Stand-alone privilige: %s" -msgstr "Zelfstandig privilege: %s" - -#: classes/Gems/Menu.php:243 -msgid "Logon" -msgstr "Login" - -#: classes/Gems/Menu.php:244 -msgid "Lost password" -msgstr "Wachtwoord vergeten" - -#: classes/Gems/Menu.php:245 -msgid "Your account" -msgstr "Uw account" - -#: classes/Gems/Menu.php:246 -msgid "Activity overview" -msgstr "Activiteiten overzicht" - -#: classes/Gems/Menu.php:247 -msgid "Change password" -msgstr "Uw wachtwoord" - -#: classes/Gems/Menu.php:248 -#: classes/Gems/Menu.php:301 -#: classes/Gems/Menu.php:347 -msgid "Token" -msgstr "Kenmerk" - -#: classes/Gems/Menu.php:289 -msgid "Export" -msgstr "Exporteer" - -#: classes/Gems/Menu.php:296 -msgid "Track" -msgstr "Traject" - -#: classes/Gems/Menu.php:304 -#: classes/Gems/Menu.php:329 -#: classes/Gems/Menu.php:371 -msgid "Add" -msgstr "Voeg toe" - -#: classes/Gems/Menu.php:310 -#: classes/Gems/Menu.php:410 -msgid "Preview" -msgstr "Preview" - -#: classes/Gems/Menu.php:319 -msgid "Tracks" -msgstr "Trajecten" - -#: classes/Gems/Menu.php:335 -msgid "Assignments" -msgstr "Toewijzingen" - -#: classes/Gems/Menu.php:351 -msgid "Edit" -msgstr "Wijzig" - -#: classes/Gems/Menu.php:357 -msgid "Delete" -msgstr "Verwijder" - -#: classes/Gems/Menu.php:364 -msgid "Surveys" -msgstr "Vragenlijsten" - -#: classes/Gems/Menu.php:401 -msgid "Fill in" -msgstr "Vul in" - -#: classes/Gems/Menu.php:404 -msgid "Print PDF" -msgstr "Print PDF" - -#: classes/Gems/Menu.php:407 -msgid "E-Mail now!" -msgstr "Email nu!" - -#: classes/Gems/Menu.php:413 -msgid "Answers" -msgstr "Antwoorden" - -#: classes/Gems/Menu.php:565 -msgid "Respondents" -msgstr "Patiënten" - -#: classes/Gems/Menu.php:573 -msgid "Overview" -msgstr "Overzicht" - -#: classes/Gems/Menu.php:580 -msgid "Project" -msgstr "Project" - -#: classes/Gems/Menu.php:583 -msgid "Setup" -msgstr "Beheer" - -#: classes/Gems/Menu.php:586 -msgid "Track Builder" -msgstr "Traject bouwer" - -#: classes/Gems/Menu.php:589 -msgid "Mail" -msgstr "Email" - -#: classes/Gems/Menu.php:595 -msgid "Export respondent" -msgstr "Exporteer patiënt" - -#: classes/Gems/Menu.php:601 -msgid "Contact" -msgstr "Contact" - -#: classes/Gems/Menu.php:615 -msgid "Changelog" -msgstr "Changelog" - -#: classes/Gems/Model.php:206 -msgid "Respondent nr" -msgstr "Patiënt nr" - -#: classes/Gems/Model.php:209 -msgid "Organization" -msgstr "Organisatie" - -#: classes/Gems/Model.php:211 -msgid "Opened" -msgstr "Bekeken op" - -#: classes/Gems/Model.php:212 -msgid "Consent" -msgstr "Toestemming" - -#: classes/Gems/Model.php:214 -msgid "E-Mail" -msgstr "Email" - -#: classes/Gems/Model.php:219 -msgid "Gender" -msgstr "Geslacht" - -#: classes/Gems/Model.php:220 -msgid "First name" -msgstr "Voornaam" - -#: classes/Gems/Model.php:221 -msgid "Surname prefix" -msgstr "Tussenvoegsel" - -#: classes/Gems/Model.php:222 -msgid "Last name" -msgstr "Achternaam" - -#: classes/Gems/Model.php:224 -msgid "Name" -msgstr "Naam" - -#: classes/Gems/Model.php:227 -msgid "Street" -msgstr "Straat" - -#: classes/Gems/Model.php:228 -msgid "Zipcode" -msgstr "Postcode" - -#: classes/Gems/Model.php:229 -msgid "City" -msgstr "Woonplaats" - -#: classes/Gems/Model.php:231 -msgid "Phone" -msgstr "Telefoon" - -#: classes/Gems/Model.php:233 -msgid "Birthday" -msgstr "Geboren op" - -#: classes/Gems/Pdf.php:198 -#, php-format -msgid "PDF Source File '%s' not found!" -msgstr "PDF bron bestand %s niet gevonden!" - -#: classes/Gems/Pdf.php:240 -#, php-format -msgid "Could not create '%s' directory." -msgstr "Kon de directory '%s' niet aanmaken." - -#: classes/Gems/Pdf.php:283 -#, php-format -msgid " The error message is: %s" -msgstr "De foutmelding is: %s" - -#: classes/Gems/Upgrades.php:79 -msgid "Syncing surveys for all sources" -msgstr "Vragenlijsten synchroniseren voor alle bronnen." - -#: classes/Gems/UpgradesAbstract.php:154 -msgid "Already at max. level." -msgstr "Al op het hoogste niveau." - -#: classes/Gems/UpgradesAbstract.php:161 -#, php-format -msgid "Trying upgrade for %s from level %s to level %s" -msgstr "Probeert upgrade voor %s van niveau %s naar niveau %s uit te voeren" - -#: classes/Gems/UpgradesAbstract.php:169 -#, php-format -msgid "Trying upgrade for %s to level %s: %s" -msgstr "Probeert upgrade voor %s naar niveau %s: %s" - -#: classes/Gems/Controller/BrowseEditAction.php:356 -#, php-format -msgid "New %s..." -msgstr "Nieuwe %s..." - -#: classes/Gems/Controller/BrowseEditAction.php:389 -#, php-format -msgid "Delete %s" -msgstr "Verwijder %s" - -#: classes/Gems/Controller/BrowseEditAction.php:393 -#, php-format -msgid "%2$u %1$s deleted" -msgstr "%2$u %1$s verwijderd" - -#: classes/Gems/Controller/BrowseEditAction.php:410 -#, php-format -msgid "Edit %s %s" -msgstr "Bewerk %s %s" - -#: classes/Gems/Controller/BrowseEditAction.php:412 -#, php-format -msgid "Edit %s" -msgstr "Bewerk %s" - -#: classes/Gems/Controller/BrowseEditAction.php:513 -msgid "Free search text" -msgstr "Vrije zoek tekst" - -#: classes/Gems/Controller/BrowseEditAction.php:584 -msgid "Search" -msgstr "Zoeken" - -#: classes/Gems/Controller/BrowseEditAction.php:600 -#, php-format -msgid "No %s found" -msgstr "Geen %s gevonden" - -#: classes/Gems/Controller/BrowseEditAction.php:684 -#, php-format -msgid "No %s found." -msgstr "Geen %s gevonden." - -#: classes/Gems/Controller/BrowseEditAction.php:802 -msgid "Are you sure?" -msgstr "Weet u het zeker?" - -#: classes/Gems/Controller/BrowseEditAction.php:818 -msgid "Yes" -msgstr "Ja" - -#: classes/Gems/Controller/BrowseEditAction.php:819 -msgid "No" -msgstr "Nee" - -#: classes/Gems/Controller/BrowseEditAction.php:872 -#, php-format -msgid "Unknown %s requested" -msgstr "Onjuist %s verzoek" - -#: classes/Gems/Controller/BrowseEditAction.php:895 -#, php-format -msgid "New %1$s..." -msgstr "Nieuwe %1$s..." - -#: classes/Gems/Controller/BrowseEditAction.php:903 -msgid "Save" -msgstr "Opslaan" - -#: classes/Gems/Controller/BrowseEditAction.php:939 -#, php-format -msgid "%2$u %1$s saved" -msgstr "%2$u %1$s opgeslagen" - -#: classes/Gems/Controller/BrowseEditAction.php:942 -msgid "No changes to save." -msgstr "Geen verandering om op te slaan." - -#: classes/Gems/Controller/BrowseEditAction.php:951 -msgid "Input error! No changes saved!" -msgstr "Invoer fout! Veranderingen niet opgeslagen!" - -#: classes/Gems/Controller/BrowseEditAction.php:979 -#, php-format -msgid "Show %s" -msgstr "Toon %s" - -#: classes/Gems/Controller/BrowseEditAction.php:986 -#, php-format -msgid "Unknown %s." -msgstr "%s is onbekend." - -#: classes/Gems/Controller/ModelActionAbstract.php:97 -#: classes/Gems/Default/DatabaseAction.php:503 -msgid "Cancel" -msgstr "Annuleren" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:249 -#, php-format -msgid "Do you want to delete this %s?" -msgstr "Weet u zeker dat deze %s verwijderd moet worden?" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:282 -msgid "No data found." -msgstr "Geen gegevens gevonden." - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:344 -#, php-format -msgid "No %s found..." -msgstr "Geen %s gevonden..." - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:354 -#, php-format -msgid "Showing %s" -msgstr "Toon %s" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 -msgid "item" -msgid_plural "items" -msgstr[0] "item" -msgstr[1] "items" - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:65 -msgid "Prepare recheck" -msgstr "Hercontrole voorbereiden" - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:68 -#, php-format -msgid "Start %s jobs" -msgstr "Start %s opdrachten" - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:71 -msgid "Nothing to do." -msgstr "Niets te doen." - -#: classes/Gems/Default/AskAction.php:88 -#, php-format -msgid "Enter your %s token" -msgstr "Voer uw %s kenmerk in" - -#: classes/Gems/Default/AskAction.php:91 -msgid "Tokens identify a survey that was assigned to you personally." -msgstr "Elk kenmerk verwijst naar een specifiek aan u toegekende vragenlijst." - -#: classes/Gems/Default/AskAction.php:91 -msgid "Entering the token and pressing OK will open that survey." -msgstr "Vul uw kenmerk in en druk op OK om die vragenlijst te openen." - -#: classes/Gems/Default/AskAction.php:95 -msgid "After answering the survey you will be logged off automatically." -msgstr "Na het invullen wordt u automatisch uitgelogd." - -#: classes/Gems/Default/AskAction.php:100 -msgid "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." -msgstr "Een kenmerk bestaat uit twee groepen van vier cijfers en letters met een (niet verplicht) streepje ertussen. Hoofdletters of gewone letters maakt niets uit." - -#: classes/Gems/Default/AskAction.php:101 -msgid "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." -msgstr "Er wordt geen verschil gemaakt tussen het getal nul en de letter O en ook niet tussen het getal één en de letter L." - -#: classes/Gems/Default/AskAction.php:136 -#, php-format -msgid "Thank you for answering. At the moment we have no further surveys for you to take." -msgstr "Dank u voor uw antwoorden. Op dit moment hebben we geen vragenlijsten meer voor u." - -#: classes/Gems/Default/AskAction.php:138 -#, php-format -msgid "The survey for token %s has been answered and no further surveys are open." -msgstr "De vragenlijst met het kenmerk %s is beantwoord en er staan verder geen vragenlijsten open." - -#: classes/Gems/Default/AskAction.php:145 -#, php-format -msgid "The token %s does not exist (any more)." -msgstr "Het kenmerk %s bestaat niet (meer)." - -#: classes/Gems/Default/AskAction.php:273 -#, php-format -msgid "The survey for token %s is no longer active." -msgstr "De vragenlijst voor kenmerk %s is niet meer in gebruik." - -#: classes/Gems/Default/ConsentAction.php:68 -#: classes/Gems/Default/GroupAction.php:88 -msgid "Description" -msgstr "Omschrijving" - -#: classes/Gems/Default/ConsentAction.php:70 -#: classes/Gems/Default/DatabaseAction.php:139 -msgid "Order" -msgstr "Volgorde" - -#: classes/Gems/Default/ConsentAction.php:71 -msgid "Determines order of presentation in interface." -msgstr "Bepaald de presentatie volgorde." - -#: classes/Gems/Default/ConsentAction.php:73 -msgid "Consent code" -msgstr "Consent code" - -#: classes/Gems/Default/ConsentAction.php:75 -msgid "Internal code, not visible to users, copied with the token information to the source." -msgstr "Interne code, niet zichtbaar voor gebruikers maar wordt met de token informatie aan de bron doorgegeven." - -#: classes/Gems/Default/ConsentAction.php:92 -msgid "respondent consent" -msgid_plural "respondent consents" -msgstr[0] "patiënt toestemming" -msgstr[1] "patiënt toestemmingen" - -#: classes/Gems/Default/ConsentAction.php:97 -msgid "Respondent consents" -msgstr "Patiënt toestemming" - -#: classes/Gems/Default/ContactAction.php:71 -#, php-format -msgid "%s is a web application." -msgstr "%s is een web applicatie." - -#: classes/Gems/Default/ContactAction.php:76 -#, php-format -msgid "The %s project is run by: " -msgstr "%s is een project van: " - -#: classes/Gems/Default/ContactAction.php:82 -#, php-format -msgid "%s is a collaboration of these organizations:" -msgstr "Deze organisaties werken samen voor het %s project:" - -#: classes/Gems/Default/ContactAction.php:103 -#, php-format -msgid "The %s project" -msgstr "Het %s project" - -#: classes/Gems/Default/ContactAction.php:106 -msgid "Information on this application" -msgstr "Information over deze website" - -#: classes/Gems/Default/ContactAction.php:107 -msgid "Links concerning this web application:" -msgstr "Links met informatie over deze website:" - -#: classes/Gems/Default/CronAction.php:148 -msgid "Cron jobs turned off." -msgstr "Cron opdrachten uitgezet." - -#: classes/Gems/Default/CronAction.php:223 -msgid "No mails sent." -msgstr "Geen mail verzonden." - -#: classes/Gems/Default/CronAction.php:226 -msgid "On this test system all mail will be delivered to the from address." -msgstr "Op dit test systeem worden alle emails gestuurd naar het \"van\" adres." - -#: classes/Gems/Default/DatabaseAction.php:75 -msgid "Cache cleaned" -msgstr "Cache opgeschoond" - -#: classes/Gems/Default/DatabaseAction.php:105 -#, php-format -msgid "No rows in %s." -msgstr "Geen gegevens in %s." - -#: classes/Gems/Default/DatabaseAction.php:134 -msgid "Type" -msgstr "Type" - -#: classes/Gems/Default/DatabaseAction.php:138 -msgid "Group" -msgstr "Groep" - -#: classes/Gems/Default/DatabaseAction.php:140 -msgid "Location" -msgstr "Locatie" - -#: classes/Gems/Default/DatabaseAction.php:143 -msgid "Status" -msgstr "Status" - -#: classes/Gems/Default/DatabaseAction.php:146 -msgid "Script" -msgstr "Script" - -#: classes/Gems/Default/DatabaseAction.php:148 -#: classes/Gems/Default/DatabaseAction.php:293 -#: classes/Gems/Default/DatabaseAction.php:340 -msgid "Changed on" -msgstr "Veranderd op" - -#: classes/Gems/Default/DatabaseAction.php:167 -msgid "This database object does not exist. You cannot delete it." -msgstr "Dit database object bestaat. Het kan dus ook niet verwijderd worden." - -#: classes/Gems/Default/DatabaseAction.php:172 -#, php-format -msgid "Drop %s" -msgstr "Verwijder %s" - -#: classes/Gems/Default/DatabaseAction.php:180 -#, php-format -msgid "There are %d rows in the table." -msgstr "Er zijn %d rijen in deze tabel." - -#: classes/Gems/Default/DatabaseAction.php:182 -#, php-format -msgid "Drop table with %d rows" -msgstr "Tabel met %d rijen aan data verwijderen" - -#: classes/Gems/Default/DatabaseAction.php:183 -msgid "Are you really sure?" -msgstr "Weet u het heel erg zeker?" - -#: classes/Gems/Default/DatabaseAction.php:199 -#, php-format -msgid "%1$s %2$s dropped" -msgstr "%1$s %2$s verwijderd" - -#: classes/Gems/Default/DatabaseAction.php:205 -msgid " during statement " -msgstr " tijdens het commando " - -#: classes/Gems/Default/DatabaseAction.php:216 -#, php-format -msgid "%s no longer exists in the database." -msgstr "%s bestaat niet meer in de database." - -#: classes/Gems/Default/DatabaseAction.php:219 -#, php-format -msgid "%s does not yet exist in the database." -msgstr "%s bestaat nog niet in de database." - -#: classes/Gems/Default/DatabaseAction.php:222 -#, php-format -msgid "%s object does exist." -msgstr "%s object bestaat." - -#: classes/Gems/Default/DatabaseAction.php:240 -msgid "Object is not a table." -msgstr "Niet een tabel object." - -#: classes/Gems/Default/DatabaseAction.php:264 -msgid "Structure" -msgstr "Structuur" - -#: classes/Gems/Default/DatabaseAction.php:273 -msgid "database object" -msgid_plural "database objects" -msgstr[0] "database object" -msgstr[1] "database objects" - -#: classes/Gems/Default/DatabaseAction.php:278 -msgid "Database object overview" -msgstr "Database object overzicht" - -#: classes/Gems/Default/DatabaseAction.php:287 -#: classes/Gems/Default/DatabaseAction.php:333 -msgid "Level" -msgstr "Niveau" - -#: classes/Gems/Default/DatabaseAction.php:288 -#: classes/Gems/Default/DatabaseAction.php:334 -msgid "Subtype" -msgstr "Subtype" - -#: classes/Gems/Default/DatabaseAction.php:290 -msgid "To be executed" -msgstr "Uit te voeren" - -#: classes/Gems/Default/DatabaseAction.php:291 -#: classes/Gems/Default/DatabaseAction.php:337 -msgid "Executed" -msgstr "Uitgevoerd" - -#: classes/Gems/Default/DatabaseAction.php:292 -#: classes/Gems/Default/DatabaseAction.php:338 -msgid "Finished" -msgstr "Afgerond" - -#: classes/Gems/Default/DatabaseAction.php:296 -msgid "Create the patch table!" -msgstr "De patch tabel bestaat nog niet!" - -#: classes/Gems/Default/DatabaseAction.php:298 -#, php-format -msgid "%d new or changed patch(es)." -msgstr "%d nieuwe of veranderde patch(es)." - -#: classes/Gems/Default/DatabaseAction.php:303 -msgid "Gems build" -msgstr "Gems bouwnummer" - -#: classes/Gems/Default/DatabaseAction.php:304 -msgid "Database build" -msgstr "Database versie" - -#: classes/Gems/Default/DatabaseAction.php:306 -msgid "Execute level" -msgstr "Uit te voeren versie" - -#: classes/Gems/Default/DatabaseAction.php:310 -msgid "Ignore finished" -msgstr "Afgeronde patches overslaan" - -#: classes/Gems/Default/DatabaseAction.php:311 -msgid "Ignore executed" -msgstr "Uitgevoerde patches overslaan" - -#: classes/Gems/Default/DatabaseAction.php:312 -msgid "Show patches" -msgstr "Toon patches" - -#: classes/Gems/Default/DatabaseAction.php:326 -#, php-format -msgid "%d patch(es) executed." -msgstr "%d patch(es) uitgevoerd." - -#: classes/Gems/Default/DatabaseAction.php:332 -msgid "Patch" -msgstr "Patch" - -#: classes/Gems/Default/DatabaseAction.php:336 -msgid "Query" -msgstr "Query" - -#: classes/Gems/Default/DatabaseAction.php:339 -msgid "Result" -msgstr "Resultaat" - -#: classes/Gems/Default/DatabaseAction.php:364 -msgid "Patch maintenance" -msgstr "Patch onderhoud" - -#: classes/Gems/Default/DatabaseAction.php:368 -msgid "Patch overview" -msgstr "Patch overzicht" - -#: classes/Gems/Default/DatabaseAction.php:430 -msgid "This database object does not exist. You cannot create it." -msgstr "Dit database object bestaat niet en kan ook niet aangemaakt worden." - -#: classes/Gems/Default/DatabaseAction.php:436 -msgid "This database object has no script. You cannot execute it." -msgstr "Dit database object heeft geen script. Het kan dus ook niet uitgevoerd worden." - -#: classes/Gems/Default/DatabaseAction.php:447 -#, php-format -msgid "Run %s" -msgstr "Voer %s script uit" - -#: classes/Gems/Default/DatabaseAction.php:468 -#, php-format -msgid "Starting %d object creation scripts." -msgstr "Aanvang %d object aanmaak scripts." - -#: classes/Gems/Default/DatabaseAction.php:474 -#, php-format -msgid "Finished %s creation script for object %d of %d" -msgstr "Klaar met %s aanmaak script voor object %d van %d" - -#: classes/Gems/Default/DatabaseAction.php:479 -msgid "All objects exist. Nothing was executed." -msgstr "Alle objects bestaan. Niets was uitgevoerd." - -#: classes/Gems/Default/DatabaseAction.php:486 -msgid "Create not-existing database objects" -msgstr "Aanmaak van database objecten die nog niet bestaan" - -#: classes/Gems/Default/DatabaseAction.php:488 -#, php-format -msgid "One database object does not exist." -msgid_plural "These %d database objects do not exist." -msgstr[0] "Één object bestaat nog niet in de database." -msgstr[1] "%d objecten bestaan nog niet in de database." - -#: classes/Gems/Default/DatabaseAction.php:489 -msgid "Are you sure you want to create it?" -msgid_plural "Are you sure you want to create them all?" -msgstr[0] "Weet u zeker dat u dit wil aanmaken?" -msgstr[1] "Weet u zeker dat u deze allemaal wil aanmaken?" - -#: classes/Gems/Default/DatabaseAction.php:502 -msgid "All database objects exist. There is nothing to create." -msgstr "Alle database objecten bestaan. Er valt niets te maken." - -#: classes/Gems/Default/DatabaseAction.php:515 -msgid "Separate multiple commands with semicolons (;)." -msgstr "Scheidt meerdere commando's met punt-comma's (;)." - -#: classes/Gems/Default/DatabaseAction.php:522 -msgid "Run" -msgstr "Uitvoeren" - -#: classes/Gems/Default/DatabaseAction.php:531 -msgid "raw" -msgstr "rauw" - -#: classes/Gems/Default/DatabaseAction.php:541 -#, php-format -msgid "Result set %s." -msgstr "Resultaat %s." - -#: classes/Gems/Default/DatabaseAction.php:564 -msgid "Execute raw SQL" -msgstr "SQL direct uitvoeren" - -#: classes/Gems/Default/DatabaseAction.php:567 -msgid "Result sets" -msgstr "Resultaten" - -#: classes/Gems/Default/DatabaseAction.php:592 -msgid "This database object does not exist. You cannot view it." -msgstr "Dit database object bestaat. Het kan dus ook niet bekeken worden." - -#: classes/Gems/Default/DatabaseAction.php:597 -#, php-format -msgid "The data in table %s" -msgstr "De gegevens in tabel %s" - -#: classes/Gems/Default/DatabaseAction.php:598 -#, php-format -msgid "Contents of %s %s" -msgstr "De inhoud van %s %s" - -#: classes/Gems/Default/ExportAction.php:69 -msgid "Data" -msgstr "Data" - -#: classes/Gems/Default/ExportAction.php:74 -msgid "Export data" -msgstr "Exporteer gegevens" - -#: classes/Gems/Default/ExportAction.php:152 -msgid "Survey" -msgstr "Vragenlijst" - -#: classes/Gems/Default/ExportAction.php:167 -#, php-format -msgid "%s records found." -msgstr "%s records gevonden." - -#: classes/Gems/Default/ExportAction.php:180 -msgid "Export to" -msgstr "Exporteer naar" - -#: classes/Gems/Default/GroupAction.php:89 -#: classes/Gems/Default/LogAction.php:201 -msgid "Role" -msgstr "Rol" - -#: classes/Gems/Default/GroupAction.php:92 -msgid "Active" -msgstr "Actief" - -#: classes/Gems/Default/GroupAction.php:97 -msgid "Allowed IP Ranges" -msgstr "Toegestane IP adres reeksen" - -#: classes/Gems/Default/GroupAction.php:98 -msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" -msgstr "Scheiden met | voorbeeld: 10.0.0.0-10.0.0.255 (subnet masks worden niet ondersteund)" - -#: classes/Gems/Default/GroupAction.php:108 -msgid "group" -msgid_plural "groups" -msgstr[0] "groep" -msgstr[1] "groepen" - -#: classes/Gems/Default/GroupAction.php:113 -msgid "Administrative groups" -msgstr "Beheer groepen" - -#: classes/Gems/Default/IndexAction.php:174 -msgid "Request password reset" -msgstr "Wachtwoord vergeten?" - -#: classes/Gems/Default/IndexAction.php:178 -msgid "Please enter your organization and your username or e-mail address. " -msgstr "Geef uw organisatie en uw email adres of de gebruikersnaam op. " - -#: classes/Gems/Default/IndexAction.php:180 -msgid "Please enter your username or e-mail address. " -msgstr "Geef uw email adres of gebruikersnaam op. " - -#: classes/Gems/Default/IndexAction.php:182 -msgid "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." -msgstr "Vervolgens sturen wij u een email met een link. De link verwijst naar een pagina waar u een zelfgekozen wachtwoord in kan voeren." - -#: classes/Gems/Default/IndexAction.php:188 -msgid "Execute password reset" -msgstr "Vervang vergeten passwood" - -#: classes/Gems/Default/IndexAction.php:189 -msgid "We received your password reset request." -msgstr "We hebben uw verzoek voor een nieuw wachtwoord ontvangen." - -#: classes/Gems/Default/IndexAction.php:192 -#, php-format -msgid "Welcome to %s" -msgstr "Welkom bij %s" - -#: classes/Gems/Default/IndexAction.php:193 -msgid "Welcome to this website." -msgstr "Welkom op deze website." - -#: classes/Gems/Default/IndexAction.php:196 -msgid "Please enter your password of choice twice." -msgstr "Geef twee keer een zelfgekozen wachtwoord op." - -#: classes/Gems/Default/IndexAction.php:218 -msgid "Department" -msgstr "Afdeling" - -#: classes/Gems/Default/IndexAction.php:257 -msgid "Your password must be changed." -msgstr "Uw wachtwoord moet veranderd worden." - -#: classes/Gems/Default/IndexAction.php:272 -#, php-format -msgid "Login successful, welcome %s." -msgstr "Login in orde, welkom %s." - -#: classes/Gems/Default/IndexAction.php:316 -#, php-format -msgid "Good bye: %s." -msgstr "Tot ziens: %s." - -#: classes/Gems/Default/IndexAction.php:339 -msgid "Your password reset request is no longer valid, please request a new link." -msgstr "Uw verzoek om een nieuw wachtwoord is niet meer geldig, maar u kan hieronder een nieuwe link aanvragen." - -#: classes/Gems/Default/IndexAction.php:341 -msgid "Your password input request is no longer valid, please request a new link." -msgstr "Uw link om een wachtwoord in te voeren is niet meer geldig, maar u kan hieronder een nieuwe link aanvragen." - -#: classes/Gems/Default/IndexAction.php:360 -msgid "We sent you an e-mail with a reset link. Click on the link in the e-mail." -msgstr "We hebben u een email met reset link gestuurd. Klik op de link in de email." - -#: classes/Gems/Default/IndexAction.php:369 -msgid "New password is active." -msgstr "Nieuwe wachtwoord geactiveerd." - -#: classes/Gems/Default/IndexAction.php:390 -msgid "Password reset requested" -msgstr "Wachtwoord reset aangevraagd" - -#: classes/Gems/Default/IndexAction.php:393 -msgid "" -"Dear {greeting},\n" -"\n" -"\n" -"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" -"\n" -"\n" -"{organization_signature}\n" -"\n" -"[url={reset_url}]{reset_url}[/url]\n" -msgstr "" -"Geachte {greeting},\n" -"\n" -"\n" -"Voor uw [b]{organization}[/b] account op de [b]{project}[/b] site is een nieuw wachtwoord aangevraagd. Klik a.u.b. binnen {reset_in_hours} uur op [url={reset_url}]deze link[/url] om een zelfgekozen wachtwoord op te geven.\n" -"\n" -"\n" -"{organization_signature}\n" -"\n" -"[url={reset_url}]{reset_url}[/url]\n" - -#: classes/Gems/Default/InvitationAction.php:52 -msgid "Invite" -msgstr "Uitnodigen" - -#: classes/Gems/Default/LanguageAction.php:63 -msgid "Cookies must be enabled for setting the language." -msgstr "Zonder cookies kan de taal niet ingesteld worden." - -#: classes/Gems/Default/LanguageAction.php:66 -msgid "Invalid language setting." -msgstr "Ongeldige taal instelling." - -#: classes/Gems/Default/LogAction.php:78 -msgid "from" -msgstr "vanaf" - -#: classes/Gems/Default/LogAction.php:83 -msgid "until" -msgstr "tot" - -#: classes/Gems/Default/LogAction.php:89 -msgid "days" -msgstr "dagen" - -#: classes/Gems/Default/LogAction.php:90 -msgid "weeks" -msgstr "weken" - -#: classes/Gems/Default/LogAction.php:91 -msgid "months" -msgstr "maanden" - -#: classes/Gems/Default/LogAction.php:92 -msgid "years" -msgstr "jaren" - -#: classes/Gems/Default/LogAction.php:113 -msgid "Organization:" -msgstr "Organisatie:" - -#: classes/Gems/Default/LogAction.php:115 -msgid "All organizations" -msgstr "Alle organisaties" - -#: classes/Gems/Default/LogAction.php:117 -msgid "Staff:" -msgstr "Medewerkers:" - -#: classes/Gems/Default/LogAction.php:124 -msgid "All staff" -msgstr "Alle medewerkers" - -#: classes/Gems/Default/LogAction.php:127 -msgid "Patient:" -msgstr "Patiënt:" - -#: classes/Gems/Default/LogAction.php:134 -msgid "All patients" -msgstr "Alle patiënten" - -#: classes/Gems/Default/LogAction.php:136 -msgid "Action:" -msgstr "Actie:" - -#: classes/Gems/Default/LogAction.php:139 -msgid "All actions" -msgstr "Alle acties" - -#: classes/Gems/Default/LogAction.php:190 -msgid "Date" -msgstr "Datum" - -#: classes/Gems/Default/LogAction.php:191 -#: classes/Gems/Default/LogMaintenanceAction.php:52 -msgid "Action" -msgstr "Actie" - -#: classes/Gems/Default/LogAction.php:192 -msgid "Message" -msgstr "Bericht" - -#: classes/Gems/Default/LogAction.php:198 -msgid "Respondent" -msgstr "Patiënt" - -#: classes/Gems/Default/LogAction.php:202 -msgid "IP address" -msgstr "IP adres" - -#: classes/Gems/Default/LogAction.php:209 -#: classes/Gems/Default/LogMaintenanceAction.php:53 -msgid "Log" -msgstr "Logboek" - -#: classes/Gems/Default/LogMaintenanceAction.php:71 -msgid "Log:" -msgstr "Logboek:" - -#: classes/Gems/Default/LogMaintenanceAction.php:72 -msgid "All" -msgstr "Alles" - -#: classes/Gems/Default/LogMaintenanceAction.php:78 -msgid "Log action" -msgstr "Logboek actie" - -#: classes/Gems/Default/LogMaintenanceAction.php:82 -msgid "Log maintenance" -msgstr "Logboek onderhoud" - -#: classes/Gems/Default/MailJobAction.php:78 -#: classes/Gems/Default/MailLogAction.php:118 -msgid "Template" -msgstr "Sjabloon" - -#: classes/Gems/Default/MailJobAction.php:79 -msgid "By staff member" -msgstr "Door medewerke" - -#: classes/Gems/Default/MailJobAction.php:81 -msgid "Used for logging and possibly from address." -msgstr "Gebruikt voor activiteiten log en eventueel voor vanaf adres." - -#: classes/Gems/Default/MailJobAction.php:84 -msgid "Job is only run when active." -msgstr "Een opdracht wordt alleen uitgevoerd als deze actief is." - -#: classes/Gems/Default/MailJobAction.php:87 -msgid "From address used" -msgstr "Gebruikte vanaf adres" - -#: classes/Gems/Default/MailJobAction.php:89 -msgid "From other" -msgstr "Vanaf overig" - -#: classes/Gems/Default/MailJobAction.php:90 -#, php-format -msgid "Only when '%s' is '%s'." -msgstr "Aleen als '%s' is '%s'." - -#: classes/Gems/Default/MailJobAction.php:92 -msgid "Processing Method" -msgstr "Verwerkings methode" - -#: classes/Gems/Default/MailJobAction.php:93 -msgid "Filter for" -msgstr "Selecteer op" - -#: classes/Gems/Default/MailJobAction.php:94 -msgid "Days between reminders" -msgstr "Aantal dagen tussen herinneringen" - -#: classes/Gems/Default/MailJobAction.php:95 -msgid "Maximum number of reminders" -msgstr "Maximum aantal herinneringen" - -#: classes/Gems/Default/MailJobAction.php:114 -msgid "First mail" -msgstr "Eerste mail" - -#: classes/Gems/Default/MailJobAction.php:115 -msgid "Reminder" -msgstr "Herinnering" - -#: classes/Gems/Default/MailJobAction.php:126 -msgid "Use organizational from address" -msgstr "Gebruik vanaf adres van organisatie" - -#: classes/Gems/Default/MailJobAction.php:129 -#, php-format -msgid "Use site %s address" -msgstr "Gebruik %s adres van de site" - -#: classes/Gems/Default/MailJobAction.php:132 -msgid "Use the 'By staff member' address" -msgstr "Gebruik 'Door medewerker' adres" - -#: classes/Gems/Default/MailJobAction.php:133 -msgid "Other" -msgstr "Overige" - -#: classes/Gems/Default/MailJobAction.php:145 -msgid "Automatic mail jobs" -msgstr "Automatische mail opdrachten " - -#: classes/Gems/Default/MailJobAction.php:156 -msgid "automatic mail job" -msgid_plural "automatic mail jobs" -msgstr[0] "automatische mail opdracht" -msgstr[1] "automatische mail opdrachten" - -#: classes/Gems/Default/MailJobAction.php:166 -#, php-format -msgid "Automatic mails have been turned off since %s." -msgstr "Automatische mail opdrachten staan sinds %s uit." - -#: classes/Gems/Default/MailJobAction.php:170 -msgid "Turn Automatic Mail Jobs ON" -msgstr "Automatische mail opdrachten AANzetten" - -#: classes/Gems/Default/MailJobAction.php:176 -msgid "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." -msgstr "Met automatische mail opdrachten en een cron opdracht op de server, kunnen mails verstuurd worden zonder dat een gebruiker actie hoeft te ondernemen." - -#: classes/Gems/Default/MailLogAction.php:109 -msgid "Date sent" -msgstr "Verzend datum" - -#: classes/Gems/Default/MailLogAction.php:110 -msgid "Receiver" -msgstr "Ontvanger" - -#: classes/Gems/Default/MailLogAction.php:111 -msgid "To address" -msgstr "Adres aan" - -#: classes/Gems/Default/MailLogAction.php:112 -msgid "Sender" -msgstr "Verzender" - -#: classes/Gems/Default/MailLogAction.php:113 -msgid "From address" -msgstr "Adres van" - -#: classes/Gems/Default/MailLogAction.php:115 -#: classes/Gems/Default/MailTemplateAction.php:62 -msgid "Subject" -msgstr "Onderwerp" - -#: classes/Gems/Default/MailLogAction.php:143 -msgid "Mail Activity Log" -msgstr "Logboek Mail Activiteit" - -#: classes/Gems/Default/MailLogAction.php:154 -msgid "mail activity" -msgid_plural "mail activities" -msgstr[0] "mail activiteit" -msgstr[1] "mail activiteiten" - -#: classes/Gems/Default/MailServerAction.php:68 -msgid "From address [part]" -msgstr "Vanaf adres [gedeelte]" - -#: classes/Gems/Default/MailServerAction.php:70 -msgid "E.g.: '%', '%.org' or '%@gemstracker.org' or 'ro...@ge...'." -msgstr "Bijvoorbeeld: '%', '%.nl' of '%@gemstracker.nl' of 'ro...@ge...'." - -#: classes/Gems/Default/MailServerAction.php:71 -msgid "Server" -msgstr "Server" - -#: classes/Gems/Default/MailServerAction.php:73 -msgid "Encryption" -msgstr "Encryptie" - -#: classes/Gems/Default/MailServerAction.php:76 -msgid "None" -msgstr "Geen" - -#: classes/Gems/Default/MailServerAction.php:77 -msgid "SSL" -msgstr "SSL" - -#: classes/Gems/Default/MailServerAction.php:78 -msgid "TLS" -msgstr "TLS" - -#: classes/Gems/Default/MailServerAction.php:80 -msgid "Port" -msgstr "Poort" - -#: classes/Gems/Default/MailServerAction.php:82 -msgid "Normal values: 25 for TLS and no encryption, 465 for SSL" -msgstr "Standaard waardes: 25 voor TLS en voor geen encryptie, 465 voor SSL" - -#: classes/Gems/Default/MailServerAction.php:84 -msgid "User ID" -msgstr "Gebruikers ID" - -#: classes/Gems/Default/MailServerAction.php:88 -msgid "Password" -msgstr "Wachtwoord" - -#: classes/Gems/Default/MailServerAction.php:90 -#: classes/Gems/Default/SourceAction.php:95 -msgid "Repeat password" -msgstr "Herhaal wachtwoord" - -#: classes/Gems/Default/MailServerAction.php:91 -#: classes/Gems/Default/SourceAction.php:74 -msgid "Enter only when changing" -msgstr "Alleen invoeren om het wachtwoord te wijzigen" - -#: classes/Gems/Default/MailServerAction.php:100 -msgid "email server" -msgid_plural "email servers" -msgstr[0] "email server" -msgstr[1] "email servers" - -#: classes/Gems/Default/MailServerAction.php:105 -msgid "Email servers" -msgstr "Email servers" - -#: classes/Gems/Default/MailTemplateAction.php:76 -#: classes/Gems/Default/RespondentAction.php:338 -msgid "(all organizations)" -msgstr "(alle organisaties)" - -#: classes/Gems/Default/MailTemplateAction.php:95 -msgid "email template" -msgid_plural "email templates" -msgstr[0] "email sjabloon" -msgstr[1] "email sjablonen" - -#: classes/Gems/Default/MailTemplateAction.php:100 -msgid "Email templates" -msgstr "Email sjabloon" - -#: classes/Gems/Default/OptionAction.php:81 -msgid "You are not allowed to change your password." -msgstr "U mag uw wachtwoord niet wijzigen." - -#: classes/Gems/Default/OptionAction.php:129 -msgid "Login Name" -msgstr "Login Naam" - -#: classes/Gems/Default/OptionAction.php:136 -#: classes/Gems/Default/OrganizationAction.php:135 -#: classes/Gems/Default/RespondentAction.php:186 -msgid "Language" -msgstr "Taal" - -#: classes/Gems/Default/OptionAction.php:146 -#, php-format -msgid "Options" -msgstr "Instellingen" - -#: classes/Gems/Default/OptionAction.php:155 -msgid "This overview provides information about the last login activity on your account." -msgstr "Dit overzicht geeft informatie over de recente inlog activiteit op uw account." - -#: classes/Gems/Default/OptionAction.php:175 -msgid "Date / time" -msgstr "Datum / tijd" - -#: classes/Gems/Default/OptionAction.php:186 -msgid "Item" -msgstr "Item" - -#: classes/Gems/Default/OrganizationAction.php:92 -msgid "Inaccessible or unknown organization" -msgstr "Ontoegankelijke of onbekende organisatie." - -#: classes/Gems/Default/OrganizationAction.php:116 -msgid "Url" -msgstr "Url" - -#: classes/Gems/Default/OrganizationAction.php:117 -msgid "Task" -msgstr "Taak" - -#: classes/Gems/Default/OrganizationAction.php:118 -msgid "Contact name" -msgstr "Contact naam" - -#: classes/Gems/Default/OrganizationAction.php:119 -msgid "Contact email" -msgstr "Contact email" - -#: classes/Gems/Default/OrganizationAction.php:122 -msgid "Style" -msgstr "Stijl" - -#: classes/Gems/Default/OrganizationAction.php:127 -msgid "Default url's" -msgstr "Standaard url's" - -#: classes/Gems/Default/OrganizationAction.php:129 -#, php-format -msgid "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." -msgstr "Altijd naar deze organisatie overschakelen als %s vanaf één van deze door spatie gescheiden url's wordt aangeroepen. De eerste url wordt gebruikt voor emails." - -#: classes/Gems/Default/OrganizationAction.php:139 -msgid "Can the organization be used?" -msgstr "Is de organisatie in gebruik?" - -#: classes/Gems/Default/OrganizationAction.php:140 -msgid "Login" -msgstr "Inloggen" - -#: classes/Gems/Default/OrganizationAction.php:140 -msgid "Can people login for this organization?" -msgstr "Kunnen personen inloggen voor deze organisatie?" - -#: classes/Gems/Default/OrganizationAction.php:141 -msgid "Accepting" -msgstr "Accepteert" - -#: classes/Gems/Default/OrganizationAction.php:141 -msgid "Can new respondents be added to the organization?" -msgstr "Accepteert de organisatie nieuwe patiënten?" - -#: classes/Gems/Default/OrganizationAction.php:142 -msgid "Does the organization have respondents?" -msgstr "Heeft de organisatie patiënten?" - -#: classes/Gems/Default/OrganizationAction.php:143 -msgid "Respondent group" -msgstr "Patiënt groep" - -#: classes/Gems/Default/OrganizationAction.php:143 -msgid "Allows respondents to login." -msgstr "Patiënten toestaan in te loggen." - -#: classes/Gems/Default/OrganizationAction.php:147 -msgid "Greeting" -msgstr "Begroeting" - -#: classes/Gems/Default/OrganizationAction.php:147 -#: classes/Gems/Default/OrganizationAction.php:148 -msgid "For emails and token forward screen." -msgstr "Voor emails en kenmerk scherm." - -#: classes/Gems/Default/OrganizationAction.php:148 -msgid "Signature" -msgstr "Handtekening" - -#: classes/Gems/Default/OrganizationAction.php:150 -msgid "Accessible by" -msgstr "Toegankelijk voor" - -#: classes/Gems/Default/OrganizationAction.php:150 -msgid "Checked organizations see this organizations respondents." -msgstr "Geselecteerde organizaties kunnen de patiënten van deze organisatie bekijken." - -#: classes/Gems/Default/OrganizationAction.php:160 -msgid "Code name" -msgstr "Code naam" - -#: classes/Gems/Default/OrganizationAction.php:160 -msgid "Only for programmers." -msgstr "Uitsluitend voor programmeurs." - -#: classes/Gems/Default/OrganizationAction.php:178 -msgid "This can not be changed yet" -msgstr "Dit kan nog niet gewijzigd worden" - -#: classes/Gems/Default/OrganizationAction.php:180 -msgid "User Definition" -msgstr "User Definition" - -#: classes/Gems/Default/OrganizationAction.php:210 -msgid "Participating organizations" -msgstr "Deelnemende organisaties" - -#: classes/Gems/Default/OrganizationAction.php:221 -msgid "organization" -msgid_plural "organizations" -msgstr[0] "organisatie" -msgstr[1] "organisaties" - -#: classes/Gems/Default/OverviewPlanAction.php:115 -#: classes/Gems/Default/ProjectSurveysAction.php:88 -msgid "survey" -msgid_plural "surveys" -msgstr[0] "vragenlijst" -msgstr[1] "vragenlijsten" - -#: classes/Gems/Default/OverviewPlanAction.php:120 -msgid "Planning overview" -msgstr "Planning overzicht" - -#: classes/Gems/Default/ProjectInformationAction.php:83 -msgid "empty file" -msgstr "leeg bestand" - -#: classes/Gems/Default/ProjectInformationAction.php:87 -msgid "file not found" -msgstr "bestand niet gevonden" - -#: classes/Gems/Default/ProjectInformationAction.php:120 -msgid "Logged errors" -msgstr "Opgeslagen foutmeldingen" - -#: classes/Gems/Default/ProjectInformationAction.php:120 -msgid "Empty logfile" -msgstr "Verwijder alle foutmeldingen" - -#: classes/Gems/Default/ProjectInformationAction.php:125 -msgid "Project information" -msgstr "Project informatie" - -#: classes/Gems/Default/ProjectInformationAction.php:129 -msgid "Project name" -msgstr "Project naam" - -#: classes/Gems/Default/ProjectInformationAction.php:130 -msgid "Project version" -msgstr "Project versie" - -#: classes/Gems/Default/ProjectInformationAction.php:131 -msgid "Gems version" -msgstr "Gems versie" - -#: classes/Gems/Default/ProjectInformationAction.php:133 -msgid "Gems project" -msgstr "Gems project" - -#: classes/Gems/Default/ProjectInformationAction.php:134 -msgid "Gems web directory" -msgstr "Gems web folder" - -#: classes/Gems/Default/ProjectInformationAction.php:135 -msgid "Gems code directory" -msgstr "Gems code folder" - -#: classes/Gems/Default/ProjectInformationAction.php:136 -msgid "Gems project path" -msgstr "Gems project folder" - -#: classes/Gems/Default/ProjectInformationAction.php:137 -msgid "MUtil version" -msgstr "MUtil versie" - -#: classes/Gems/Default/ProjectInformationAction.php:138 -msgid "Zend version" -msgstr "Zend versie" - -#: classes/Gems/Default/ProjectInformationAction.php:139 -msgid "Application environment" -msgstr "Applicatie omgeving" - -#: classes/Gems/Default/ProjectInformationAction.php:140 -msgid "Application baseuri" -msgstr "Applicatie baseuri" - -#: classes/Gems/Default/ProjectInformationAction.php:141 -msgid "Application directory" -msgstr "Applicatie folder" - -#: classes/Gems/Default/ProjectInformationAction.php:142 -msgid "PHP version" -msgstr "PHP versie" - -#: classes/Gems/Default/ProjectInformationAction.php:143 -msgid "Server Hostname" -msgstr "Webserver naam" - -#: classes/Gems/Default/ProjectInformationAction.php:144 -msgid "Server OS" -msgstr "Server besturingssysteem" - -#: classes/Gems/Default/ProjectInformationAction.php:145 -msgid "Time on server" -msgstr "De tijd op de server" - -#: classes/Gems/Default/ProjectInformationAction.php:149 -msgid "Turn Maintenance Mode OFF" -msgstr "Onderhoudsmodus UITzetten" - -#: classes/Gems/Default/ProjectInformationAction.php:151 -msgid "Turn Maintenance Mode ON" -msgstr "Onderhoudsmodus AANzetten" - -#: classes/Gems/Default/ProjectInformationAction.php:161 -msgid "Version information" -msgstr "Versie informatie" - -#: classes/Gems/Default/ProjectInformationAction.php:195 -msgid "Server PHP Info" -msgstr "Server PHP Info" - -#: classes/Gems/Default/ProjectInformationAction.php:212 -msgid "Project settings" -msgstr "Project instellingen" - -#: classes/Gems/Default/ProjectInformationAction.php:219 -msgid "Session content" -msgstr "Sessie inhoud" - -#: classes/Gems/Default/ProjectInformationAction.php:220 -msgid "Session" -msgstr "Sessie" - -#: classes/Gems/Default/ProjectSurveysAction.php:68 -msgid "By" -msgstr "Door" - -#: classes/Gems/Default/ProjectSurveysAction.php:69 -#: classes/Gems/Default/ProjectTracksAction.php:67 -msgid "From" -msgstr "Van" - -#: classes/Gems/Default/ProjectSurveysAction.php:70 -#: classes/Gems/Default/ProjectTracksAction.php:68 -msgid "Until" -msgstr "Tot" - -#: classes/Gems/Default/ProjectSurveysAction.php:93 -msgid "Active surveys" -msgstr "Beschikbare vragenlijsten" - -#: classes/Gems/Default/ProjectTracksAction.php:65 -msgid "Survey #" -msgstr "Vragenlijsten" - -#: classes/Gems/Default/ProjectTracksAction.php:85 -msgid "track" -msgid_plural "tracks" -msgstr[0] "traject" -msgstr[1] "trajecten" - -#: classes/Gems/Default/ProjectTracksAction.php:90 -msgid "Active tracks" -msgstr "Beschikbare trajecten" - -#: classes/Gems/Default/ProjectTracksAction.php:110 -#, php-format -msgid "Questions in survey %s" -msgstr "Vragen in vragenlijsten %s" - -#: classes/Gems/Default/ProjectTracksAction.php:118 -#, php-format -msgid "Survey %s does not exist." -msgstr "Vragenlijst %s bestaat niet." - -#: classes/Gems/Default/ProjectTracksAction.php:121 -msgid "Survey not specified." -msgstr "Vragenlijst niet opgegeven." - -#: classes/Gems/Default/ProjectTracksAction.php:132 -#, php-format -msgid "Track %s does not exist." -msgstr "Trajectnummer %s bestaat niet." - -#: classes/Gems/Default/ReceptionAction.php:55 -msgid "Can be assigned to" -msgstr "Kan toegewezen worden aan" - -#: classes/Gems/Default/ReceptionAction.php:56 -msgid "Additional action" -msgstr "Aanvullende actie" - -#: classes/Gems/Default/ReceptionAction.php:80 -msgid "Code" -msgstr "Code" - -#: classes/Gems/Default/ReceptionAction.php:83 -msgid "Is success code" -msgstr "Is succes code" - -#: classes/Gems/Default/ReceptionAction.php:87 -msgid "This reception code is a success code." -msgstr "Aanzetten als deze ontvangst code positief is." - -#: classes/Gems/Default/ReceptionAction.php:91 -msgid "Only active codes can be selected." -msgstr "Alleen actieve codes kunnen geselecteerd worden." - -#: classes/Gems/Default/ReceptionAction.php:92 -msgid "For respondents" -msgstr "Voor patiënten" - -#: classes/Gems/Default/ReceptionAction.php:95 -msgid "This reception code can be assigned to a respondent." -msgstr "Deze ontvangstcode kan aan een patiënt toegewezen worden." - -#: classes/Gems/Default/ReceptionAction.php:96 -msgid "For tracks" -msgstr "Voor trajecten" - -#: classes/Gems/Default/ReceptionAction.php:99 -msgid "This reception code can be assigned to a track." -msgstr "Deze ontvangstcode kan aan een traject toegewezen worden." - -#: classes/Gems/Default/ReceptionAction.php:100 -msgid "For surveys" -msgstr "Voor vragenlijsten" - -#: classes/Gems/Default/ReceptionAction.php:102 -msgid "This reception code can be assigned to a survey." -msgstr "Deze ontvangstcode kan aan een vragenlijst toegewezen worden." - -#: classes/Gems/Default/ReceptionAction.php:103 -msgid "Redo survey" -msgstr "Vragenlijsten herhalen" - -#: classes/Gems/Default/ReceptionAction.php:105 -msgid "Redo a survey on this reception code." -msgstr "Herhaal vragenlijst bij deze ontvangstcode." - -#: classes/Gems/Default/ReceptionAction.php:106 -msgid "Overwrite ansers" -msgstr "Overschrijf bestaande antwoorden" - -#: classes/Gems/Default/ReceptionAction.php:109 -msgid "Remove the consent from already answered surveys." -msgstr "Verwijder \"informed consent\" van beantwoorde vragenlijsten" - -#: classes/Gems/Default/ReceptionAction.php:127 -msgid "reception code" -msgid_plural "reception codes" -msgstr[0] "Ontvangst code" -msgstr[1] "Ontvangst code" - -#: classes/Gems/Default/RespondentAction.php:125 -#, php-format -msgid "Random Example BSN: %s" -msgstr "Willekeurig voorbeeld BSN: %s" - -#: classes/Gems/Default/RespondentAction.php:127 -msgid "Enter a 9-digit SSN number." -msgstr "Voer een BSN nummer van 9 cijfers in." - -#: classes/Gems/Default/RespondentAction.php:134 -msgid "Identification" -msgstr "Identificatie" - -#: classes/Gems/Default/RespondentAction.php:145 -msgid "SSN" -msgstr "SSN" - -#: classes/Gems/Default/RespondentAction.php:149 -msgid "Patient number" -msgstr "Patiënt nummer" - -#: classes/Gems/Default/RespondentAction.php:158 -msgid "Medical data" -msgstr "Medische gegevens" - -#: classes/Gems/Default/RespondentAction.php:165 -msgid "DBC's, etc..." -msgstr "DBC's, etc..." - -#: classes/Gems/Default/RespondentAction.php:168 -msgid "Contact information" -msgstr "Contact informatie" - -#: classes/Gems/Default/RespondentAction.php:173 -msgid "Respondent has no e-mail" -msgstr "Patiënt zonder email" - -#: classes/Gems/Default/RespondentAction.php:174 -msgid "With housenumber" -msgstr "Met huisnummer" - -#: classes/Gems/Default/RespondentAction.php:181 -msgid "Country" -msgstr "Land" - -#: classes/Gems/Default/RespondentAction.php:185 -msgid "Settings" -msgstr "Instellingen" - -#: classes/Gems/Default/RespondentAction.php:187 -msgid "Has the respondent signed the informed consent letter?" -msgstr "Heeft de patiënt het \"informed consent\" formulier ondertekend?" - -#: classes/Gems/Default/RespondentAction.php:217 -msgid "Comments" -msgstr "Opmerkingen" - -#: classes/Gems/Default/RespondentAction.php:218 -msgid "Treatment" -msgstr "Behandeling" - -#: classes/Gems/Default/RespondentAction.php:246 -msgid "Rejection code" -msgstr "Afkeuringscode" - -#: classes/Gems/Default/RespondentAction.php:253 -msgid "Delete respondent" -msgstr "Verwijder patiënt" - -#: classes/Gems/Default/RespondentAction.php:285 -msgid "Respondent deleted." -msgstr "Patiënt verwijderd" - -#: classes/Gems/Default/RespondentAction.php:289 -msgid "Respondent tracks stopped." -msgstr "Trajecten van patiënt zijn gestopt." - -#: classes/Gems/Default/RespondentAction.php:293 -msgid "Choose a reception code to delete." -msgstr "Kies een ontvangst code om te verwijderen." - -#: classes/Gems/Default/RespondentAction.php:387 -msgid "respondent" -msgid_plural "respondents" -msgstr[0] "patiënt" -msgstr[1] "patiënten" - -#: classes/Gems/Default/RespondentAction.php:462 -msgid "Please settle the informed consent form for this respondent." -msgstr "A.u.b. het informed consent formulier doornemen met deze patiënt" - -#: classes/Gems/Default/RespondentExportAction.php:54 -msgid "Respondent number" -msgstr "Patiënt nummer" - -#: classes/Gems/Default/RespondentExportAction.php:56 -msgid "Separate multiple respondents with a comma (,)" -msgstr "Scheid meerdere patienten met een comma (,)" - -#: classes/Gems/Default/RespondentPlanAction.php:67 -msgid "Show respondent" -msgstr "Toon patiënt" - -#: classes/Gems/Default/RespondentPlanAction.php:73 -msgid "Show track" -msgstr "Toon traject" - -#: classes/Gems/Default/RespondentPlanAction.php:136 -msgid " of " -msgstr " van " - -#: classes/Gems/Default/RespondentPlanAction.php:137 -msgid "Progress" -msgstr "Voortgang" - -#: classes/Gems/Default/RespondentPlanAction.php:144 -msgid "Respondent planning" -msgstr "Per patiënt plannen" - -#: classes/Gems/Default/RoleAction.php:97 -msgid "child of current role" -msgstr "afgeleid van huidige rol" - -#: classes/Gems/Default/RoleAction.php:105 -#, php-format -msgid "inherited from %s" -msgstr "overerfd van %s" - -#: classes/Gems/Default/RoleAction.php:113 -msgid "this role" -msgstr "deze rol" - -#: classes/Gems/Default/RoleAction.php:144 -#: classes/Gems/Default/RoleAction.php:302 -msgid "Inherited" -msgstr "Overerfd" - -#: classes/Gems/Default/RoleAction.php:209 -msgid "Illegal name" -msgstr "Naam niet toegestaan" - -#: classes/Gems/Default/RoleAction.php:233 -#: classes/Gems/Default/RoleAction.php:299 -msgid "Parents" -msgstr "Afgeleid van" - -#: classes/Gems/Default/RoleAction.php:255 -msgid "Editing `master` is not allowed" -msgstr "Het wijzigen van `master` is niet toegestaan" - -#: classes/Gems/Default/RoleAction.php:273 -msgid "role" -msgid_plural "roles" -msgstr[0] "Rol" -msgstr[1] "Rollen" - -#: classes/Gems/Default/RoleAction.php:278 -msgid "Administrative roles" -msgstr "Beheer rollen en rechten" - -#: classes/Gems/Default/RoleAction.php:300 -#: classes/Gems/Default/RoleAction.php:318 -msgid "Allowed" -msgstr "Toegestaan" - -#: classes/Gems/Default/RoleAction.php:307 -msgid "Project role overview" -msgstr "Project rollen" - -#: classes/Gems/Default/RoleAction.php:317 -msgid "Privilege" -msgstr "Privilége" - -#: classes/Gems/Default/RoleAction.php:319 -msgid "Denied" -msgstr "Geweigerd" - -#: classes/Gems/Default/RoleAction.php:323 -msgid "Project privileges" -msgstr "Project priviléges" - -#: classes/Gems/Default/SourceAction.php:69 -msgid "Leave empty for the Gems database." -msgstr "Leeglaten bij gebruik van de Gems database." - -#: classes/Gems/Default/SourceAction.php:79 -msgid "E.g. the name of the project - for single source projects." -msgstr "Bijvoorbeeld de project naam - bij projecten met maar één bron." - -#: classes/Gems/Default/SourceAction.php:81 -msgid "For creating token-survey url." -msgstr "Voor kenmerk-vragenlijst url." - -#: classes/Gems/Default/SourceAction.php:86 -msgid "The database server used by the source." -msgstr "Het merk database server gebruikt door deze bron." - -#: classes/Gems/Default/SourceAction.php:88 -msgid "Do not forget the underscores." -msgstr "Vergeet de underscores niet." - -#: classes/Gems/Default/SourceAction.php:91 -msgid "Database Username" -msgstr "Database gebruikersnaam" - -#: classes/Gems/Default/SourceAction.php:93 -msgid "Database Password" -msgstr "Database wachtwoord" - -#: classes/Gems/Default/SourceAction.php:116 -#, ph... [truncated message content] |
From: <gem...@li...> - 2012-07-20 12:07:39
|
Revision: 862 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=862&view=rev Author: matijsdejong Date: 2012-07-20 12:07:25 +0000 (Fri, 20 Jul 2012) Log Message: ----------- Fixed #548: patches run out of order Fixed #550: expand export selection Added information to tasks about to start concerning their effects and usage Modified Paths: -------------- trunk/library/changelog.txt trunk/library/classes/Gems/Default/ExportAction.php trunk/library/classes/Gems/Default/SourceAction.php trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Default/TrackMaintenanceAction.php trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php trunk/library/classes/Gems/Util/DatabasePatcher.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/changelog.txt =================================================================== --- trunk/library/changelog.txt 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/changelog.txt 2012-07-20 12:07:25 UTC (rev 862) @@ -8,6 +8,8 @@ New projects start with a basic css template In project.ini, export.wkhtmltopdf has been renamed to export.pdfExportCommand, and which now stores the entire command line to the pdf export binary (wkhtmltopdf, Phantom.js or similar). The normal time it takes to answer a survey can be added and surveys have a code field +Export of survey data can be selected by respondent id or by track +All maintenance task show some explanation on what they do Important changes from 1.5.3 => 1.5.4 ============================================================ Modified: trunk/library/classes/Gems/Default/ExportAction.php =================================================================== --- trunk/library/classes/Gems/Default/ExportAction.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Default/ExportAction.php 2012-07-20 12:07:25 UTC (rev 862) @@ -35,7 +35,7 @@ */ /** - * Standard controller for database creation and maintenance. + * Standard controller for export of survey data * * @package Gems * @subpackage Default @@ -97,6 +97,16 @@ } } + if (isset($data['tid'])) { + $select = $this->db->select(); + $select->from('gems__respondent2track', array('gr2t_id_respondent_track')) + ->where('gr2t_id_track = ?', $data['tid']); + + if ($trackArray = $this->db->fetchCol($select)) { + $filter['resptrackid'] = $trackArray; + } + } + if (isset($data['oid'])) { $filter['organizationid'] = $data['oid']; } else { @@ -131,7 +141,8 @@ $element = new Zend_Form_Element_Textarea('ids'); $element->setLabel($this->_('Respondent id\'s')) ->setAttrib('cols', 60) - ->setAttrib('rows', 4); + ->setAttrib('rows', 4) + ->setDescription($this->_('Not respondent nr, but respondent id as exported here.')); $elements[] = $element; $element = new Zend_Form_Element_Select('tid'); Modified: trunk/library/classes/Gems/Default/SourceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SourceAction.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Default/SourceAction.php 2012-07-20 12:07:25 UTC (rev 862) @@ -104,6 +104,30 @@ } /** + * Displays textual information what checking tokens does + * + * @param MUtil_Html_Sequence $html + * @param Zend_Translate $translate + * @param string $itemDescription Describe which tokens will be checked + */ + public static function addCheckInformation(MUtil_Html_Sequence $html, Zend_Translate $translate, $itemDescription) + { + $html->pInfo($translate->_('Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens.')); + $html->pInfo($translate->_('Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source.')); + $html->pInfo($itemDescription); + } + + + /** + * Displays a textual explanation what synchronization does on the page. + */ + protected function addSynchronizationInformation() + { + $this->html->pInfo($this->_('Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes.')); + $this->html->pInfo($this->_('Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted.')); + } + + /** * Check all token attributes for a single source */ public function attributesAction() @@ -117,6 +141,9 @@ $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); $this->_helper->BatchRunner($batch, $title); + + $this->html->pInfo($this->_('Refreshes the attributes for a token as stored in the source.')); + $this->html->pInfo($this->_('Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow.')); } /** @@ -132,6 +159,8 @@ $title = sprintf($this->_('Checking survey results for %s source.'), $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); $this->_helper->BatchRunner($batch, $title); + + self::addCheckInformation($this->html, $this->translate, $this->_('This task checks all tokens in this source.')); } /** @@ -143,6 +172,8 @@ $title = $this->_('Checking survey results for all sources.'); $this->_helper->BatchRunner($batch, $title); + + self::addCheckInformation($this->html, $this->translate, $this->_('This task checks all tokens in all sources.')); } /** @@ -243,6 +274,8 @@ $title = sprintf($this->_('Synchronize the %s source.'), $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId)); $this->_helper->BatchRunner($batch, $title); + + $this->addSynchronizationInformation(); } /** @@ -257,5 +290,7 @@ $this->_helper->BatchRunner($batch, $title); $this->html->actionLink(array('action' => 'index'), $this->_('Cancel')); + + $this->addSynchronizationInformation(); } } Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-20 12:07:25 UTC (rev 862) @@ -333,6 +333,8 @@ $title = sprintf($this->_('Checking survey results for the %s survey.'), $this->db->fetchOne("SELECT gsu_survey_name FROM gems__surveys WHERE gsu_id_survey = ?", $surveyId)); $this->_helper->BatchRunner($batch, $title); + + Gems_Default_SourceAction::addCheckInformation($this->html, $this->translate, $this->_('This task checks all tokens for this survey.')); } /** @@ -344,6 +346,8 @@ $title = $this->_('Checking survey results for all surveys.'); $this->_helper->BatchRunner($batch, $title); + + Gems_Default_SourceAction::addCheckInformation($this->html, $this->translate, $this->_('This task checks all tokens for all surveys.')); } /** Modified: trunk/library/classes/Gems/Default/TrackMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-07-20 12:07:25 UTC (rev 862) @@ -91,6 +91,23 @@ } /** + * Displays a textual explanation what check tracking does on the page. + */ + protected function addCheckInformation() + { + $this->html->h2($this->_('Checks')); + $ul = $this->html->ul(); + $ul->li($this->_('Updates existing token description and order to the current round description and order.')); + $ul->li($this->_('Updates the survey of unanswered tokens when the round survey was changed.')); + $ul->li($this->_('Removes unanswered tokens when the round is no longer active.')); + $ul->li($this->_('Creates new tokens for new rounds.')); + $ul->li($this->_('Checks the validity dates and times of unanswered tokens, using the current round settings.')); + + $this->html->pInfo($this->_('Run this code when a track has changed or when the code has changed and the track must be adjusted.')); + $this->html->pInfo($this->_('If you do not run this code after changing a track, then the old tracks remain as they were and only newly created tracks will reflect the changes.')); + } + + /** * Adds elements from the model to the bridge that creates the form. * * Overrule this function to add different elements to the browse table, without @@ -156,6 +173,8 @@ { $batch = $this->loader->getTracker()->checkTrackRounds('trackCheckRoundsAll', $this->loader->getCurrentUser()->getUserId()); $this->_helper->BatchRunner($batch, $this->_('Checking round assignments for all tracks.')); + + $this->addCheckInformation(); } /** @@ -170,6 +189,8 @@ $title = sprintf($this->_("Checking round assignments for track '%s'."), $track->getTrackName()); $this->_helper->BatchRunner($batch, $title); + + $this->addCheckInformation(); } public function createAction() Modified: trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2012-07-20 12:07:25 UTC (rev 862) @@ -412,11 +412,11 @@ if (null === $batch) { $batch = new Gems_Task_TaskRunnerBatch(); } - //Step one: update existing tokens + // Step one: update existing tokens $i = $batch->addToCounter('roundChangeUpdates', $this->checkExistingRoundsFor($respTrack, $userId)); $batch->setMessage('roundChangeUpdates', sprintf($this->_('Round changes propagated to %d tokens.'), $i)); - //Step two: deactivate inactive rounds + // Step two: deactivate inactive rounds $i = $batch->addToCounter('deletedTokens', $this->removeInactiveRounds($respTrack, $userId)); $batch->setMessage('deletedTokens', sprintf($this->_('%d tokens deleted by round changes.'), $i)); Modified: trunk/library/classes/Gems/Util/DatabasePatcher.php =================================================================== --- trunk/library/classes/Gems/Util/DatabasePatcher.php 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/classes/Gems/Util/DatabasePatcher.php 2012-07-20 12:07:25 UTC (rev 862) @@ -154,7 +154,7 @@ if ($ignoreExecuted) { $sql .= ' AND gpa_executed = 0'; } - $sql .= ' ORDER BY gpa_level, gpa_location, gpa_name, gpa_order'; + $sql .= ' ORDER BY gpa_level, gpa_location, gpa_id_patch'; // MUtil_Echo::rs($ignoreCompleted, $ignoreExecuted, $sql); $current = new Zend_Db_Expr('CURRENT_TIMESTAMP'); @@ -232,6 +232,7 @@ // MUtil_Echo::track($minimum); $this->_loadPatches($applicationLevel); + // MUtil_Echo::track($this->_loaded_patches); foreach ($this->_loaded_patches as $patch) { if ($minimum <= $patch['gpa_level']) { $level = $patch['gpa_level']; Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/languages/default-en.po 2012-07-20 12:07:25 UTC (rev 862) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-18 11:33+0100\n" +"POT-Creation-Date: 2012-07-20 13:42+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" +"Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -33,7 +33,7 @@ msgstr "You are logged in as %s" #: classes/GemsEscort.php:790 -#: classes/Gems/Menu.php:249 +#: classes/Gems/Menu.php:261 msgid "Logoff" msgstr "Logoff" @@ -189,7 +189,7 @@ msgstr "Roles" #: classes/Gems/Menu.php:197 -#: classes/Gems/Menu.php:377 +#: classes/Gems/Menu.php:389 msgid "Assigned" msgstr "Assigned" @@ -222,7 +222,7 @@ msgstr "Upgrade" #: classes/Gems/Menu.php:220 -#: classes/Gems/Menu.php:341 +#: classes/Gems/Menu.php:353 msgid "Show" msgstr "Show" @@ -242,125 +242,125 @@ msgid "Execute to here" msgstr "Execute to here" -#: classes/Gems/Menu.php:236 +#: classes/Gems/Menu.php:248 #, php-format -msgid "Stand-alone privilige: %s" -msgstr "Stand-alone privilige: %s" +msgid "Stand-alone privilege: %s" +msgstr "Stand-alone privilege: %s" -#: classes/Gems/Menu.php:243 +#: classes/Gems/Menu.php:255 msgid "Logon" msgstr "Logon" -#: classes/Gems/Menu.php:244 +#: classes/Gems/Menu.php:256 msgid "Lost password" msgstr "Lost password" -#: classes/Gems/Menu.php:245 +#: classes/Gems/Menu.php:257 msgid "Your account" msgstr "Your account" -#: classes/Gems/Menu.php:246 +#: classes/Gems/Menu.php:258 msgid "Activity overview" msgstr "Activity overview" -#: classes/Gems/Menu.php:247 +#: classes/Gems/Menu.php:259 msgid "Change password" msgstr "Change password" -#: classes/Gems/Menu.php:248 -#: classes/Gems/Menu.php:301 -#: classes/Gems/Menu.php:347 +#: classes/Gems/Menu.php:260 +#: classes/Gems/Menu.php:313 +#: classes/Gems/Menu.php:359 msgid "Token" msgstr "Token" -#: classes/Gems/Menu.php:289 +#: classes/Gems/Menu.php:301 msgid "Export" msgstr "Export" -#: classes/Gems/Menu.php:296 +#: classes/Gems/Menu.php:308 msgid "Track" msgstr "Track" -#: classes/Gems/Menu.php:304 -#: classes/Gems/Menu.php:329 -#: classes/Gems/Menu.php:371 +#: classes/Gems/Menu.php:316 +#: classes/Gems/Menu.php:341 +#: classes/Gems/Menu.php:383 msgid "Add" msgstr "Add" -#: classes/Gems/Menu.php:310 -#: classes/Gems/Menu.php:410 +#: classes/Gems/Menu.php:322 +#: classes/Gems/Menu.php:422 msgid "Preview" msgstr "Preview" -#: classes/Gems/Menu.php:319 +#: classes/Gems/Menu.php:331 msgid "Tracks" msgstr "Tracks" -#: classes/Gems/Menu.php:335 +#: classes/Gems/Menu.php:347 msgid "Assignments" msgstr "Assignments" -#: classes/Gems/Menu.php:351 +#: classes/Gems/Menu.php:363 msgid "Edit" msgstr "Edit" -#: classes/Gems/Menu.php:357 +#: classes/Gems/Menu.php:369 msgid "Delete" msgstr "Delete" -#: classes/Gems/Menu.php:364 +#: classes/Gems/Menu.php:376 msgid "Surveys" msgstr "Surveys" -#: classes/Gems/Menu.php:401 +#: classes/Gems/Menu.php:413 msgid "Fill in" msgstr "Fill in" -#: classes/Gems/Menu.php:404 +#: classes/Gems/Menu.php:416 msgid "Print PDF" msgstr "Print PDF" -#: classes/Gems/Menu.php:407 +#: classes/Gems/Menu.php:419 msgid "E-Mail now!" msgstr "E-Mail now!" -#: classes/Gems/Menu.php:413 +#: classes/Gems/Menu.php:425 msgid "Answers" msgstr "Answers" -#: classes/Gems/Menu.php:565 +#: classes/Gems/Menu.php:577 msgid "Respondents" msgstr "Patients" -#: classes/Gems/Menu.php:573 +#: classes/Gems/Menu.php:585 msgid "Overview" msgstr "Overview" -#: classes/Gems/Menu.php:580 +#: classes/Gems/Menu.php:592 msgid "Project" msgstr "Project" -#: classes/Gems/Menu.php:583 +#: classes/Gems/Menu.php:595 msgid "Setup" msgstr "Setup" -#: classes/Gems/Menu.php:586 +#: classes/Gems/Menu.php:598 msgid "Track Builder" msgstr "Track Builder" -#: classes/Gems/Menu.php:589 +#: classes/Gems/Menu.php:601 msgid "Mail" msgstr "Mail" -#: classes/Gems/Menu.php:595 +#: classes/Gems/Menu.php:607 msgid "Export respondent" msgstr "Export respondent" -#: classes/Gems/Menu.php:601 +#: classes/Gems/Menu.php:613 msgid "Contact" msgstr "Contact" -#: classes/Gems/Menu.php:615 +#: classes/Gems/Menu.php:627 msgid "Changelog" msgstr "Changelog" @@ -424,21 +424,26 @@ msgid "Birthday" msgstr "Birthday" -#: classes/Gems/Pdf.php:198 +#: classes/Gems/Pdf.php:219 #, php-format msgid "PDF Source File '%s' not found!" msgstr "PDF Source File '%s' not found!" -#: classes/Gems/Pdf.php:240 +#: classes/Gems/Pdf.php:261 #, php-format msgid "Could not create '%s' directory." msgstr "Could not create '%s' directory." -#: classes/Gems/Pdf.php:283 +#: classes/Gems/Pdf.php:304 #, php-format msgid " The error message is: %s" msgstr " The error message is: %s" +#: classes/Gems/Pdf.php:336 +#, php-format +msgid "Unable to run PDF conversion (%s): \"%s\"" +msgstr "Unable to run PDF conversion (%s): \"%s\"" + #: classes/Gems/Upgrades.php:79 msgid "Syncing surveys for all sources" msgstr "Syncing surveys for all sources" @@ -978,15 +983,15 @@ msgid "Contents of %s %s" msgstr "Contents of %s %s" -#: classes/Gems/Default/ExportAction.php:69 -msgid "Data" -msgstr "Data" +#: classes/Gems/Default/ExportAction.php:142 +msgid "Respondent id's" +msgstr "Respondent id's" -#: classes/Gems/Default/ExportAction.php:74 -msgid "Export data" -msgstr "Export data" +#: classes/Gems/Default/ExportAction.php:145 +msgid "Not respondent nr, but respondent id as exported here." +msgstr "Not patient nr, but respondent id as exported here." -#: classes/Gems/Default/ExportAction.php:152 +#: classes/Gems/Default/ExportAction.php:154 msgid "Survey" msgstr "Survey" @@ -995,10 +1000,18 @@ msgid "%s records found." msgstr "%s records found." -#: classes/Gems/Default/ExportAction.php:180 +#: classes/Gems/Default/ExportAction.php:181 msgid "Export to" msgstr "Export to" +#: classes/Gems/Default/ExportAction.php:219 +msgid "Data" +msgstr "Data" + +#: classes/Gems/Default/ExportAction.php:224 +msgid "Export data" +msgstr "Export data" + #: classes/Gems/Default/GroupAction.php:89 #: classes/Gems/Default/LogAction.php:201 msgid "Role" @@ -2037,72 +2050,104 @@ msgid "Database Password" msgstr "Database Password" +#: classes/Gems/Default/SourceAction.php:115 +msgid "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." +msgstr "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." + #: classes/Gems/Default/SourceAction.php:116 +msgid "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." +msgstr "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." + +#: classes/Gems/Default/SourceAction.php:126 +msgid "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." +msgstr "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." + +#: classes/Gems/Default/SourceAction.php:127 +msgid "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." +msgstr "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." + +#: classes/Gems/Default/SourceAction.php:140 #, php-format msgid "Refreshing token attributes for %s source." msgstr "Refreshing token attributes for %s source." -#: classes/Gems/Default/SourceAction.php:132 +#: classes/Gems/Default/SourceAction.php:145 +msgid "Refreshes the attributes for a token as stored in the source." +msgstr "Refreshes the attributes for a token as stored in the source." + +#: classes/Gems/Default/SourceAction.php:146 +msgid "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." +msgstr "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." + +#: classes/Gems/Default/SourceAction.php:159 #, php-format msgid "Checking survey results for %s source." msgstr "Checking survey results for %s source." -#: classes/Gems/Default/SourceAction.php:144 +#: classes/Gems/Default/SourceAction.php:163 +msgid "This task checks all tokens in this source." +msgstr "This task checks all tokens in this source." + +#: classes/Gems/Default/SourceAction.php:173 msgid "Checking survey results for all sources." msgstr "Checking survey results for all sources." -#: classes/Gems/Default/SourceAction.php:165 +#: classes/Gems/Default/SourceAction.php:176 +msgid "This task checks all tokens in all sources." +msgstr "This task checks all tokens in all sources." + +#: classes/Gems/Default/SourceAction.php:196 msgid "Source Url" msgstr "Source Url" -#: classes/Gems/Default/SourceAction.php:167 +#: classes/Gems/Default/SourceAction.php:198 msgid "Adaptor class" msgstr "Adaptor class" -#: classes/Gems/Default/SourceAction.php:169 +#: classes/Gems/Default/SourceAction.php:200 msgid "Database Server" msgstr "Database Server" -#: classes/Gems/Default/SourceAction.php:171 +#: classes/Gems/Default/SourceAction.php:202 msgid "Database host" msgstr "Database host" -#: classes/Gems/Default/SourceAction.php:173 +#: classes/Gems/Default/SourceAction.php:204 msgid "Charset" msgstr "Charset" -#: classes/Gems/Default/SourceAction.php:176 +#: classes/Gems/Default/SourceAction.php:207 msgid "Table prefix" msgstr "Table prefix" -#: classes/Gems/Default/SourceAction.php:180 +#: classes/Gems/Default/SourceAction.php:211 msgid "Last check" msgstr "Last check" -#: classes/Gems/Default/SourceAction.php:213 +#: classes/Gems/Default/SourceAction.php:244 msgid "source" msgid_plural "sources" msgstr[0] "source" msgstr[1] "sources" -#: classes/Gems/Default/SourceAction.php:218 +#: classes/Gems/Default/SourceAction.php:249 msgid "Survey Sources" msgstr "Survey Sources" -#: classes/Gems/Default/SourceAction.php:226 +#: classes/Gems/Default/SourceAction.php:257 msgid "This installation is active." msgstr "This installation is active." -#: classes/Gems/Default/SourceAction.php:228 +#: classes/Gems/Default/SourceAction.php:259 msgid "Inactive installation." msgstr "Inactive installation." -#: classes/Gems/Default/SourceAction.php:243 +#: classes/Gems/Default/SourceAction.php:274 #, php-format msgid "Synchronize the %s source." msgstr "Synchronize the %s source." -#: classes/Gems/Default/SourceAction.php:256 +#: classes/Gems/Default/SourceAction.php:289 msgid "Synchronize all sources." msgstr "Synchronize all sources." @@ -2275,72 +2320,80 @@ msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:345 +#: classes/Gems/Default/SurveyMaintenanceAction.php:337 +msgid "This task checks all tokens for this survey." +msgstr "This task checks all tokens for this survey." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:347 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:402 +#: classes/Gems/Default/SurveyMaintenanceAction.php:350 +msgid "This task checks all tokens for all surveys." +msgstr "This task checks all tokens for all surveys." + +#: classes/Gems/Default/SurveyMaintenanceAction.php:406 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:410 +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 -#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:439 msgid "Duration description" msgstr "Duration description" -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 -#: classes/Gems/Default/SurveyMaintenanceAction.php:435 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 +#: classes/Gems/Default/SurveyMaintenanceAction.php:439 msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." msgstr "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." -#: classes/Gems/Default/SurveyMaintenanceAction.php:414 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:417 +#: classes/Gems/Default/SurveyMaintenanceAction.php:421 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:422 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:425 +#: classes/Gems/Default/SurveyMaintenanceAction.php:429 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:434 +#: classes/Gems/Default/SurveyMaintenanceAction.php:438 msgid "Result field" msgstr "Result field" -#: classes/Gems/Default/SurveyMaintenanceAction.php:439 +#: classes/Gems/Default/SurveyMaintenanceAction.php:443 msgid "Before answering" msgstr "Before answering" -#: classes/Gems/Default/SurveyMaintenanceAction.php:440 +#: classes/Gems/Default/SurveyMaintenanceAction.php:444 msgid "After completion" msgstr "After completion" -#: classes/Gems/Default/SurveyMaintenanceAction.php:470 +#: classes/Gems/Default/SurveyMaintenanceAction.php:474 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:472 +#: classes/Gems/Default/SurveyMaintenanceAction.php:476 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:476 +#: classes/Gems/Default/SurveyMaintenanceAction.php:480 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:478 +#: classes/Gems/Default/SurveyMaintenanceAction.php:482 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -2597,12 +2650,12 @@ msgstr "Code Name" #: classes/Gems/Default/TrackFieldsAction.php:121 -#: classes/Gems/Default/TrackMaintenanceAction.php:206 +#: classes/Gems/Default/TrackMaintenanceAction.php:227 msgid "Values" msgstr "Values" #: classes/Gems/Default/TrackFieldsAction.php:123 -#: classes/Gems/Default/TrackMaintenanceAction.php:208 +#: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Required" msgstr "Required" @@ -2620,24 +2673,56 @@ msgid "Fields" msgstr "Fields" -#: classes/Gems/Default/TrackMaintenanceAction.php:158 +#: classes/Gems/Default/TrackMaintenanceAction.php:98 +msgid "Checks" +msgstr "Checks" + +#: classes/Gems/Default/TrackMaintenanceAction.php:100 +msgid "Updates existing token description and order to the current round description and order." +msgstr "Updates existing token description and order to the current round description and order." + +#: classes/Gems/Default/TrackMaintenanceAction.php:101 +msgid "Updates the survey of unanswered tokens when the round survey was changed." +msgstr "Updates the survey of unanswered tokens when the round survey was changed." + +#: classes/Gems/Default/TrackMaintenanceAction.php:102 +msgid "Removes unanswered tokens when the round is no longer active." +msgstr "Removes unanswered tokens when the round is no longer active." + +#: classes/Gems/Default/TrackMaintenanceAction.php:103 +msgid "Creates new tokens for new rounds." +msgstr "Creates new tokens for new rounds." + +#: classes/Gems/Default/TrackMaintenanceAction.php:104 +msgid "Checks the validity dates and times of unanswered tokens, using the current round settings." +msgstr "Checks the validity dates and times of unanswered tokens, using the current round settings." + +#: classes/Gems/Default/TrackMaintenanceAction.php:106 +msgid "Run this code when a track has changed or when the code has changed and the track must be adjusted." +msgstr "Run this code when a track has changed or when the code has changed and the track must be adjusted." + +#: classes/Gems/Default/TrackMaintenanceAction.php:107 +msgid "If you do not run this code after changing a track, then the old tracks remain as they were and only newly created tracks will reflect the changes." +msgstr "If you do not run this code after changing a track, then the old tracks remain as they were and only newly created tracks will reflect the changes." + +#: classes/Gems/Default/TrackMaintenanceAction.php:175 msgid "Checking round assignments for all tracks." msgstr "Checking round assignments for all tracks." -#: classes/Gems/Default/TrackMaintenanceAction.php:171 +#: classes/Gems/Default/TrackMaintenanceAction.php:190 #, php-format msgid "Checking round assignments for track '%s'." msgstr "Checking round assignments for track '%s'." -#: classes/Gems/Default/TrackMaintenanceAction.php:261 +#: classes/Gems/Default/TrackMaintenanceAction.php:282 msgid "fields" msgstr "fields" -#: classes/Gems/Default/TrackMaintenanceAction.php:262 +#: classes/Gems/Default/TrackMaintenanceAction.php:283 msgid "rounds" msgstr "rounds" -#: classes/Gems/Default/TrackMaintenanceAction.php:288 +#: classes/Gems/Default/TrackMaintenanceAction.php:309 #, php-format msgid "%s in track" msgstr "%s in track" @@ -2822,24 +2907,19 @@ msgid "Format answers" msgstr "Format answers" -#: classes/Gems/Export/RespondentExport.php:130 -#, php-format -msgid "Unable to run PDF conversion (%s): \"%s\"" -msgstr "Unable to run PDF conversion (%s): \"%s\"" - -#: classes/Gems/Export/RespondentExport.php:200 +#: classes/Gems/Export/RespondentExport.php:162 msgid "Single Survey" msgstr "Single Survey" -#: classes/Gems/Export/RespondentExport.php:261 +#: classes/Gems/Export/RespondentExport.php:223 msgid "Track information" msgstr "Track information" -#: classes/Gems/Export/RespondentExport.php:324 +#: classes/Gems/Export/RespondentExport.php:286 msgid "Group surveys" msgstr "Group surveys" -#: classes/Gems/Export/RespondentExport.php:329 +#: classes/Gems/Export/RespondentExport.php:291 msgid "Output format" msgstr "Output format" @@ -3715,13 +3795,13 @@ msgstr "Free text (very long)" #: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:628 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:678 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:732 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:679 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:733 #, php-format msgid "%s: %s" msgstr "%s: %s" -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:752 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:753 #, php-format msgid "- %s" msgstr "- %s" @@ -3913,11 +3993,11 @@ msgid "User not found or no e-mail address known or user cannot be reset." msgstr "User not found or no e-mail address known or user cannot be reset." -#: classes/Gems/Util/DbLookup.php:370 +#: classes/Gems/Util/DbLookup.php:377 msgid "inactive" msgstr "inactive" -#: classes/Gems/Util/DbLookup.php:371 +#: classes/Gems/Util/DbLookup.php:378 msgid "source inactive" msgstr "source inactive" @@ -4231,19 +4311,23 @@ #: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:172 #: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:143 +#: snippets/DeleteTrackTokenSnippet.php:193 msgid "Edit token" msgstr "Edit token" #: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:225 +#: snippets/DeleteTrackTokenSnippet.php:245 #, php-format msgid "Redo of token %s." msgstr "Redo of token %s." #: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:228 +#: snippets/DeleteTrackTokenSnippet.php:248 msgid "Old comment:" msgstr "Old comment:" #: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:249 +#: snippets/DeleteTrackTokenSnippet.php:269 #, php-format msgid "Created replacement token %2$s for token %1$s." msgstr "Created replacement token %2$s for token %1$s." @@ -4258,7 +4342,6 @@ msgstr "Deleted token %s for survey %s." #: snippets/DeleteTrackTokenSnippet.php:286 -#: snippets/EditTrackTokenSnippet.php:182 #, php-format msgid "%d token changed by recalculation." msgid_plural "%d tokens changed by recalculation." @@ -4462,6 +4545,13 @@ msgstr[0] "After this survey there is one other survey we would like you to answer." msgstr[1] "After this survey there are another %d surveys we would like you to answer." +#~ msgid "" +#~ "Only for unanswered tokens: updates the survey of a token when changed in " +#~ "the track." +#~ msgstr "" +#~ "Only for unanswered tokens: updates the survey of a token when changed in " +#~ "the track." + #~ msgid "Invalid organization." #~ msgstr "Invalid organization." Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-07-19 16:55:57 UTC (rev 861) +++ trunk/library/languages/default-nl.po 2012-07-20 12:07:25 UTC (rev 862) @@ -1,5219 +1,5313 @@ -msgid "" -msgstr "" -"Project-Id-Version: GemsTracker NL\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-18 13:55+0100\n" -"PO-Revision-Date: \n" -"Last-Translator: Michiel Rook <in...@to...>\n" -"Language-Team: Erasmus MGZ <mat...@ma...>\n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Poedit-Language: Dutch\n" -"X-Poedit-Country: NETHERLANDS\n" -"X-Poedit-SourceCharset: iso-8859-1\n" -"X-Poedit-Basepath: ../\n" -"X-Poedit-KeywordsList: plural:1,2\n" -"X-Poedit-SearchPath-0: .\n" - -#: classes/GemsEscort.php:215 -#, php-format -msgid "Path %s not writable" -msgstr "Path %s niet schrijfbaar" - -#: classes/GemsEscort.php:597 -msgid " > " -msgstr " | " - -#: classes/GemsEscort.php:788 -#, php-format -msgid "You are logged in as %s" -msgstr "Ingelogd als %s" - -#: classes/GemsEscort.php:790 -msgid "Logoff" -msgstr "Uitloggen" - -#: classes/GemsEscort.php:793 -msgid "You are not logged in" -msgstr "U bent niet ingelogd" - -#: classes/GemsEscort.php:980 -#, php-format -msgid "User: %s" -msgstr "Login: %s" - -#: classes/GemsEscort.php:1005 -msgid "version" -msgstr "versie" - -#: classes/GemsEscort.php:1451 -msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -msgstr "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw gegevens en probeer a.u.b. opnieuw." - -#: classes/GemsEscort.php:1580 -msgid "Please check back later." -msgstr "Probeer het later opnieuw." - -#: classes/GemsEscort.php:1582 -#: classes/GemsEscort.php:1587 -msgid "System is in maintenance mode" -msgstr "Systeem is in onderhoudsmodus" - -#: classes/GemsEscort.php:1597 -msgid "No access to site." -msgstr "Geen toegang tot website." - -#: classes/GemsEscort.php:1599 -msgid "You have no access to this site." -msgstr "U heeft geen toegang tot deze website." - -#: classes/GemsEscort.php:1615 -msgid "No access to page" -msgstr "Geen toegang tot pagina" - -#: classes/GemsEscort.php:1617 -#, php-format -msgid "Access to this page is not allowed for current role: %s." -msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." - -#: classes/GemsEscort.php:1627 -msgid "You are no longer logged in." -msgstr "U bent niet meer ingelogd." - -#: classes/GemsEscort.php:1628 -msgid "You must login to access this page." -msgstr "U moet ingelogd zijn voor toegang tot deze pagina." - -#: classes/GemsEscort.php:1769 -#, php-format -msgid "%d survey" -msgid_plural "%d surveys" -msgstr[0] "%d vragenlijst" -msgstr[1] "%d vragenlijsten" - -#: classes/Gems/Pdf.php:198 -#, php-format -msgid "PDF Source File '%s' not found!" -msgstr "PDF bron bestand %s niet gevonden!" - -#: classes/Gems/Pdf.php:240 -#, php-format -msgid "Could not create '%s' directory." -msgstr "Kon de directory '%s' niet aanmaken." - -#: classes/Gems/Pdf.php:283 -#, php-format -msgid " The error message is: %s" -msgstr "De foutmelding is: %s" - -#: classes/Gems/Upgrades.php:79 -msgid "Syncing surveys for all sources" -msgstr "Vragenlijsten synchroniseren voor alle bronnen." - -#: classes/Gems/AccessLog.php:236 -msgid "Database needs to be updated!" -msgstr "Database dient ververst te worden!" - -#: classes/Gems/Html.php:155 -msgid "<< First" -msgstr "<< Eerste" - -#: classes/Gems/Html.php:156 -msgid "< Previous" -msgstr "< Terug" - -#: classes/Gems/Html.php:157 -msgid "Next >" -msgstr "Verder >" - -#: classes/Gems/Html.php:158 -msgid "Last >>" -msgstr "Laatste >>" - -#: classes/Gems/Html.php:159 -msgid " | " -msgstr " | " - -#: classes/Gems/Html.php:163 -msgid "to" -msgstr "tot" - -#: classes/Gems/Html.php:164 -msgid "of" -msgstr "van" - -#: classes/Gems/Menu.php:140 -#, php-format -msgid "About %s" -msgstr "Over %s" - -#: classes/Gems/Menu.php:144 -msgid "Reporting bugs" -msgstr "Meld een bug" - -#: classes/Gems/Menu.php:147 -msgid "Support" -msgstr "Ondersteuning" - -#: classes/Gems/Menu.php:167 -msgid "Project setup" -msgstr "Projectinfo" - -#: classes/Gems/Menu.php:170 -msgid "Database" -msgstr "Database" - -#: classes/Gems/Menu.php:174 -msgid "Content" -msgstr "Inhoud" - -#: classes/Gems/Menu.php:177 -msgid "Execute" -msgstr "Uitvoeren" - -#: classes/Gems/Menu.php:182 -msgid "Patches" -msgstr "Patches" - -#: classes/Gems/Menu.php:183 -msgid "Execute new" -msgstr "Nieuwe aanmaken" - -#: classes/Gems/Menu.php:185 -msgid "Refresh translateables" -msgstr "Ververs vertaalbaren" - -#: classes/Gems/Menu.php:187 -msgid "Run SQL" -msgstr "SQL uitvoeren" - -#: classes/Gems/Menu.php:190 -msgid "Reception codes" -msgstr "Ontvangst codes" - -#: classes/Gems/Menu.php:193 -msgid "Consents" -msgstr "Toestemmingen" - -#: classes/Gems/Menu.php:196 -msgid "Roles" -msgstr "Rollen" - -#: classes/Gems/Menu.php:197 -msgid "Assigned" -msgstr "Toegewezen" - -#: classes/Gems/Menu.php:198 -msgid "Privileges" -msgstr "Priviléges" - -#: classes/Gems/Menu.php:201 -msgid "Groups" -msgstr "Groepen" - -#: classes/Gems/Menu.php:204 -msgid "Organizations" -msgstr "Organisaties" - -#: classes/Gems/Menu.php:207 -msgid "Staff" -msgstr "Medewerkers" - -#: classes/Gems/Menu.php:210 -msgid "Logging" -msgstr "Logboek" - -#: classes/Gems/Menu.php:214 -msgid "Maintenance" -msgstr "Onderhoud" - -#: classes/Gems/Menu.php:219 -msgid "Upgrade" -msgstr "Upgrade" - -#: classes/Gems/Menu.php:220 -msgid "Show" -msgstr "Toon" - -#: classes/Gems/Menu.php:221 -msgid "Execute all" -msgstr "Alles uitvoeren" - -#: classes/Gems/Menu.php:222 -msgid "Execute this" -msgstr "Dit uitvoeren" - -#: classes/Gems/Menu.php:223 -msgid "Execute from here" -msgstr "Uitvoeren vanaf hier" - -#: classes/Gems/Menu.php:224 -msgid "Execute to here" -msgstr "Uitvoeren tot hier" - -#: classes/Gems/Menu.php:248 -#, php-format -msgid "Stand-alone privilege: %s" -msgstr "Zelfstandig privilege: %s" - -#: classes/Gems/Menu.php:255 -msgid "Logon" -msgstr "Login" - -#: classes/Gems/Menu.php:256 -msgid "Lost password" -msgstr "Wachtwoord vergeten" - -#: classes/Gems/Menu.php:257 -msgid "Your account" -msgstr "Uw account" - -#: classes/Gems/Menu.php:258 -msgid "Activity overview" -msgstr "Activiteiten overzicht" - -#: classes/Gems/Menu.php:259 -msgid "Change password" -msgstr "Uw wachtwoord" - -#: classes/Gems/Menu.php:260 -#: classes/Gems/Menu.php:359 -msgid "Token" -msgstr "Kenmerk" - -#: classes/Gems/Menu.php:301 -msgid "Export" -msgstr "Exporteer" - -#: classes/Gems/Menu.php:308 -msgid "Track" -msgstr "Traject" - -#: classes/Gems/Menu.php:316 -#: classes/Gems/Menu.php:383 -msgid "Add" -msgstr "Voeg toe" - -#: classes/Gems/Menu.php:322 -msgid "Preview" -msgstr "Preview" - -#: classes/Gems/Menu.php:331 -msgid "Tracks" -msgstr "Trajecten" - -#: classes/Gems/Menu.php:347 -msgid "Assignments" -msgstr "Toewijzingen" - -#: classes/Gems/Menu.php:363 -msgid "Edit" -msgstr "Wijzig" - -#: classes/Gems/Menu.php:369 -msgid "Delete" -msgstr "Verwijder" - -#: classes/Gems/Menu.php:376 -msgid "Surveys" -msgstr "Vragenlijsten" - -#: classes/Gems/Menu.php:413 -msgid "Fill in" -msgstr "Vul in" - -#: classes/Gems/Menu.php:416 -msgid "Print PDF" -msgstr "Print PDF" - -#: classes/Gems/Menu.php:419 -msgid "E-Mail now!" -msgstr "Email nu!" - -#: classes/Gems/Menu.php:425 -msgid "Answers" -msgstr "Antwoorden" - -#: classes/Gems/Menu.php:577 -msgid "Respondents" -msgstr "Patiënten" - -#: classes/Gems/Menu.php:585 -msgid "Overview" -msgstr "Overzicht" - -#: classes/Gems/Menu.php:592 -msgid "Project" -msgstr "Project" - -#: classes/Gems/Menu.php:595 -msgid "Setup" -msgstr "Beheer" - -#: classes/Gems/Menu.php:598 -msgid "Track Builder" -msgstr "Traject bouwer" - -#: classes/Gems/Menu.php:601 -msgid "Mail" -msgstr "Email" - -#: classes/Gems/Menu.php:607 -msgid "Export respondent" -msgstr "Exporteer patiënt" - -#: classes/Gems/Menu.php:613 -msgid "Contact" -msgstr "Contact" - -#: classes/Gems/Menu.php:627 -msgid "Changelog" -msgstr "Changelog" - -#: classes/Gems/Model.php:206 -msgid "Respondent nr" -msgstr "Patiënt nr" - -#: classes/Gems/Model.php:209 -msgid "Organization" -msgstr "Organisatie" - -#: classes/Gems/Model.php:211 -msgid "Opened" -msgstr "Bekeken op" - -#: classes/Gems/Model.php:212 -msgid "Consent" -msgstr "Toestemming" - -#: classes/Gems/Model.php:214 -msgid "E-Mail" -msgstr "Email" - -#: classes/Gems/Model.php:219 -msgid "Gender" -msgstr "Geslacht" - -#: classes/Gems/Model.php:220 -msgid "First name" -msgstr "Voornaam" - -#: classes/Gems/Model.php:221 -msgid "Surname prefix" -msgstr "Tussenvoegsel" - -#: classes/Gems/Model.php:222 -msgid "Last name" -msgstr "Achternaam" - -#: classes/Gems/Model.php:224 -msgid "Name" -msgstr "Naam" - -#: classes/Gems/Model.php:227 -msgid "Street" -msgstr "Straat" - -#: classes/Gems/Model.php:228 -msgid "Zipcode" -msgstr "Postcode" - -#: classes/Gems/Model.php:229 -msgid "City" -msgstr "Woonplaats" - -#: classes/Gems/Model.php:231 -msgid "Phone" -msgstr "Telefoon" - -#: classes/Gems/Model.php:233 -msgid "Birthday" -msgstr "Geboren op" - -#: classes/Gems/UpgradesAbstract.php:154 -msgid "Already at max. level." -msgstr "Al op het hoogste niveau." - -#: classes/Gems/UpgradesAbstract.php:161 -#, php-format -msgid "Trying upgrade for %s from level %s to level %s" -msgstr "Probeert upgrade voor %s van niveau %s naar niveau %s uit te voeren" - -#: classes/Gems/UpgradesAbstract.php:169 -#, php-format -msgid "Trying upgrade for %s to level %s: %s" -msgstr "Probeert upgrade voor %s naar niveau %s: %s" - -#: classes/Gems/Model/HiddenOrganizationModel.php:113 -msgid "Inaccessible or unknown organization" -msgstr "Ontoegankelijke of onbekende organisatie." - -#: classes/Gems/Model/DbaModel.php:97 -msgid "created" -msgstr "bestaat" - -#: classes/Gems/Model/DbaModel.php:98 -msgid "not created" -msgstr "niet aanwezig" - -#: classes/Gems/Model/DbaModel.php:99 -msgid "unknown" -msgstr "onbekend" - -#: classes/Gems/Model/DbaModel.php:420 -#, php-format -msgid "Executed %2$s creation script %1$s:" -msgstr "Uitvoerresultaat %2$s script %1$s:" - -#: classes/Gems/Model/DbaModel.php:430 -#, php-format -msgid "%d record(s) returned as result set %d in step %d of %d." -msgstr "%d rij(en) in resultaat %d in stap %d van %d." - -#: classes/Gems/Model/DbaModel.php:434 -#, php-format -msgid "%d record(s) updated in step %d of %d." -msgstr "In stap %2$d van %3$d zijn %1$d rij(en) aangepast." - -#: classes/Gems/Model/DbaModel.php:437 -#, php-format -msgid "Script ran step %d of %d succesfully." -msgstr "Stap %d van %d in het script met succes uitgevoerd." - -#: classes/Gems/Model/DbaModel.php:440 -msgid " in step " -msgstr " in stap " - -#: classes/Gems/Model/DbaModel.php:445 -#, php-format -msgid "No script for %1$s." -msgstr "Geen script voor %1$s:" - -#: classes/Gems/Export/Spss.php:80 -msgid "Which file" -msgstr "Kies bestand" - -#: classes/Gems/Export/Spss.php:81 -msgid "syntax" -msgstr "syntax" - -#: classes/Gems/Export/Spss.php:82 -msgid "data" -msgstr "data" - -#: classes/Gems/Export/Spss.php:86 -msgid "Some help for this export" -msgstr "Uitleg over deze export mogelijkheid" - -#: classes/Gems/Export/Excel.php:60 -msgid "Excel options" -msgstr "Excel opties" - -#: classes/Gems/Export/Excel.php:62 -msgid "Export questions instead of variable names" -msgstr "Exporteer vragen in plaats van variabele namen" - -#: classes/Gems/Export/Excel.php:63 -msgid "Format answers" -msgstr "Antwoorden opmaken" - -#: classes/Gems/Export/RespondentExport.php:130 -#, php-format -msgid "Unable to run PDF conversion (%s): \"%s\"" -msgstr "Kan PDF conversie (%s) niet starten: \"%s\"" - -#: classes/Gems/Export/RespondentExport.php:186 -msgid "Survey" -msgstr "Vragenlijst" - -#: classes/Gems/Export/RespondentExport.php:187 -msgid "Round" -msgstr "Ronde" - -#: classes/Gems/Export/RespondentExport.php:189 -msgid "Status" -msgstr "Status" - -#: classes/Gems/Export/RespondentExport.php:200 -msgid "Single Survey" -msgstr "Losse vragenlijst" - -#: classes/Gems/Export/RespondentExport.php:246 -msgid "Description" -msgstr "Omschrijving" - -#: classes/Gems/Export/RespondentExport.php:247 -msgid "Enter the particulars concerning the assignment to this respondent." -msgstr "Beschrijf de redenen om dit aan deze patiënt toe te wijzen." - -#: classes/Gems/Export/RespondentExport.php:248 -msgid "Assigned by" -msgstr "Toewijzer" - -#: classes/Gems/Export/RespondentExport.php:249 -msgid "Start" -msgstr "Aanvang" - -#: classes/Gems/Export/RespondentExport.php:253 -msgid "Comment" -msgstr "Opmerkingen" - -#: classes/Gems/Export/RespondentExport.php:261 -msgid "Track information" -msgstr "Traject informatie" - -#: classes/Gems/Export/RespondentExport.php:324 -msgid "Group surveys" -msgstr "Groepeer vragenlijsten" - -#: classes/Gems/Export/RespondentExport.php:329 -msgid "Output format" -msgstr "Uitvoerformaat" - -#: classes/Gems/Util/Translated.php:81 -msgid "-" -msgstr "n.v.t." - -#: classes/Gems/Util/Translated.php:96 -msgid "forever" -msgstr "altijd" - -#: classes/Gems/Util/Translated.php:105 -msgid "n/a" -msgstr "n.v.t." - -#: classes/Gems/Util/Translated.php:114 -msgid "never" -msgstr "nooit" - -#: classes/Gems/Util/Translated.php:139 -msgid "2 days ago" -msgstr "Eergisteren" - -#: classes/Gems/Util/Translated.php:142 -msgid "Yesterday" -msgstr "Gisteren" - -#: classes/Gems/Util/Translated.php:145 -msgid "Today" -msgstr "Vandaag" - -#: classes/Gems/Util/Translated.php:148 -msgid "Tomorrow" -msgstr "Morgen" - -#: classes/Gems/Util/Translated.php:151 -msgid "Over 2 days" -msgstr "Overmorgen" - -#: classes/Gems/Util/Translated.php:156 -#, php-format -msgid "Over %d days" -msgstr "Over %d dagen" - -#: classes/Gems/Util/Translated.php:158 -#, php-format -msgid "%d days ago" -msgstr "%d dagen terug" - -#: classes/Gems/Util/Translated.php:186 -#, php-format -msgid "%d days %d:%s:%s" -msgstr "%d dagen %d:%s:%s" - -#: classes/Gems/Util/Translated.php:188 -#, php-format -msgid "%d:%s:%s" -msgstr "%d:%s:%s" - -#: classes/Gems/Util/Translated.php:190 -#, php-format -msgid "%d:%s" -msgstr "%d:%s" - -#: classes/Gems/Util/Translated.php:202 -msgid "Send multiple mails per respondent, one for each checked token." -msgstr "Verstuur meerdere emails per patiënt, één per gekozen kenmerk." - -#: classes/Gems/Util/Translated.php:203 -msgid "Send one mail per respondent, mark all checked tokens as send." -msgstr "Verstuur één email per patiënt, zet alle gekozen kenmerken op verzonden." - -#: classes/Gems/Util/Translated.php:204 -msgid "Send one mail per respondent, mark only mailed tokens as send." -msgstr "Verstuur één email per patiënt, zet alleen de verzonden kenmerken op verzonden." - -#: classes/Gems/Util/Translated.php:229 -msgid "Male" -msgstr "Man" - -#: classes/Gems/Util/Translated.php:229 -msgid "Female" -msgstr "Vrouw" - -#: classes/Gems/Util/Translated.php:229 -msgid "Unknown" -msgstr "Onbekend" - -#: classes/Gems/Util/Translated.php:242 -msgid "mr." -msgstr "meneer" - -#: classes/Gems/Util/Translated.php:242 -msgid "mrs." -msgstr "mevrouw" - -#: classes/Gems/Util/Translated.php:242 -msgid "mr./mrs." -msgstr "heer/mevrouw" - -#: classes/Gems/Util/Translated.php:255 -msgid "Mr." -msgstr "De heer" - -#: classes/Gems/Util/Translated.php:255 -msgid "Mrs." -msgstr "Mevrouw" - -#: classes/Gems/Util/Translated.php:255 -msgid "Mr./Mrs." -msgstr "De heer/Mevrouw" - -#: classes/Gems/Util/Translated.php:263 -msgid "Yes" -msgstr "Ja" - -#: classes/Gems/Util/Translated.php:263 -#: classes/Gems/Util/ReceptionCodeLibrary.php:99 -#: classes/Gems/Util/ReceptionCodeLibrary.php:123 -msgid "No" -msgstr "Nee" - -#: classes/Gems/Util/TrackData.php:147 -msgid "Active" -msgstr "Actief" - -#: classes/Gems/Util/TrackData.php:147 -msgid "Inactive" -msgstr "Inactief" - -#: classes/Gems/Util/DbLookup.php:370 -msgid "inactive" -msgstr "inactief" - -#: classes/Gems/Util/DbLookup.php:371 -msgid "source inactive" -msgstr "bron inactief" - -#: classes/Gems/Util/ReceptionCodeLibrary.php:100 -msgid "Yes (forget answers)" -msgstr "Ja (vergeet antwoorden)" - -#: classes/Gems/Util/ReceptionCodeLibrary.php:101 -msgid "Yes (keep answers)" -msgstr "Ja (met behoud van antwoorden)" - -#: classes/Gems/Util/ReceptionCodeLibrary.php:124 -msgid "Yes (individual surveys only)" -msgstr "Ja (alleen zelfstandige vragenlijsten)" - -#: classes/Gems/Util/ReceptionCodeLibrary.php:125 -msgid "Stop (per respondent or track only)" -msgstr "Stop (alleen per patiënt og traject)" - -#: classes/Gems/Controller/ModelActionAbstract.php:97 -msgid "Cancel" -msgstr "Annuleren" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:239 -#: classes/Gems/Controller/BrowseEditAction.php:356 -#, php-format -msgid "New %s..." -msgstr "Nieuwe %s..." - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:249 -#, php-format -msgid "Do you want to delete this %s?" -msgstr "Weet u zeker dat deze %s verwijderd moet worden?" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:259 -#: classes/Gems/Controller/BrowseEditAction.php:389 -#, php-format -msgid "Delete %s" -msgstr "Verwijder %s" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:269 -#: classes/Gems/Controller/BrowseEditAction.php:412 -#, php-format -msgid "Edit %s" -msgstr "Bewerk %s" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:282 -msgid "No data found." -msgstr "Geen gegevens gevonden." - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:344 -#, php-format -msgid "No %s found..." -msgstr "Geen %s gevonden..." - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:354 -#, php-format -msgid "Showing %s" -msgstr "Toon %s" - -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 -msgid "item" -msgid_plural "items" -msgstr[0] "item" -msgstr[1] "items" - -#: classes/Gems/Controller/BrowseEditAction.php:393 -#, php-format -msgid "%2$u %1$s deleted" -msgstr "%2$u %1$s verwijderd" - -#: classes/Gems/Controller/BrowseEditAction.php:410 -#, php-format -msgid "Edit %s %s" -msgstr "Bewerk %s %s" - -#: classes/Gems/Controller/BrowseEditAction.php:513 -msgid "Free search text" -msgstr "Vrije zoek tekst" - -#: classes/Gems/Controller/BrowseEditAction.php:584 -msgid "Search" -msgstr "Zoeken" - -#: classes/Gems/Controller/BrowseEditAction.php:600 -#, php-format -msgid "No %s found" -msgstr "Geen %s gevonden" - -#: classes/Gems/Controller/BrowseEditAction.php:684 -#, php-format -msgid "No %s found." -msgstr "Geen %s gevonden." - -#: classes/Gems/Controller/BrowseEditAction.php:802 -msgid "Are you sure?" -msgstr "Weet u het zeker?" - -#: classes/Gems/Controller/BrowseEditAction.php:872 -#, php-format -msgid "Unknown %s requested" -msgstr "Onjuist %s verzoek" - -#: classes/Gems/Controller/BrowseEditAction.php:895 -#, php-format -msgid "New %1$s..." -msgstr "Nieuwe %1$s..." - -#: classes/Gems/Controller/BrowseEditAction.php:903 -msgid "Save" -msgstr "Opslaan" - -#: classes/Gems/Controller/BrowseEditAction.php:939 -#, php-format -msgid "%2$u %1$s saved" -msgstr "%2$u %1$s opgeslagen" - -#: classes/Gems/Controller/BrowseEditAction.php:942 -msgid "No changes to save." -msgstr "Geen verandering om op te slaan." - -#: classes/Gems/Controller/BrowseEditAction.php:951 -msgid "Input error! No changes saved!" -msgstr "Invoer fout! Veranderingen niet opgeslagen!" - -#: classes/Gems/Controller/BrowseEditAction.php:979 -#, php-format -msgid "Show %s" -msgstr "Toon %s" - -#: classes/Gems/Controller/BrowseEditAction.php:986 -#, php-format -msgid "Unknown %s." -msgstr "%s is onbekend." - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:65 -msgid "Prepare recheck" -msgstr "Hercontrole voorbereiden" - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:68 -#, php-format -msgid "Start %s jobs" -msgstr "Start %s opdrachten" - -#: classes/Gems/Controller/Action/Helper/BatchRunner.php:71 -msgid "Nothing to do." -msgstr "Niets te doen." - -#: classes/Gems/Snippets/TokenModelSnippetAbstract.php:59 -msgid "+" -msgstr "+" - -#: classes/Gems/Snippets/RespondentDetailSnippetAbstract.php:141 -#: classes/Gems/Snippets/Export/RespondentSnippet.php:81 -#: classes/Gems/Snippets/Export/RespondentSnippet.php:89 -msgid "Respondent information" -msgstr "Patiënt informatie" - -#: classes/Gems/Snippets/RespondentDetailSnippetAbstract.php:144 -#, php-format -msgid "%s respondent information" -msgstr "%s patiënt informatie" - -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:54 -msgid "Respondent report" -msgstr "Patiënt rapportage" - -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:58 -msgid "Report information" -msgstr "Informatie over rapportage" - -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:59 -msgid "Generated by" -msgstr "Aangemaakt door" - -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:61 -msgid "Generated on" -msgstr "Aangemaakt op" - -#: classes/Gems/Snippets/Export/ReportFooterSnippet.php:55 -msgid "Report generation finished." -msgstr "Rapport is aangemaakt." - -#: classes/Gems/Snippets/Export/RespondentSnippet.php:75 -#, php-format -msgid "Unknown respondent %s" -msgstr "Onbekende patiënt %s" - -#: classes/Gems/Email/MailTemplateForm.php:56 -msgid "Send (test)" -msgstr "Verstuur (test)" - -#: classes/Gems/Email/MailTemplateForm.php:81 -#: classes/Gems/Email/EmailFormAbstract.php:193 -#: classes/Gems/Email/EmailFormAbstract.php:251 -msgid "From" -msgstr "Van" - -#: classes/Gems/Email/MailTemplateForm.php:95 -msgid "Test using" -msgstr "Test met" - -#: classes/Gems/Email/MailTemplateForm.php:124 -msgid "To (test)" -msgstr "Aan (test)" - -#: classes/Gems/Email/MailTemplateForm.php:168 -msgid "Test mail send, changes not saved!" -msgstr "Test email verstuurd. De veranderingen zijn nog niet opgeslagen!" - -#: classes/Gems/Email/EmailFormAbstract.php:101 -msgid "no email adress" -msgstr "geen email adres" - -#: classes/Gems/Email/EmailFormAbstract.php:145 -msgid "Available fields" -msgstr "Beschikbare velden" - -#: classes/Gems/Email/EmailFormAbstract.php:153 -msgid "BBCode" -msgstr "BBCode" - -#: classes/Gems/Email/EmailFormAbstract.php:168 -msgid "Message" -msgstr "Bericht" - -#: classes/Gems/Email/EmailFormAbstract.php:216 -msgid "Organization does not have an e-mail address." -msgstr "Organisatie heeft geen email adres." - -#: classes/Gems/Email/EmailFormAbstract.php:231 -msgid "You do not have an e-mail address." -msgstr "U heeft geen email adres." - -#: classes/Gems/Email/EmailFormAbstract.php:291 -msgid "Preview HTML" -msgstr "Html voorbeeld" - -#: classes/Gems/Email/EmailFormAbstract.php:300 -msgid "Preview text" -msgstr "Tekstvoorbeeld" - -#: classes/Gems/Email/EmailFormAbstract.php:308 -msgid "Template" -msgstr "Sjabloon" - -#: classes/Gems/Email/EmailFormAbstract.php:332 -msgid "Send" -msgstr "Verstuur" - -#: classes/Gems/Email/EmailFormAbstract.php:349 -msgid "Subject" -msgstr "Onderwerp" - -#: classes/Gems/Email/EmailFormAbstract.php:429 -msgid "Input error! No changes made!" -msgstr "Invoer fout! Veranderingen niet uitgevoerd!" - -#: classes/Gems/Email/EmailFormAbstract.php:446 -msgid "Subject:" -msgstr "Onderwerp:" - -#: classes/Gems/Email/EmailFormAbstract.php:474 -msgid "Field" -msgstr "Veld" - -#: classes/Gems/Email/EmailFormAbstract.php:475 -msgid "Value" -msgstr "waarde" - -#: classes/Gems/Email/EmailFormAbstract.php:478 -msgid "BBCode info page" -msgstr "BBCode info pagina" - -#: classes/Gems/Email/OneMailForm.php:47 -#: classes/Gems/Email/MultiMailForm.php:49 -msgid "On this test system all mail will be delivered to the from address." -msgstr "Op dit test systeem worden alle emails gestuurd naar het \"van\" adres." - -#: classes/Gems/Email/OneMailForm.php:58 -msgid "Last contact" -msgstr "Contactdatum" - -#: classes/Gems/Email/OneMailForm.php:87 -#: classes/Gems/Email/MultiMailForm.php:101 -msgid "To" -msgstr "Aan" - -#: classes/Gems/Email/OneMailForm.php:131 -#: classes/Gems/Email/TemplateMailer.php:229 -msgid "The sending of emails was blocked for this installation." -msgstr "Het versturen van emails is geblokkeerd in deze installatie." - -#: classes/Gems/Email/OneMailForm.php:141 -#: classes/Gems/Email/TemplateMailer.php:263 -msgid "Mail failed to send." -msgstr "Mail sturen mislukt." - -#: classes/Gems/Email/OneMailForm.php:145 -#, php-format -msgid "Sent email to %s." -msgstr "Email naar %s verzonden." - -#: classes/Gems/Email/TemplateMailer.php:283 -#, php-format -msgid "Sent %d e-mails, updated %d tokens." -msgstr "%d emails verzonden en %d kenmerken bijgewerkt." - -#: classes/Gems/Email/TemplateMailer.php:360 -#, php-format -msgid "Invalid e-mail address '%s'." -msgstr "Ongeldig email adres '%s'." - -#: classes/Gems/Email/MultiMailForm.php:75 -msgid "Method" -msgstr "Methode" - -#: classes/Gems/Email/MultiMailForm.php:122 -msgid "Survey has been taken." -msgstr "Vragenlijsten is al afgenomen" - -#: classes/Gems/Email/MultiMailForm.php:125 -msgid "Respondent does not have an e-mail address." -msgstr "Patiënt heeft geen email adres" - -#: classes/Gems/Email/MultiMailForm.php:128 -msgid "Survey cannot be taken by a respondent." -msgstr "Deze vragenlijst kan niet door een patiënt ingevuld worden." - -#: classes/Gems/Email/MultiMailForm.php:130 -msgid "Survey cannot be taken at this moment." -msgstr "Deze vragenlijst kan op dit moment niet afgenomen worden." - -#: classes/Gems/Tracker/Token.php:956 -msgid "Open" -msgstr "Open" - -#: classes/Gems/Tracker/Token.php:959 -msgid "Completed" -msgstr "Ingevuld" - -#: classes/Gems/Tracker/Token.php:965 -msgid "Missed" -msgstr "Gemist" - -#: classes/Gems/Tracker/Token.php:967 -msgid "Future" -msgstr "Toekomstig" - -#: classes/Gems/Tracker/ChangeTracker.php:64 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:434 -#, php-format -msgid "Checked %d tracks." -msgstr "%d trajecten gecontroleerd." - -#: classes/Gems/Tracker/ChangeTracker.php:67 -#, php-format -msgid "Checked %d tokens." -msgstr "%d kenmerken gecontroleerd." - -#: classes/Gems/Tracker/ChangeTracker.php:72 -#, php-format -msgid "Answers changed by survey completion event for %d tokens." -msgstr "Bij %d kenmerken zijn de antwoorden aangepast door vragenlijst afrondingscode." - -#: classes/Gems/Tracker/ChangeTracker.php:75 -#, php-format -msgid "Results and timing changed for %d tokens." -msgstr "Bij %d kenmerken zijn de resultaten en/of de tijdstippen aangepast." - -#: classes/Gems/Tracker/ChangeTrac... [truncated message content] |
From: <gem...@li...> - 2012-07-20 16:58:04
|
Revision: 864 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=864&view=rev Author: matijsdejong Date: 2012-07-20 16:57:56 +0000 (Fri, 20 Jul 2012) Log Message: ----------- Some more last minute issues for #366 Fixed #367 survey and track screens now have more powerfull selection tools Modified Paths: -------------- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Default/TrackFieldsAction.php trunk/library/classes/Gems/Default/TrackMaintenanceAction.php trunk/library/classes/Gems/Default/TrackRoundsAction.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-07-20 16:57:56 UTC (rev 864) @@ -454,6 +454,73 @@ return MUtil_Html::raw(strip_tags($value)); } + /** + * Returns a text element for autosearch. Can be overruled. + * + * The form / html elements to search on. Elements can be grouped by inserting null's between them. + * That creates a distinct group of elements + * + * @param MUtil_Model_ModelAbstract $model + * @param array $data The $form field values (can be usefull, but no need to set them) + * @return array Of Zend_Form_Element's or static tekst to add to the html or null for group breaks. + */ + protected function getAutoSearchElements(MUtil_Model_ModelAbstract $model, array $data) + { + $elements = parent::getAutoSearchElements($model, $data); + + if ($elements) { + $br = MUtil_Html::create('br'); + $elements[] = $this->_createSelectElement('gsu_id_primary_group', $model, $this->_('(all groups)')); + + $elements[] = $br; + + $states = array( + 'act' => $this->_('Active'), + 'sok' => $this->_('OK in source, not active'), + 'nok' => $this->_('Blocked in source'), + ); + $element = $this->_createSelectElement('status', $states, $this->_('(every state)')); + // $element->setLabel($this->_('Status')); + $elements[] = $element; + + } + + return $elements; + } + + /** + * Additional data filter statements for the user input. + * + * User input that has the same name as a model field is automatically + * used as a filter, but if the name is different processing is needed. + * That processing should happen here. + * + * @param array $data The current user input + * @return array New filter statements + */ + protected function getDataFilter(array $data) + { + $filter = parent::getDataFilter($data); + + if (isset($data['status']) && strlen($data['status'])) { + switch ($data['status']) { + case 'sok': + $filter['gsu_active'] = 0; + $filter[] = "(gsu_status IS NULL OR LENGTH(gsu_status) = 0)"; + break; + + case 'nok': + $filter[] = "(gsu_status IS NOT NULL AND gsu_status NOT IN ('', 'OK'))"; + break; + + default: + $filter['gsu_active'] = 1; + } + } + + return $filter; + } + public function getTrackCount($currentId) { $singleTrack = ($this->escort instanceof Gems_Project_Tracks_SingleTrackInterface) ? $this->escort->getTrackId() : null; Modified: trunk/library/classes/Gems/Default/TrackFieldsAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackFieldsAction.php 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/classes/Gems/Default/TrackFieldsAction.php 2012-07-20 16:57:56 UTC (rev 864) @@ -76,6 +76,47 @@ } /** + * Creates a model for getModel(). Called only for each new $action. + * + * The parameters allow you to easily adapt the model to the current action. The $detailed + * parameter was added, because the most common use of action is a split between detailed + * and summarized actions. + * + * @param boolean $detailed True when the current action is not in $summarizedActions. + * @param string $action The current action. + * @return Gems_Model_TrackModel + */ + public function createModel($detailed, $action) + { + $trackId = $this->_getIdParam(); + $types = array('select' => $this->_('Select one'), 'multiselect' => $this->_('Select multiple'), 'date' => $this->_('Date'), 'text' => $this->_('Free text')); + + $model = new MUtil_Model_TableModel('gems__track_fields'); + $model->setKeys(array('fid' => 'gtf_id_field', MUtil_Model::REQUEST_ID => 'gtf_id_track')); + $model->set('gtf_id_track', 'label', $this->_('Track'), 'multiOptions', $this->util->getTrackData()->getAllTracks()); + $model->set('gtf_id_order', 'label', $this->_('Order')); + $model->set('gtf_field_name', 'label', $this->_('Name')); + if ($detailed) { + $model->set('gtf_field_code', 'label', $this->_('Code Name')); + $model->set('gtf_field_description', 'label', $this->_('Description')); + } + $model->set('gtf_field_values', 'label', $this->_('Values')); + $model->set('gtf_field_type', 'label', $this->_('Type'), 'multiOptions', $types); + $model->set('gtf_required', 'label', $this->_('Required'), 'multiOptions', $this->util->getTranslated()->getYesNo()); + if ($detailed) { + $model->set('gtf_readonly', 'label', $this->_('Readonly'), 'multiOptions', $this->util->getTranslated()->getYesNo()); + } + + Gems_Model::setChangeFieldsByPrefix($model, 'gtf'); + + if ($trackId) { + $model->set('gtf_id_track', 'default', $trackId); + } + + return $model; + } + + /** * Creates a form to delete a record * * Uses $this->getModel() @@ -124,47 +165,6 @@ return $elements; } - /** - * Creates a model for getModel(). Called only for each new $action. - * - * The parameters allow you to easily adapt the model to the current action. The $detailed - * parameter was added, because the most common use of action is a split between detailed - * and summarized actions. - * - * @param boolean $detailed True when the current action is not in $summarizedActions. - * @param string $action The current action. - * @return Gems_Model_TrackModel - */ - public function createModel($detailed, $action) - { - $trackId = $this->_getIdParam(); - $types = array('select' => $this->_('Select one'), 'multiselect' => $this->_('Select multiple'), 'date' => $this->_('Date'), 'text' => $this->_('Free text')); - - $model = new MUtil_Model_TableModel('gems__track_fields'); - $model->setKeys(array('fid' => 'gtf_id_field', MUtil_Model::REQUEST_ID => 'gtf_id_track')); - $model->set('gtf_id_track', 'label', $this->_('Track'), 'multiOptions', $this->util->getTrackData()->getAllTracks()); - $model->set('gtf_id_order', 'label', $this->_('Order')); - $model->set('gtf_field_name', 'label', $this->_('Name')); - if ($detailed) { - $model->set('gtf_field_code', 'label', $this->_('Code Name')); - $model->set('gtf_field_description', 'label', $this->_('Description')); - } - $model->set('gtf_field_values', 'label', $this->_('Values')); - $model->set('gtf_field_type', 'label', $this->_('Type'), 'multiOptions', $types); - $model->set('gtf_required', 'label', $this->_('Required'), 'multiOptions', $this->util->getTranslated()->getYesNo()); - if ($detailed) { - $model->set('gtf_readonly', 'label', $this->_('Readonly'), 'multiOptions', $this->util->getTranslated()->getYesNo()); - } - - Gems_Model::setChangeFieldsByPrefix($model, 'gtf'); - - if ($trackId) { - $model->set('gtf_id_track', 'default', $trackId); - } - - return $model; - } - public function getTopic($count = 1) { return $this->plural('field', 'fields', $count); Modified: trunk/library/classes/Gems/Default/TrackMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2012-07-20 16:57:56 UTC (rev 864) @@ -184,6 +184,7 @@ { $id = $this->_getIdParam(); $track = $this->loader->getTracker()->getTrackEngine($id); + $track->applyToMenuSource($this->menu->getParameterSource()); $where = $this->db->quoteInto('gr2t_id_track = ?', $id); $batch = $this->loader->getTracker()->checkTrackRounds('trackCheckRounds' . $id, $this->loader->getCurrentUser()->getUserId(), $where); @@ -339,7 +340,7 @@ * @param string $mode * @param array $keys */ - private function showList($mode, array $keys, $rowclassField) + private function showList($mode, array $keys, $rowclassField = null) { $action = $this->getRequest()->getActionName(); $this->getRequest()->setActionName($mode); Modified: trunk/library/classes/Gems/Default/TrackRoundsAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackRoundsAction.php 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/classes/Gems/Default/TrackRoundsAction.php 2012-07-20 16:57:56 UTC (rev 864) @@ -180,7 +180,15 @@ $model = $this->getModel(); $deleted = $model->delete(); + // Always perform delete, tokens may not be in use + $tokens = $this->db->delete('gems__tokens', $this->db->quoteInto('gto_id_round = ?', $roundId)); + $this->addMessage(sprintf($this->_('%2$u %1$s deleted'), $this->getTopic($deleted), $deleted)); + + if ($tokens) { + $this->addMessage(sprintf($this->plural('Also deleted %s unanswered token.', 'Also deleted %s unanswered tokens.', $tokens), $tokens)); + } + $this->_reroute(array('action' => 'index', MUtil_Model::REQUEST_ID => $this->_getIdParam()), true); } } elseif ($used) { Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/languages/default-en.po 2012-07-20 16:57:56 UTC (rev 864) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-20 18:30+0100\n" +"POT-Creation-Date: 2012-07-20 18:36+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -2633,50 +2633,50 @@ msgid "Check this box if this field is always set by code instead of the user." msgstr "Check this box if this field is always set by code instead of the user." -#: classes/Gems/Default/TrackFieldsAction.php:99 -#, php-format -msgid "Field also deleted from %s assigned track." -msgid_plural "Field also deleted from %s assigned tracks." -msgstr[0] "Field also deleted from %s assigned track." -msgstr[1] "Field also deleted from %s assigned tracks." - -#: classes/Gems/Default/TrackFieldsAction.php:105 -#, php-format -msgid "This field will be deleted from %s assigned track." -msgid_plural "This field will be deleted from %s assigned tracks." -msgstr[0] "This field will be deleted from %s assigned track." -msgstr[1] "This field will be deleted from %s assigned tracks." - -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Select one" msgstr "Select one" -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Select multiple" msgstr "Select multiple" -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Free text" msgstr "Free text" -#: classes/Gems/Default/TrackFieldsAction.php:149 +#: classes/Gems/Default/TrackFieldsAction.php:100 msgid "Code Name" msgstr "Code Name" -#: classes/Gems/Default/TrackFieldsAction.php:152 +#: classes/Gems/Default/TrackFieldsAction.php:103 #: classes/Gems/Default/TrackMaintenanceAction.php:227 msgid "Values" msgstr "Values" -#: classes/Gems/Default/TrackFieldsAction.php:154 +#: classes/Gems/Default/TrackFieldsAction.php:105 #: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Required" msgstr "Required" -#: classes/Gems/Default/TrackFieldsAction.php:156 +#: classes/Gems/Default/TrackFieldsAction.php:107 msgid "Readonly" msgstr "Readonly" +#: classes/Gems/Default/TrackFieldsAction.php:140 +#, php-format +msgid "Field also deleted from %s assigned track." +msgid_plural "Field also deleted from %s assigned tracks." +msgstr[0] "Field also deleted from %s assigned track." +msgstr[1] "Field also deleted from %s assigned tracks." + +#: classes/Gems/Default/TrackFieldsAction.php:146 +#, php-format +msgid "This field will be deleted from %s assigned track." +msgid_plural "This field will be deleted from %s assigned tracks." +msgstr[0] "This field will be deleted from %s assigned track." +msgstr[1] "This field will be deleted from %s assigned tracks." + #: classes/Gems/Default/TrackFieldsAction.php:170 msgid "field" msgid_plural "fields" @@ -2752,9 +2752,9 @@ #: classes/Gems/Default/TrackRoundAction.php:89 #: classes/Gems/Default/TrackRoundsAction.php:103 #: classes/Gems/Default/TrackRoundsAction.php:130 -#: classes/Gems/Default/TrackRoundsAction.php:201 -#: classes/Gems/Default/TrackRoundsAction.php:228 -#: classes/Gems/Default/TrackRoundsAction.php:272 +#: classes/Gems/Default/TrackRoundsAction.php:209 +#: classes/Gems/Default/TrackRoundsAction.php:236 +#: classes/Gems/Default/TrackRoundsAction.php:280 msgid "Missing track identifier." msgstr "Missing track identifier." @@ -2768,24 +2768,31 @@ msgid "%2$u %1$s deactivated" msgstr "%2$u %1$s deactivated" -#: classes/Gems/Default/TrackRoundsAction.php:187 +#: classes/Gems/Default/TrackRoundsAction.php:189 #, php-format +msgid "Also deleted %s unanswered token." +msgid_plural "Also deleted %s unanswered tokens." +msgstr[0] "Also deleted %s unanswered token." +msgstr[1] "Also deleted %s unanswered tokens." + +#: classes/Gems/Default/TrackRoundsAction.php:195 +#, php-format msgid "This round has been completed %s time." msgid_plural "This round has been completed %s times." msgstr[0] "This round has been completed %s time." msgstr[1] "This round has been completed %s times." -#: classes/Gems/Default/TrackRoundsAction.php:188 +#: classes/Gems/Default/TrackRoundsAction.php:196 msgid "This round cannot be deleted, only deactivated." msgstr "This round cannot be deleted, only deactivated." -#: classes/Gems/Default/TrackRoundsAction.php:214 +#: classes/Gems/Default/TrackRoundsAction.php:222 msgid "round" msgid_plural "rounds" msgstr[0] "round" msgstr[1] "rounds" -#: classes/Gems/Default/TrackRoundsAction.php:219 +#: classes/Gems/Default/TrackRoundsAction.php:227 msgid "Rounds" msgstr "Rounds" Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-07-20 16:33:41 UTC (rev 863) +++ trunk/library/languages/default-nl.po 2012-07-20 16:57:56 UTC (rev 864) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-20 18:24+0100\n" +"POT-Creation-Date: 2012-07-20 18:37+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -2633,50 +2633,50 @@ msgid "Check this box if this field is always set by code instead of the user." msgstr "Vink aan als dit veld altijd vanuit de code ingesteld wordt, in plaats van door gebruikers." -#: classes/Gems/Default/TrackFieldsAction.php:99 -#, php-format -msgid "Field also deleted from %s assigned track." -msgid_plural "Field also deleted from %s assigned tracks." -msgstr[0] "Veld ook verwijderd bij %s toegewezen traject." -msgstr[1] "Veld ook verwijderd bij %s toegewezen trajecten." - -#: classes/Gems/Default/TrackFieldsAction.php:105 -#, php-format -msgid "This field will be deleted from %s assigned track." -msgid_plural "This field will be deleted from %s assigned tracks." -msgstr[0] "Dit veld wordt bij %s toegewezen traject gebruikt en zal daar ook verwijderd worden." -msgstr[1] "Dit veld wordt bij %s toegewezen trajecten gebruikt en zal daar ook verwijderd worden." - -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Select one" msgstr "Kies één" -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Select multiple" msgstr "Meerkeuze vraag" -#: classes/Gems/Default/TrackFieldsAction.php:141 +#: classes/Gems/Default/TrackFieldsAction.php:92 msgid "Free text" msgstr "Vrije tekst" -#: classes/Gems/Default/TrackFieldsAction.php:149 +#: classes/Gems/Default/TrackFieldsAction.php:100 msgid "Code Name" msgstr "Code Naam" -#: classes/Gems/Default/TrackFieldsAction.php:152 +#: classes/Gems/Default/TrackFieldsAction.php:103 #: classes/Gems/Default/TrackMaintenanceAction.php:227 msgid "Values" msgstr "Waarden" -#: classes/Gems/Default/TrackFieldsAction.php:154 +#: classes/Gems/Default/TrackFieldsAction.php:105 #: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Required" msgstr "Verplicht" -#: classes/Gems/Default/TrackFieldsAction.php:156 +#: classes/Gems/Default/TrackFieldsAction.php:107 msgid "Readonly" msgstr "Alleen lezen" +#: classes/Gems/Default/TrackFieldsAction.php:140 +#, php-format +msgid "Field also deleted from %s assigned track." +msgid_plural "Field also deleted from %s assigned tracks." +msgstr[0] "Veld ook verwijderd bij %s toegewezen traject." +msgstr[1] "Veld ook verwijderd bij %s toegewezen trajecten." + +#: classes/Gems/Default/TrackFieldsAction.php:146 +#, php-format +msgid "This field will be deleted from %s assigned track." +msgid_plural "This field will be deleted from %s assigned tracks." +msgstr[0] "Dit veld wordt bij %s toegewezen traject gebruikt en zal daar ook verwijderd worden." +msgstr[1] "Dit veld wordt bij %s toegewezen trajecten gebruikt en zal daar ook verwijderd worden." + #: classes/Gems/Default/TrackFieldsAction.php:170 msgid "field" msgid_plural "fields" @@ -2752,9 +2752,9 @@ #: classes/Gems/Default/TrackRoundAction.php:89 #: classes/Gems/Default/TrackRoundsAction.php:103 #: classes/Gems/Default/TrackRoundsAction.php:130 -#: classes/Gems/Default/TrackRoundsAction.php:201 -#: classes/Gems/Default/TrackRoundsAction.php:228 -#: classes/Gems/Default/TrackRoundsAction.php:267 +#: classes/Gems/Default/TrackRoundsAction.php:209 +#: classes/Gems/Default/TrackRoundsAction.php:236 +#: classes/Gems/Default/TrackRoundsAction.php:280 msgid "Missing track identifier." msgstr "Ontbrekende traject identificatie." @@ -2768,24 +2768,31 @@ msgid "%2$u %1$s deactivated" msgstr "%2$u %1$s gedeactiveerd" -#: classes/Gems/Default/TrackRoundsAction.php:187 +#: classes/Gems/Default/TrackRoundsAction.php:189 #, php-format +msgid "Also deleted %s unanswered token." +msgid_plural "Also deleted %s unanswered tokens." +msgstr[0] "Ook %s onbeantwoord kenmerk is verwijderd." +msgstr[1] "Ook %s onbeantwoorde kenmerken zijn verwijderd." + +#: classes/Gems/Default/TrackRoundsAction.php:195 +#, php-format msgid "This round has been completed %s time." msgid_plural "This round has been completed %s times." msgstr[0] "Deze ronde is al %s keer afgerond." msgstr[1] "Deze ronde is al %s keren afgerond." -#: classes/Gems/Default/TrackRoundsAction.php:188 +#: classes/Gems/Default/TrackRoundsAction.php:196 msgid "This round cannot be deleted, only deactivated." msgstr "Dit kenmerk kan niet (meer) verwijderd worden, alleen gedeactiveerd." -#: classes/Gems/Default/TrackRoundsAction.php:251 +#: classes/Gems/Default/TrackRoundsAction.php:222 msgid "round" msgid_plural "rounds" msgstr[0] "ronde" msgstr[1] "rondes" -#: classes/Gems/Default/TrackRoundsAction.php:256 +#: classes/Gems/Default/TrackRoundsAction.php:227 msgid "Rounds" msgstr "Rondes" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-08-23 13:37:47
|
Revision: 901 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=901&view=rev Author: matijsdejong Date: 2012-08-23 13:37:41 +0000 (Thu, 23 Aug 2012) Log Message: ----------- Added some indices for faster database access Modified Paths: -------------- trunk/library/classes/GemsEscort.php trunk/library/configs/db/patches.sql trunk/library/configs/db/tables/gems__respondent2org.50.sql trunk/library/configs/db/tables/gems__tokens.200.sql trunk/library/configs/db/tables/gems__tracks.30.sql Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-08-22 10:53:51 UTC (rev 900) +++ trunk/library/classes/GemsEscort.php 2012-08-23 13:37:41 UTC (rev 901) @@ -520,7 +520,12 @@ return $view; } - /*protected function _initZFDebug() + /** + * Add ZFDebug info to the page output. + * + * @return void + * / + protected function _initZFDebug() { // if ((APPLICATION_ENV === 'development') && if ((APPLICATION_ENV !== 'production') && Modified: trunk/library/configs/db/patches.sql =================================================================== --- trunk/library/configs/db/patches.sql 2012-08-22 10:53:51 UTC (rev 900) +++ trunk/library/configs/db/patches.sql 2012-08-23 13:37:41 UTC (rev 901) @@ -419,4 +419,12 @@ ALTER TABLE `gems__surveys` ADD gsu_code varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' NULL AFTER gsu_duration; -- PATCH: Assign deletion of track parts to super role -UPDATE gems__roles SET grl_privileges = CONCAT(grl_privileges,',pr.track-maintenance.delete') WHERE grl_privileges NOT LIKE '%pr.track-maintenance.edit%' AND grl_privileges NOT LIKE '%pr.track-maintenance.delete%'; \ No newline at end of file +UPDATE gems__roles SET grl_privileges = CONCAT(grl_privileges,',pr.track-maintenance.delete') WHERE grl_privileges NOT LIKE '%pr.track-maintenance.edit%' AND grl_privileges NOT LIKE '%pr.track-maintenance.delete%'; + +-- GEMS VERSION: 49 +-- PATCH: Speed up show respondent +ALTER TABLE `gems__respondent2org` ADD INDEX ( `gr2o_reception_code` ); +ALTER TABLE `gems__tokens` ADD INDEX ( `gto_round_order` ); +ALTER TABLE `gems__tokens` ADD INDEX ( `gto_valid_from`, `gto_valid_until` ); +ALTER TABLE `gems__tokens` ADD INDEX ( `gto_completion_time` ); +ALTER TABLE `gems__tracks` ADD INDEX ( `gtr_track_name` ); \ No newline at end of file Modified: trunk/library/configs/db/tables/gems__respondent2org.50.sql =================================================================== --- trunk/library/configs/db/tables/gems__respondent2org.50.sql 2012-08-22 10:53:51 UTC (rev 900) +++ trunk/library/configs/db/tables/gems__respondent2org.50.sql 2012-08-23 13:37:41 UTC (rev 901) @@ -1,23 +1,23 @@ CREATE TABLE if not exists gems__respondent2org ( gr2o_patient_nr varchar(7) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, - gr2o_id_organization bigint unsigned not null + gr2o_id_organization bigint unsigned not null references gems__organizations (gor_id_organization), - - gr2o_id_user bigint unsigned not null + + gr2o_id_user bigint unsigned not null references gems__respondents (grs_id_user), - + -- gr2o_id_physician bigint unsigned null -- references gems_staff (gsf_id_user), - + -- gr2o_treatment varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, -- gr2o_comments text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - + gr2o_consent varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'Unknown' references gems__consents (gco_description), gr2o_reception_code varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' default 'OK' not null references gems__reception_codes (grc_id_reception_code), - + gr2o_opened timestamp not null default current_timestamp on update current_timestamp, gr2o_opened_by bigint unsigned not null, gr2o_changed timestamp not null, @@ -25,9 +25,10 @@ gr2o_created timestamp not null, gr2o_created_by bigint unsigned not null, - PRIMARY KEY (gr2o_patient_nr, gr2o_id_organization), + PRIMARY KEY (gr2o_patient_nr, gr2o_id_organization), UNIQUE KEY (gr2o_id_user, gr2o_id_organization), - INDEX (gr2o_opened) + INDEX (gr2o_opened), + INDEX (gr2o_reception_code) ) ENGINE=InnoDB CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; Modified: trunk/library/configs/db/tables/gems__tokens.200.sql =================================================================== --- trunk/library/configs/db/tables/gems__tokens.200.sql 2012-08-22 10:53:51 UTC (rev 900) +++ trunk/library/configs/db/tables/gems__tokens.200.sql 2012-08-23 13:37:41 UTC (rev 901) @@ -53,7 +53,9 @@ INDEX (gto_id_track), INDEX (gto_id_round), INDEX (gto_in_source), - INDEX (gto_id_respondent_track, gto_round_order) + INDEX (gto_id_respondent_track, gto_round_order), + INDEX (gto_valid_from, gto_valid_until), + INDEX (gto_completion_time) ) ENGINE=InnoDB CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; Modified: trunk/library/configs/db/tables/gems__tracks.30.sql =================================================================== --- trunk/library/configs/db/tables/gems__tracks.30.sql 2012-08-22 10:53:51 UTC (rev 900) +++ trunk/library/configs/db/tables/gems__tracks.30.sql 2012-08-23 13:37:41 UTC (rev 901) @@ -28,6 +28,7 @@ gtr_created_by bigint unsigned not null, PRIMARY KEY (gtr_id_track), + INDEX (gtr_track_name), INDEX (gtr_active) ) ENGINE=InnoDB This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-09-06 09:39:24
|
Revision: 929 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=929&view=rev Author: matijsdejong Date: 2012-09-06 09:39:13 +0000 (Thu, 06 Sep 2012) Log Message: ----------- Events can now be specified at the GemsTracker level as well as the project level Started on answer display 'event' Modified Paths: -------------- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php trunk/library/classes/Gems/Events.php trunk/library/classes/Gems/Versions.php trunk/library/configs/db/patches.sql trunk/library/configs/db/tables/gems__surveys.30.sql trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Added Paths: ----------- trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php trunk/library/events/ trunk/library/events/survey/ trunk/library/events/survey/beforeanswering/ trunk/library/events/survey/beforeanswering/GetPreviousAnswers.php trunk/library/events/survey/completed/ trunk/library/events/survey/completed/BmiCalculation.php trunk/library/events/survey/display/ Modified: trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/classes/Gems/Default/SurveyMaintenanceAction.php 2012-09-06 09:39:13 UTC (rev 929) @@ -127,6 +127,7 @@ $bridge->addText( 'gsu_code'); $bridge->addSelect( 'gsu_beforeanswering_event'); $bridge->addSelect( 'gsu_completed_event'); + $bridge->addSelect( 'gsu_display_event'); $bridge->addFile( 'new_pdf', 'label', $this->_('Upload new PDF'), 'accept', 'application/pdf', @@ -442,6 +443,7 @@ $model->set('gsu_beforeanswering_event', 'label', $this->_('Before answering'), 'multiOptions', $events->listSurveyBeforeAnsweringEvents()); $model->set('gsu_completed_event', 'label', $this->_('After completion'), 'multiOptions', $events->listSurveyCompletionEvents()); + $model->set('gsu_display_event', 'label', $this->_('Answer display'), 'multiOptions', $events->listSurveyDisplayEvents()); } $model->setCreate(false); Added: trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php =================================================================== --- trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php (rev 0) +++ trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php 2012-09-06 09:39:13 UTC (rev 929) @@ -0,0 +1,51 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Event + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: SurveyCompletedEventInterface.php 59 2011-09-22 07:23:44Z mennodekker $ + */ + +/** + * Survey display event interface. + * + * Just a snippet with extra event code. + * + * @package Gems + * @subpackage Event + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.5.6 + */ +interface Gems_Event_SurveyDisplayEventInterface extends Gems_Event_EventInterface, MUtil_Snippets_SnippetInterface +{ +} Modified: trunk/library/classes/Gems/Events.php =================================================================== --- trunk/library/classes/Gems/Events.php 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/classes/Gems/Events.php 2012-09-06 09:39:13 UTC (rev 929) @@ -52,6 +52,7 @@ const ROUND_CHANGED_EVENT = 'round/changed'; const SURVEY_BEFORE_ANSWERING_EVENT = 'survey/beforeanswering'; const SURVEY_COMPLETION_EVENT = 'survey/completed'; + const SURVEY_DISPLAY_EVENT = 'survey/display'; /** * Each event type must implement an event class or interface derived @@ -66,6 +67,7 @@ self::ROUND_CHANGED_EVENT => 'Gems_Event_RoundChangedEventInterface', self::SURVEY_BEFORE_ANSWERING_EVENT => 'Gems_Event_SurveyBeforeAnsweringEventInterface', self::SURVEY_COMPLETION_EVENT => 'Gems_Event_SurveyCompletedEventInterface', + self::SURVEY_DISPLAY_EVENT => 'Gems_Event_SurveyDisplayEventInterface', ); /** @@ -100,34 +102,42 @@ */ protected function _listEvents($eventType) { - $path = APPLICATION_PATH . '/' . self::EVENTS_DIR . '/' . $eventType; - $results = $this->util->getTranslated()->getEmptyDropdownArray(); + $paths[] = APPLICATION_PATH . '/' . self::EVENTS_DIR . '/' . $eventType; + $paths[] = GEMS_LIBRARY_DIR . '/' . self::EVENTS_DIR . '/' . $eventType; + $results = array(); $eventClass = $this->_getEventClass($eventType); - if (file_exists($path)) { - $eDir = dir($path); + foreach ($paths as $path) { + if (file_exists($path)) { + $eDir = dir($path); - while (false !== ($filename = $eDir->read())) { - if ('.php' === substr($filename, -4)) { - $eventName = substr($filename, 0, -4); + while (false !== ($filename = $eDir->read())) { + if ('.php' === substr($filename, -4)) { + $eventName = substr($filename, 0, -4); - if (! class_exists($eventName)) { - include($path . '/' . $filename); - } + // Take care of double definitions + if (! isset($results[$eventName])) { + if (! class_exists($eventName)) { + include($path . '/' . $filename); + } - $event = new $eventName(); + $event = new $eventName(); - if ($event instanceof $eventClass) { - if ($event instanceof MUtil_Registry_TargetInterface) { - $this->applySource($event); + if ($event instanceof $eventClass) { + if ($event instanceof MUtil_Registry_TargetInterface) { + $this->applySource($event); + } + + $results[$eventName] = $event->getEventName(); + } + // MUtil_Echo::track($eventName); } - - $results[$eventName] = $event->getEventName(); } - // MUtil_Echo::track($eventName); } } } + natcasesort($results); + $results = $this->util->getTranslated()->getEmptyDropdownArray() + $results; return $results; } @@ -167,7 +177,7 @@ /** * - * @return Gems_Event_RoundChangedEventInterface + * @return array eventname => string */ public function listRoundChangedEvents() { @@ -176,7 +186,7 @@ /** * - * @return Gems_Event_SurveyCompletedEventInterface + * @return array eventname => string */ public function listSurveyBeforeAnsweringEvents() { @@ -185,7 +195,7 @@ /** * - * @return Gems_Event_SurveyCompletedEventInterface + * @return array eventname => string */ public function listSurveyCompletionEvents() { @@ -194,8 +204,17 @@ /** * - * @return Gems_Event_TrackCompletedEventInterface + * @return array eventname => string */ + public function listSurveyDisplayEvents() + { + return $this->_listEvents(self::SURVEY_DISPLAY_EVENT); + } + + /** + * + * @return array eventname => string + */ public function listTrackCompletionEvents() { return $this->_listEvents(self::TRACK_COMPLETION_EVENT); Modified: trunk/library/classes/Gems/Versions.php =================================================================== --- trunk/library/classes/Gems/Versions.php 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/classes/Gems/Versions.php 2012-09-06 09:39:13 UTC (rev 929) @@ -59,7 +59,7 @@ * This means that future patches for the current level * will be loaded, but that previous patches are ignored. */ - return 48; + return 49; } /** @@ -69,7 +69,7 @@ */ public final function getGemsVersion() { - return '1.5.5'; + return '1.5.6'; } /** Modified: trunk/library/configs/db/patches.sql =================================================================== --- trunk/library/configs/db/patches.sql 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/configs/db/patches.sql 2012-09-06 09:39:13 UTC (rev 929) @@ -427,4 +427,7 @@ ALTER TABLE `gems__tokens` ADD INDEX ( `gto_round_order` ); ALTER TABLE `gems__tokens` ADD INDEX ( `gto_valid_from`, `gto_valid_until` ); ALTER TABLE `gems__tokens` ADD INDEX ( `gto_completion_time` ); -ALTER TABLE `gems__tracks` ADD INDEX ( `gtr_track_name` ); \ No newline at end of file +ALTER TABLE `gems__tracks` ADD INDEX ( `gtr_track_name` ); + +-- PATCH: Add snippet class to gems +ALTER TABLE `gems__surveys` ADD gsu_display_event varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' AFTER gsu_completed_event; Modified: trunk/library/configs/db/tables/gems__surveys.30.sql =================================================================== --- trunk/library/configs/db/tables/gems__surveys.30.sql 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/configs/db/tables/gems__surveys.30.sql 2012-09-06 09:39:13 UTC (rev 929) @@ -12,9 +12,10 @@ gsu_token_table varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', -- end depreciated - gsu_survey_pdf varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + gsu_survey_pdf varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', gsu_beforeanswering_event varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', - gsu_completed_event varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + gsu_completed_event varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + gsu_display_event varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', gsu_id_source int unsigned not null references gems__sources (gso_id_source), @@ -38,7 +39,7 @@ gsu_duration varchar(50) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', gsu_code varchar(64) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - + gsu_changed timestamp not null default current_timestamp on update current_timestamp, gsu_changed_by bigint unsigned not null, gsu_created timestamp not null, Added: trunk/library/events/survey/beforeanswering/GetPreviousAnswers.php =================================================================== --- trunk/library/events/survey/beforeanswering/GetPreviousAnswers.php (rev 0) +++ trunk/library/events/survey/beforeanswering/GetPreviousAnswers.php 2012-09-06 09:39:13 UTC (rev 929) @@ -0,0 +1,93 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Events + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: Sample.php 203 2011-07-07 12:51:32Z matijs $ + */ + +/** + * This events look for a previous copy of the same + * + * + * @package Gems + * @subpackage Events + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.4.4 + */ +class GetPreviousAnswers extends MUtil_Registry_TargetAbstract implements Gems_Event_SurveyBeforeAnsweringEventInterface +{ + /** + * Set as this is a MUtil_Registry_TargetInterface + * + * @var Zend_Translate $translate + */ + protected $translate; + + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return $this->translate->_('Previous Version Answers Lookup'); + } + + /** + * Process the data and return the answers that should be filled in beforehand. + * + * Storing the changed values is handled by the calling function. + * + * @param Gems_Tracker_Token $token Gems token object + * @return array Containing the changed values + */ + public function processTokenInsertion(Gems_Tracker_Token $token) + { + if ($token->hasSuccesCode() && (! $token->isCompleted())) { + // Preparation for a more general object class + $surveyId = $token->getSurveyId(); + + $prev = $token; + while ($prev = $prev->getPreviousToken()) { + + if ($prev->hasSuccesCode() && $prev->isCompleted()) { + // Check first on survey id and when that does not work by name. + if ($prev->getSurveyId() == $surveyId) { + return $prev->getRawAnswers(); + } + } + } + } + } +} Added: trunk/library/events/survey/completed/BmiCalculation.php =================================================================== --- trunk/library/events/survey/completed/BmiCalculation.php (rev 0) +++ trunk/library/events/survey/completed/BmiCalculation.php 2012-09-06 09:39:13 UTC (rev 929) @@ -0,0 +1,83 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Events + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: Sample.php 203 2011-07-07 12:51:32Z matijs $ + */ + +/** + * Calculates someones BMI from LENGTH and WEIGHT. + * + * @package Gems + * @subpackage Events + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.4 + */ +class BmiCalculation // extends MUtil_Registry_TargetAbstract + implements Gems_Event_SurveyCompletedEventInterface +{ + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return "Bmi Calculation"; + } + + /** + * Process the data and return the answers that should be changed. + * + * Storing the changed values is handled by the calling function. + * + * @param Gems_Tracker_Token $token Gems token object + * @return array Containing the changed values + */ + public function processTokenData(Gems_Tracker_Token $token) + { + $tokenAnswers = $token->getRawAnswers(); + + if (isset($tokenAnswers['LENGTH'], $tokenAnswers['WEIGHT']) && $tokenAnswers['LENGTH'] && $tokenAnswers['WEIGHT']) { + $length = $tokenAnswers['LENGTH'] / 100; + $newValue = round($tokenAnswers['WEIGHT'] / ($length * $length), 2); + + if ($newValue !== $tokenAnswers['BMI']) { + return array('BMI' => $newValue); + } + } + + return false; + } +} Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/languages/default-en.po 2012-09-06 09:39:13 UTC (rev 929) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-08-20 16:12+0100\n" +"POT-Creation-Date: 2012-09-06 11:29+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" +"Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "Language: en_GB\n" "MIME-Version: 1.0\n" @@ -21,33 +21,33 @@ msgid "Path %s not writable" msgstr "Path %s not writable" -#: classes/GemsEscort.php:601 +#: classes/GemsEscort.php:606 msgid " > " msgstr " > " -#: classes/GemsEscort.php:796 +#: classes/GemsEscort.php:801 #, php-format msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:798 classes/Gems/Menu.php:263 +#: classes/GemsEscort.php:803 classes/Gems/Menu.php:263 msgid "Logoff" msgstr "Logoff" -#: classes/GemsEscort.php:801 +#: classes/GemsEscort.php:806 msgid "You are not logged in" msgstr "You are not logged in" -#: classes/GemsEscort.php:989 +#: classes/GemsEscort.php:994 #, php-format msgid "User: %s" msgstr "User: %s" -#: classes/GemsEscort.php:1014 +#: classes/GemsEscort.php:1019 msgid "version" msgstr "version" -#: classes/GemsEscort.php:1460 +#: classes/GemsEscort.php:1465 msgid "" "Take note: your session has expired, your inputs were not saved. Please " "check the input data and try again" @@ -55,43 +55,43 @@ "Take note: your session has expired, your inputs were not saved. Please " "check the input data and try again" -#: classes/GemsEscort.php:1589 +#: classes/GemsEscort.php:1594 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1591 classes/GemsEscort.php:1595 -#: classes/GemsEscort.php:1596 +#: classes/GemsEscort.php:1596 classes/GemsEscort.php:1600 +#: classes/GemsEscort.php:1601 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" -#: classes/GemsEscort.php:1606 +#: classes/GemsEscort.php:1611 msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1608 classes/GemsEscort.php:1651 +#: classes/GemsEscort.php:1613 classes/GemsEscort.php:1656 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1624 classes/Gems/Default/StaffAction.php:317 +#: classes/GemsEscort.php:1629 classes/Gems/Default/StaffAction.php:317 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1626 classes/Gems/Default/OrganizationAction.php:94 +#: classes/GemsEscort.php:1631 classes/Gems/Default/OrganizationAction.php:94 #: classes/Gems/Default/StaffAction.php:318 #: classes/Gems/Model/HiddenOrganizationModel.php:115 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1636 classes/GemsEscort.php:1649 +#: classes/GemsEscort.php:1641 classes/GemsEscort.php:1654 msgid "You are no longer logged in." msgstr "You are no longer logged in." -#: classes/GemsEscort.php:1637 +#: classes/GemsEscort.php:1642 msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1778 classes/GemsEscort.php:1780 +#: classes/GemsEscort.php:1783 classes/GemsEscort.php:1785 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -201,9 +201,9 @@ msgstr "Groups" #: classes/Gems/Menu.php:204 -#: classes/Gems/Default/SurveyMaintenanceAction.php:202 +#: classes/Gems/Default/SurveyMaintenanceAction.php:203 #: classes/Gems/Default/TrackMaintenanceAction.php:131 -#: classes/Gems/Email/MailTemplateForm.php:103 +#: classes/Gems/Email/MailTemplateForm.php:101 #: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:140 msgid "Organizations" msgstr "Organizations" @@ -326,8 +326,8 @@ msgstr "Add" #: classes/Gems/Menu.php:324 classes/Gems/Menu.php:424 -#: classes/Gems/Email/EmailFormAbstract.php:282 -#: classes/Gems/Email/EmailFormAbstract.php:293 +#: classes/Gems/Email/EmailFormAbstract.php:280 +#: classes/Gems/Email/EmailFormAbstract.php:291 #: classes/Gems/Menu/MenuAbstract.php:367 #: classes/Gems/Menu/MenuAbstract.php:380 msgid "Preview" @@ -353,7 +353,7 @@ msgstr "Delete" #: classes/Gems/Menu.php:378 -#: classes/Gems/Default/SurveyMaintenanceAction.php:561 +#: classes/Gems/Default/SurveyMaintenanceAction.php:563 #: classes/Gems/Menu/MenuAbstract.php:383 #: classes/Gems/Menu/MenuAbstract.php:445 #: classes/Gems/Tracker/Model/TrackModel.php:100 @@ -474,7 +474,7 @@ #: classes/Gems/Default/RoleAction.php:231 #: classes/Gems/Default/SourceAction.php:195 #: classes/Gems/Default/StaffAction.php:328 -#: classes/Gems/Default/SurveyMaintenanceAction.php:411 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 #: classes/Gems/Default/TokenPlanAction.php:121 #: classes/Gems/Default/TrackFieldsAction.php:98 #: classes/Gems/Default/TrackMaintenanceAction.php:227 @@ -661,14 +661,14 @@ msgstr "New %1$s..." #: classes/Gems/Controller/BrowseEditAction.php:905 -#: classes/Gems/Email/MailTemplateForm.php:110 +#: classes/Gems/Email/MailTemplateForm.php:108 #: classes/Gems/User/Form/ChangePasswordForm.php:341 #: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:245 msgid "Save" msgstr "Save" #: classes/Gems/Controller/BrowseEditAction.php:941 -#: classes/Gems/Default/MailTemplateAction.php:118 +#: classes/Gems/Default/MailTemplateAction.php:116 #: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:209 #, php-format msgid "%2$u %1$s saved" @@ -684,13 +684,13 @@ msgstr "Input error! No changes saved!" #: classes/Gems/Controller/BrowseEditAction.php:981 -#: classes/Gems/Default/SurveyMaintenanceAction.php:590 +#: classes/Gems/Default/SurveyMaintenanceAction.php:592 #, php-format msgid "Show %s" msgstr "Show %s" #: classes/Gems/Controller/BrowseEditAction.php:988 -#: classes/Gems/Default/SurveyMaintenanceAction.php:599 +#: classes/Gems/Default/SurveyMaintenanceAction.php:601 #, php-format msgid "Unknown %s." msgstr "Unknown %s." @@ -810,8 +810,8 @@ #: classes/Gems/Default/GroupAction.php:88 #: classes/Gems/Default/ReceptionAction.php:81 #: classes/Gems/Default/RoleAction.php:232 -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:413 #: classes/Gems/Default/TrackActionAbstract.php:200 #: classes/Gems/Default/TrackFieldsAction.php:101 #: classes/Gems/Default/UpgradeAction.php:176 @@ -885,15 +885,15 @@ msgid "Links concerning this web application:" msgstr "Links concerning this web application:" -#: classes/Gems/Default/CronAction.php:138 +#: classes/Gems/Default/CronAction.php:148 msgid "Cron jobs turned off." msgstr "Cron jobs turned off." -#: classes/Gems/Default/CronAction.php:211 +#: classes/Gems/Default/CronAction.php:223 msgid "No mails sent." msgstr "No mails sent." -#: classes/Gems/Default/CronAction.php:214 +#: classes/Gems/Default/CronAction.php:226 #: classes/Gems/Email/MultiMailForm.php:49 #: classes/Gems/Email/OneMailForm.php:47 msgid "On this test system all mail will be delivered to the from address." @@ -911,14 +911,13 @@ msgstr "No rows in %s." #: classes/Gems/Default/DatabaseAction.php:134 -#: classes/Gems/Default/MailTemplateAction.php:70 #: classes/Gems/Default/TrackFieldsAction.php:104 #: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Type" msgstr "Type" #: classes/Gems/Default/DatabaseAction.php:138 -#: classes/Gems/Default/SurveyMaintenanceAction.php:433 +#: classes/Gems/Default/SurveyMaintenanceAction.php:434 msgid "Group" msgstr "Group" @@ -1234,8 +1233,8 @@ #: classes/Gems/Default/OrganizationAction.php:139 #: classes/Gems/Default/ReceptionAction.php:88 #: classes/Gems/Default/SourceAction.php:101 -#: classes/Gems/Default/SurveyMaintenanceAction.php:424 -#: classes/Gems/Default/SurveyMaintenanceAction.php:478 +#: classes/Gems/Default/SurveyMaintenanceAction.php:425 +#: classes/Gems/Default/SurveyMaintenanceAction.php:480 #: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:742 #: classes/Gems/Tracker/Model/TrackModel.php:102 #: classes/Gems/Util/TrackData.php:147 @@ -1466,7 +1465,7 @@ #: classes/Gems/Default/LogAction.php:192 #: classes/Gems/Default/MailTemplateAction.php:66 -#: classes/Gems/Email/EmailFormAbstract.php:170 +#: classes/Gems/Email/EmailFormAbstract.php:168 msgid "Message" msgstr "Message" @@ -1507,7 +1506,7 @@ #: classes/Gems/Default/MailJobAction.php:78 #: classes/Gems/Default/MailLogAction.php:118 -#: classes/Gems/Email/EmailFormAbstract.php:310 +#: classes/Gems/Email/EmailFormAbstract.php:308 msgid "Template" msgstr "Template" @@ -1630,7 +1629,7 @@ #: classes/Gems/Default/MailLogAction.php:115 #: classes/Gems/Default/MailTemplateAction.php:62 -#: classes/Gems/Email/EmailFormAbstract.php:351 +#: classes/Gems/Email/EmailFormAbstract.php:349 msgid "Subject" msgstr "Subject" @@ -1713,20 +1712,20 @@ msgid "Email servers" msgstr "Email servers" -#: classes/Gems/Default/MailTemplateAction.php:78 +#: classes/Gems/Default/MailTemplateAction.php:76 #: classes/Gems/Default/RespondentAction.php:349 #: classes/Gems/Default/StaffAction.php:335 #: classes/Gems/Default/StaffAction.php:405 msgid "(all organizations)" msgstr "(all organizations)" -#: classes/Gems/Default/MailTemplateAction.php:97 +#: classes/Gems/Default/MailTemplateAction.php:95 msgid "email template" msgid_plural "email templates" msgstr[0] "email template" msgstr[1] "email templates" -#: classes/Gems/Default/MailTemplateAction.php:102 +#: classes/Gems/Default/MailTemplateAction.php:100 msgid "Email templates" msgstr "Email templates" @@ -1809,7 +1808,7 @@ msgstr "Can the organization be used?" #: classes/Gems/Default/OrganizationAction.php:140 -#: classes/Gems/User/Form/LoginForm.php:151 views/scripts/index/login.phtml:7 +#: classes/Gems/User/Form/LoginForm.php:151 msgid "Login" msgstr "Login" @@ -1859,12 +1858,12 @@ msgstr "Checked organizations see this organizations patients." #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:441 +#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Code name" msgstr "Code name" #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:441 +#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Only for programmers." msgstr "Only for programmers." @@ -1890,7 +1889,7 @@ #: classes/Gems/Default/OverviewPlanAction.php:115 #: classes/Gems/Default/ProjectSurveysAction.php:88 #: classes/Gems/Default/SurveyAction.php:207 -#: classes/Gems/Default/SurveyMaintenanceAction.php:556 +#: classes/Gems/Default/SurveyMaintenanceAction.php:558 #: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:157 msgid "survey" msgid_plural "surveys" @@ -2024,9 +2023,9 @@ #: classes/Gems/Default/ProjectTracksAction.php:67 #: classes/Gems/Default/SurveyAction.php:193 #: classes/Gems/Default/TrackAction.php:330 -#: classes/Gems/Email/EmailFormAbstract.php:195 -#: classes/Gems/Email/EmailFormAbstract.php:253 -#: classes/Gems/Email/MailTemplateForm.php:83 +#: classes/Gems/Email/EmailFormAbstract.php:193 +#: classes/Gems/Email/EmailFormAbstract.php:251 +#: classes/Gems/Email/MailTemplateForm.php:81 #: classes/Gems/Tracker/Model/TrackModel.php:103 msgid "From" msgstr "From" @@ -2634,31 +2633,31 @@ msgid "Duration calculated" msgstr "Duration calculated" -#: classes/Gems/Default/SurveyMaintenanceAction.php:131 +#: classes/Gems/Default/SurveyMaintenanceAction.php:132 msgid "Upload new PDF" msgstr "Upload new PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:139 +#: classes/Gems/Default/SurveyMaintenanceAction.php:140 msgid "Usage" msgstr "Usage" -#: classes/Gems/Default/SurveyMaintenanceAction.php:154 +#: classes/Gems/Default/SurveyMaintenanceAction.php:155 msgid "Single Survey Assignment" msgstr "Single Survey Assignment" -#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:200 msgid "Assignable since" msgstr "Assignable since" -#: classes/Gems/Default/SurveyMaintenanceAction.php:200 +#: classes/Gems/Default/SurveyMaintenanceAction.php:201 msgid "Assignable until" msgstr "Assignable until" -#: classes/Gems/Default/SurveyMaintenanceAction.php:206 +#: classes/Gems/Default/SurveyMaintenanceAction.php:207 msgid "Create Single Survey" msgstr "Create Single Survey" -#: classes/Gems/Default/SurveyMaintenanceAction.php:210 +#: classes/Gems/Default/SurveyMaintenanceAction.php:211 msgid "" "At the moment this survey can only be assigned to respondents as part of an " "existing track." @@ -2666,132 +2665,136 @@ "At the moment this survey can only be assigned to paitents as part of an " "existing track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:265 +#: classes/Gems/Default/SurveyMaintenanceAction.php:266 msgid "Survey should be assigned to a group before making it active." msgstr "Survey should be assigned to a group before making it active." -#: classes/Gems/Default/SurveyMaintenanceAction.php:295 +#: classes/Gems/Default/SurveyMaintenanceAction.php:296 #, php-format msgid "Answered surveys: %d." msgstr "Answered surveys: %d." -#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 #, php-format msgid "Average answer time: %s." msgstr "Average answer time: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#: classes/Gems/Default/SurveyMaintenanceAction.php:298 #, php-format msgid "Standard deviation: %s." msgstr "Standard deviation: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:313 +#: classes/Gems/Default/SurveyMaintenanceAction.php:314 #, php-format msgid "Median value: %s." msgstr "Median value: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:320 +#: classes/Gems/Default/SurveyMaintenanceAction.php:321 msgid "incalculable" msgstr "incalculable" -#: classes/Gems/Default/SurveyMaintenanceAction.php:333 +#: classes/Gems/Default/SurveyMaintenanceAction.php:334 #, php-format msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:337 +#: classes/Gems/Default/SurveyMaintenanceAction.php:338 msgid "This task checks all tokens for this survey." msgstr "This task checks all tokens for this survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:347 +#: classes/Gems/Default/SurveyMaintenanceAction.php:348 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:350 +#: classes/Gems/Default/SurveyMaintenanceAction.php:351 msgid "This task checks all tokens for all surveys." msgstr "This task checks all tokens for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:406 +#: classes/Gems/Default/SurveyMaintenanceAction.php:407 #: classes/Gems/Tracker/Form/AskTokenForm.php:98 #: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:150 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:414 +#: classes/Gems/Default/SurveyMaintenanceAction.php:415 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 -#: classes/Gems/Default/SurveyMaintenanceAction.php:439 +#: classes/Gems/Default/SurveyMaintenanceAction.php:417 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "Duration description" msgstr "Duration description" -#: classes/Gems/Default/SurveyMaintenanceAction.php:416 -#: classes/Gems/Default/SurveyMaintenanceAction.php:439 +#: classes/Gems/Default/SurveyMaintenanceAction.php:417 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." msgstr "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." -#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:419 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:421 +#: classes/Gems/Default/SurveyMaintenanceAction.php:422 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:422 +#: classes/Gems/Default/SurveyMaintenanceAction.php:423 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:429 +#: classes/Gems/Default/SurveyMaintenanceAction.php:430 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:438 +#: classes/Gems/Default/SurveyMaintenanceAction.php:439 msgid "Result field" msgstr "Result field" -#: classes/Gems/Default/SurveyMaintenanceAction.php:443 +#: classes/Gems/Default/SurveyMaintenanceAction.php:444 msgid "Before answering" msgstr "Before answering" -#: classes/Gems/Default/SurveyMaintenanceAction.php:444 +#: classes/Gems/Default/SurveyMaintenanceAction.php:445 #: classes/Gems/Tracker/Model/TrackModel.php:108 msgid "After completion" msgstr "After completion" -#: classes/Gems/Default/SurveyMaintenanceAction.php:473 +#: classes/Gems/Default/SurveyMaintenanceAction.php:446 +msgid "Answer display" +msgstr "Answer display" + +#: classes/Gems/Default/SurveyMaintenanceAction.php:475 msgid "(all groups)" msgstr "(all groups)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:479 +#: classes/Gems/Default/SurveyMaintenanceAction.php:481 msgid "OK in source, not active" msgstr "OK in source, not active" -#: classes/Gems/Default/SurveyMaintenanceAction.php:480 +#: classes/Gems/Default/SurveyMaintenanceAction.php:482 msgid "Blocked in source" msgstr "Blocked in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:482 +#: classes/Gems/Default/SurveyMaintenanceAction.php:484 msgid "(every state)" msgstr "(every state)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:541 +#: classes/Gems/Default/SurveyMaintenanceAction.php:543 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:543 +#: classes/Gems/Default/SurveyMaintenanceAction.php:545 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:547 +#: classes/Gems/Default/SurveyMaintenanceAction.php:549 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:549 +#: classes/Gems/Default/SurveyMaintenanceAction.php:551 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -2880,7 +2883,7 @@ #: classes/Gems/Default/TokenPlanAction.php:327 #: classes/Gems/Selector/TokenByGroupDateSelector.php:129 -#: classes/Gems/Tracker/Token.php:965 +#: classes/Gems/Tracker/Token.php:969 #: snippets/RespondentTokenTabsSnippet.php:68 msgid "Missed" msgstr "Missed" @@ -3287,55 +3290,55 @@ msgid "Upgrades" msgstr "Upgrades" -#: classes/Gems/Email/EmailFormAbstract.php:103 +#: classes/Gems/Email/EmailFormAbstract.php:101 msgid "no email adress" msgstr "no email adress" -#: classes/Gems/Email/EmailFormAbstract.php:147 +#: classes/Gems/Email/EmailFormAbstract.php:145 msgid "Available fields" msgstr "Available fields" -#: classes/Gems/Email/EmailFormAbstract.php:155 +#: classes/Gems/Email/EmailFormAbstract.php:153 msgid "BBCode" msgstr "BBCode" -#: classes/Gems/Email/EmailFormAbstract.php:218 +#: classes/Gems/Email/EmailFormAbstract.php:216 msgid "Organization does not have an e-mail address." msgstr "Organization does not have an e-mail address." -#: classes/Gems/Email/EmailFormAbstract.php:233 +#: classes/Gems/Email/EmailFormAbstract.php:231 msgid "You do not have an e-mail address." msgstr "You do not have an e-mail address." -#: classes/Gems/Email/EmailFormAbstract.php:293 +#: classes/Gems/Email/EmailFormAbstract.php:291 msgid "Preview HTML" msgstr "Preview HTML" -#: classes/Gems/Email/EmailFormAbstract.php:302 +#: classes/Gems/Email/EmailFormAbstract.php:300 msgid "Preview text" msgstr "Preview text" -#: classes/Gems/Email/EmailFormAbstract.php:334 +#: classes/Gems/Email/EmailFormAbstract.php:332 msgid "Send" msgstr "Send" -#: classes/Gems/Email/EmailFormAbstract.php:431 +#: classes/Gems/Email/EmailFormAbstract.php:429 msgid "Input error! No changes made!" msgstr "Input error! No changes made!" -#: classes/Gems/Email/EmailFormAbstract.php:450 +#: classes/Gems/Email/EmailFormAbstract.php:446 msgid "Subject:" msgstr "Subject:" -#: classes/Gems/Email/EmailFormAbstract.php:478 +#: classes/Gems/Email/EmailFormAbstract.php:474 msgid "Field" msgstr "Field" -#: classes/Gems/Email/EmailFormAbstract.php:479 +#: classes/Gems/Email/EmailFormAbstract.php:475 msgid "Value" msgstr "Value" -#: classes/Gems/Email/EmailFormAbstract.php:482 +#: classes/Gems/Email/EmailFormAbstract.php:478 msgid "BBCode info page" msgstr "BBCode info page" @@ -3343,15 +3346,15 @@ msgid "Send (test)" msgstr "Send (test)" -#: classes/Gems/Email/MailTemplateForm.php:97 +#: classes/Gems/Email/MailTemplateForm.php:95 msgid "Test using" msgstr "Test using" -#: classes/Gems/Email/MailTemplateForm.php:126 +#: classes/Gems/Email/MailTemplateForm.php:124 msgid "To (test)" msgstr "To (test)" -#: classes/Gems/Email/MailTemplateForm.php:150 +#: classes/Gems/Email/MailTemplateForm.php:168 msgid "Test mail send, changes not saved!" msgstr "Test mail send, changes not saved!" @@ -3393,12 +3396,12 @@ msgstr "Last contact" #: classes/Gems/Email/OneMailForm.php:131 -#: classes/Gems/Email/TemplateMailer.php:274 +#: classes/Gems/Email/TemplateMailer.php:229 msgid "The sending of emails was blocked for this installation." msgstr "The sending of emails was blocked for this installation." #: classes/Gems/Email/OneMailForm.php:141 -#: classes/Gems/Email/TemplateMailer.php:308 +#: classes/Gems/Email/TemplateMailer.php:263 msgid "Mail failed to send." msgstr "Mail failed to send." @@ -3407,12 +3410,12 @@ msgid "Sent email to %s." msgstr "Sent email to %s." -#: classes/Gems/Email/TemplateMailer.php:328 +#: classes/Gems/Email/TemplateMailer.php:283 #, php-format msgid "Sent %d e-mails, updated %d tokens." msgstr "Sent %d e-mails, updated %d tokens." -#: classes/Gems/Email/TemplateMailer.php:405 +#: classes/Gems/Email/TemplateMailer.php:360 #, php-format msgid "Invalid e-mail address '%s'." msgstr "Invalid e-mail address '%s'." @@ -3515,7 +3518,6 @@ msgstr "Clean cache" #: classes/Gems/Menu/MenuAbstract.php:410 -#: views/scripts/index/resetpassword.phtml:1 msgid "Reset password" msgstr "Reset password" @@ -3854,16 +3856,16 @@ msgid "No tokens were changed." msgstr "No tokens were changed." -#: classes/Gems/Tracker/Token.php:956 +#: classes/Gems/Tracker/Token.php:960 msgid "Open" msgstr "Open" -#: classes/Gems/Tracker/Token.php:959 +#: classes/Gems/Tracker/Token.php:963 #: classes/Gems/Tracker/Model/StandardTokenModel.php:200 msgid "Completed" msgstr "Completed" -#: classes/Gems/Tracker/Token.php:967 classes/Gems/Tracker/Token.php:969 +#: classes/Gems/Tracker/Token.php:971 classes/Gems/Tracker/Token.php:973 msgid "Future" msgstr "Future" @@ -4742,6 +4744,10 @@ msgid "Do you really want to delete this item?" msgstr "Do you really want to delete this item?" +#: events/survey/beforeanswering/GetPreviousAnswers.php:64 +msgid "Previous Version Answers Lookup" +msgstr "Previous Version Answers Lookup" + #: languages/FakeTranslations.php:40 msgid "Value is required and can't be empty" msgstr "Value is required and can't be empty" @@ -5113,6 +5119,9 @@ msgstr[1] "" "After this survey there are another %d surveys we would like you to answer." +#~ msgid "Result display" +#~ msgstr "Result display" + #~ msgid "" #~ "Only for unanswered tokens: updates the survey of a token when changed in " #~ "the track." Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-09-06 08:02:08 UTC (rev 928) +++ trunk/library/languages/default-nl.po 2012-09-06 09:39:13 UTC (rev 929) @@ -2,9 +2,9 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-08-20 16:00+0100\n" +"POT-Creation-Date: 2012-09-06 11:35+0100\n" "PO-Revision-Date: \n" -"Last-Translator: Menno Dekker <men...@er...>\n" +"Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" "Language: nl_NL\n" "MIME-Version: 1.0\n" @@ -21,33 +21,33 @@ msgid "Path %s not writable" msgstr "Path %s niet schrijfbaar" -#: classes/GemsEscort.php:601 +#: classes/GemsEscort.php:606 msgid " > " msgstr " | " -#: classes/GemsEscort.php:796 +#: classes/GemsEscort.php:801 #, php-format msgid "You are logged in as %s" msgstr "Ingelogd als %s" -#: classes/GemsEscort.php:798 classes/Gems/Menu.php:263 +#: classes/GemsEscort.php:803 classes/Gems/Menu.php:263 msgid "Logoff" msgstr "Uitloggen" -#: classes/GemsEscort.php:801 +#: classes/GemsEscort.php:806 msgid "You are not logged in" msgstr "U bent niet ingelogd" -#: classes/GemsEscort.php:989 +#: classes/GemsEscort.php:994 #, php-format msgid "User: %s" msgstr "Login: %s" -#: classes/GemsEscort.php:1014 +#: classes/GemsEscort.php:1019 msgid "version" msgstr "versie" -#: classes/GemsEscort.php:1460 +#: classes/GemsEscort.php:1465 msgid "" "Take note: your session has expired, your inputs were not saved. Please " "check the input data and try again" @@ -55,43 +55,43 @@ "Let op: uw sessie is verlopen, uw invoer is niet opgeslagen. Controleer uw " "gegevens en probeer a.u.b. opnieuw." -#: classes/GemsEscort.php:1589 +#: classes/GemsEscort.php:1594 msgid "Please check back later." msgstr "Probeer het later opnieuw." -#: classes/GemsEscort.php:1591 classes/GemsEscort.php:1595 -#: classes/GemsEscort.php:1596 +#: classes/GemsEscort.php:1596 classes/GemsEscort.php:1600 +#: classes/GemsEscort.php:1601 msgid "System is in maintenance mode" msgstr "Systeem is in onderhoudsmodus" -#: classes/GemsEscort.php:1606 +#: classes/GemsEscort.php:1611 msgid "No access to site." msgstr "Geen toegang tot website." -#: classes/GemsEscort.php:1608 classes/GemsEscort.php:1651 +#: classes/GemsEscort.php:1613 classes/GemsEscort.php:1656 msgid "You have no access to this site." msgstr "U heeft geen toegang tot deze website." -#: classes/GemsEscort.php:1624 classes/Gems/Default/StaffAction.php:317 +#: classes/GemsEscort.php:1629 classes/Gems/Default/StaffAction.php:317 msgid "No access to page" msgstr "Geen toegang tot pagina" -#: classes/GemsEscort.php:1626 classes/Gems/Default/OrganizationAction.php:94 +#: classes/GemsEscort.php:1631 classes/Gems/Default/OrganizationAction.php:94 #: classes/Gems/Default/StaffAction.php:318 #: classes/Gems/Model/HiddenOrganizationModel.php:115 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "U heeft geen toegang tot deze pagina. Uw huidige rol is: %s." -#: classes/GemsEscort.php:1636 classes/GemsEscort.php:1649 +#: classes/GemsEscort.php:1641 classes/GemsEscort.php:1654 msgid "You are no longer logged in." msgstr "U bent niet meer ingelogd." -#: classes/GemsEscort.php:1637 +#: classes/GemsEscort.php:1642 msgid "You must login to access this page." msgstr "U moet ingelogd zijn voor toegang tot deze pagina." -#: classes/GemsEscort.php:1778 classes/GemsEscort.php:1780 +#: classes/GemsEscort.php:1783 classes/GemsEscort.php:1785 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -201,9 +201,9 @@ msgstr "Groepen" #: classes/Gems/Menu.php:204 -#: classes/Gems/Default/SurveyMaintenanceAction.php:202 +#: classes/Gems/Default/SurveyMaintenanceAction.php:203 #: classes/Gems/Default/TrackMaintenanceAction.php:131 -#: classes/Gems/Email/MailTemplateForm.php:103 +#: classes/Gems/Email/MailTemplateForm.php:101 #: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:140 msgid "Organizations" msgstr "Organisaties" @@ -326,8 +326,8 @@ msgstr "Voeg toe" #: classes/Gems/Menu.php:324 classes/Gems/Menu.php:424 -#: classes/Gems/Email/EmailFormAbstract.php:282 -#: classes/Gems/Email/EmailFormAbstract.php:293 +#: classes/Gems/Email/EmailFormAbstract.php:280 +#: classes/Gems/Email/EmailFormAbstract.php:291 #: classes/Gems/Menu/MenuAbstract.php:367 #: classes/Gems/Menu/MenuAbstract.php:380 msgid "Preview" @@ -353,7 +353,7 @@ msgstr "Verwijder" #: classes/Gems/Menu.php:378 -#: classes/Gems/Default/SurveyMaintenanceAction.php:561 +#: classes/Gems/Default/SurveyMaintenanceAction.php:563 #: classes/Gems/Menu/MenuAbstract.php:383 #: classes/Gems/Menu/MenuAbstract.php:445 #: classes/Gems/Tracker/Model/TrackModel.php:100 @@ -474,7 +474,7 @@ #: classes/Gems/Default/RoleAction.php:231 #: classes/Gems/Default/SourceAction.php:195 #: classes/Gems/Default/StaffAction.php:328 -#: classes/Gems/Default/SurveyMaintenanceAction.php:411 +#: classes/Gems/Default/SurveyMaintenanceAction.php:412 #: classes/Gems/Default/TokenPlanAction.php:121 #: classes/Gems/Default/TrackFieldsAction.php:98 #: classes/Gems/Default/TrackMaintenanceAction.php:227 @@ -661,14 +661,14 @@ msgstr "Nieuwe %1$s..." #: classes/Gems/Controller/BrowseEditAction.php:905 -#: classes/Gems/Email/MailTemplateForm.php:110 +#: classes/Gems/Email/MailTemplateForm.php:108 #: classes/Gems/User/Form/ChangePasswordForm.php:341 #: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:245 msgid "Save" msgstr "Opslaan" #: classes/Gems/Controller/BrowseEditAction.php:941 -#: classes/Gems/Default/MailTemplateAction.php:118 +#: classes/Gems/Default/MailTemplateAction.php:116 #: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:209 #, php-format msgid "%2$u %1$s saved" @@ -684,13 +684,13 @@ msgstr "Invoer fout! Veranderingen niet opgeslagen!" #: classes/Gems/Controller/BrowseEditAction.php:981 -#: classes/Gems/Default/SurveyMaintenanceAction.php:590 +#: classes/Gems/Default/SurveyMaintenanceAction.php:592 #, php-format msgid "Show %s" msgstr "Toon %s" #: classes/Gems/Controller/BrowseEditAction.php:988 -#: classes/Gems/Default/SurveyMaintenanceAction.php:599 +#: classes/Gems/Default/SurveyMaintenanceAction.php:601 #, php-format msgid "Unknown %s." msgstr "%s is onbekend." @@ -812,8 +812,8 @@ #: classes/Gems/Default/GroupAction.php:88 #: classes/Gems/Default/ReceptionAction.php:81 #: classes/Gems/Default/RoleAction.php:232 -#: classes/Gems/Default/SurveyMaintenanceAction.php:198 -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 +#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:413 #: classes/Gems/Default/TrackActionAbstract.php:200 #: classes/Gems/Default/TrackFieldsAction.php:101 #: classes/Gems/Default/UpgradeAction.php:176 @@ -887,15 +887,15 @@ msgid "Links concerning this web application:" msgstr "Links met informatie over deze website:" -#: classes/Gems/Default/CronAction.php:138 +#: classes/Gems/Default/CronAction.php:148 msgid "Cron jobs turned off." msgstr "Cron opdrachten uitgezet." -#: classes/Gems/Default/CronAction.php:211 +#: classes/Gems/Default/CronAction.php:223 msgid "No mails sent." msgstr "Geen mail verzonden." -#: classes/Gems/Default/CronAction.php:214 +#: classes/Gems/Default/CronAction.php:226 #: classes/Gems/Email/MultiMailForm.php:49 #: classes/Gems/Email/OneMailForm.php:47 msgid "On this test system all mail will be delivered to the from address." @@ -914,14 +914,13 @@ msgstr "Geen gegevens in %s." #: classes/Gems/Default/DatabaseAction.php:134 -#: classes/Gems/Default/MailTemplateAction.php:70 #: classes/Gems/Default/TrackFieldsAction.php:104 #: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Type" msgstr "Type" #: classes/Gems/Default/DatabaseAction.php:138 -#: classes/Gems/Default/SurveyMaintenanceAction.php:433 +#: classes/Gems/Default/SurveyMaintenanceAction.php:434 msgid "Group" msgstr "Groep" @@ -1239,8 +1238,8 @@ #: classes/Gems/Default/OrganizationAction.php:139 #: classes/Gems/Default/ReceptionAction.php:88 #: classes/Gems/Default/SourceAction.php:101 -#: classes/Gems/Default/SurveyMaintenanceAction.php:424 -#: classes/Gems/Default/SurveyMaintenanceAction.php:478 +#: classes/Gems/Default/SurveyMaintenanceAction.php:425 +#: classes/Gems/Default/SurveyMaintenanceAction.php:480 #: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:742 #: classes/Gems/Tracker/Model/TrackModel.php:102 #: classes/Gems/Util/TrackData.php:147 @@ -1474,7 +1473,7 @@ #: classes/Gems/Default/LogAction.php:192 #: classes/Gems/Default/MailTemplateAction.php:66 -#: classes/Gems/Email/EmailFormAbstract.php:170 +#: classes/Gems/Email/EmailFormAbstract.php:168 msgid "Message" msgstr "Bericht" @@ -1515,7 +1514,7 @@ #: classes/Gems/Default/MailJobAction.php:78 #: classes/Gems/Default/MailLogAction.php:118 -#: classes/Gems/Email/EmailFormAbstract.php:310 +#: classes/Gems/Email/EmailFormAbstract.php:308 msgid "Template" msgstr "Sjabloon" @@ -1638,7 +1637,7 @@ #: classes/Gems/Default/MailLogAction.php:115 #: classes/Gems/Default/MailTemplateAction.php:62 -#: classes/Gems/Email/EmailFormAbstract.php:351 +#: classes/Gems/Email/EmailFormAbstract.php:349 msgid "Subject" msgstr "Onderwerp" @@ -1722,20 +1721,20 @@ msgid "Email servers" msgstr "Email servers" -#: classes/Gems/Default/MailTemplateAction.php:78 +#: classes/Gems/Default/MailTemplateAction.php:76 #: classes/Gems/Default/RespondentAction.php:349 #: classes/Gems/Default/StaffAction.php:335 #: classes/Gems/Default/StaffAction.php:405 msgid "(all organizations)" msgstr "(alle organisaties)" -#: classes/Gems/Default/MailTemplateAction.php:97 +#: classes/Gems/Default/MailTemplateAction.php:95 msgid "email template" msgid_plural "email templates" msgstr[0] "email sjabloon" msgstr[1] "email sjablonen" -#: classes/Gems/Default/MailTemplateAction.php:102 +#: classes/Gems/Default/MailTemplateAction.php:100 msgid "Email templates" msgstr "Email sjabloon" @@ -1819,7 +1818,7 @@ msgstr "Is de organisatie in gebruik?" #: classes/Gems/Default/OrganizationAction.php:140 -#: classes/Gems/User/Form/LoginForm.php:151 views/scripts/index/login.phtml:7 +#: classes/Gems/User/Form/LoginForm.php:151 msgid "Login" msgstr "Inloggen" @@ -1870,12 +1869,12 @@ "Geselecteerde organizaties kunnen de patiënten van deze organisatie bekijken." #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:441 +#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Code name" msgstr "Code naam" #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:441 +#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Only for programmers." msgstr "Uitsluitend voor programmeurs." @@ -1901,7 +1900,7 @@ #: classes/Gems/Default/OverviewPlanAction.php:115 #: classes/Gems/Default/ProjectSurveysAction.php:88 #: classes/Gems/Default/SurveyAction.php:207 -#: classes/Gems/Default/SurveyMaintenanceAction.php:556 +#: classes/Gems/Default/SurveyMaintenanceAction.php:558 #: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:157 msgid "survey" msgid_plural "surveys" @@ -2035,9 +2034,9 @@ #: classes/Gems/Default/ProjectTracksAction.php:67 #: classes/Gems/Default/SurveyAction.php:193 #: classes/Gems/Default/TrackAction.php:330 -#: classes/Gems/Email/EmailFormAbstract.php:195 -#: classes/Gems/Email/EmailFormAbstract.php:253 -#: classes/Gems/Email/MailTemplateForm.php:83 +#: classes/Gems/Email/EmailFormAbstract.php:193 +#: classes/Gems/Email/EmailFormAbstract.php:251 +#: classes/Gems/Email/MailTemplateForm.php:81 #: classes/Gems/Tracker/Model/TrackModel.php:103 msgid "From" msgstr "Van" @@ -2650,31 +2649,31 @@ msgid "Duration calculated" msgstr "Afnametijd berekent" -#: classes/Gems/Default/SurveyMaintenanceAction.php:131 +#: classes/Gems/Default/SurveyMaintenanceAction.php:132 msgid "Upload new PDF" msgstr "Upload nieuwe PDF" -#: classes/Gems/Default/SurveyMaintenanceAction.php:139 +#: classes/Gems/Default/SurveyMaintenanceAction.php:140 msgid "Usage" msgstr "Gebruik" -#: classes/Gems/Default/SurveyMaintenanceAction.php:154 +#: classes/Gems/Default/SurveyMaintenanceAction.php:155 msgid "Single Survey Assignment" msgstr "Losse vragenlijst toewijzing" -#: classes/Gems/Default/SurveyMaintenanceAction.php:199 +#: classes/Gems/Default/SurveyMaintenanceAction.php:200 msgid "Assignable since" msgstr "Toewijsbaar sinds" -#: classes/Gems/Default/SurveyMaintenanceAction.php:200 +#: classes/Gems/Default/SurveyMaintenanceAction.php:201 msgid "Assignable until" msgstr "Toewijsbaar tot" -#: classes/Gems/Default/SurveyMaintenanceAction.php:206 +#: classes/Gems/Default/SurveyMaintenanceAction.php:207 msgid "Create Single Survey" msgstr "Maak losse vragenlijst" -#: classes/Gems/Default/SurveyMaintenanceAction.php:210 +#: classes/Gems/Default/SurveyMaintenanceAction.php:211 msgid "" "At the moment this survey can only be assigned to respondents as part of an " "existing track." @@ -2682,135 +2681,139 @@ "Op dit moment kan deze vragenlijst alleen aan patiënten toegewezen als " "onderdeel van een traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:265 +#: classes/Gems/Default/SurveyMaintenanceAction.php:266 msgid "Survey should be assigned to a group before making it active." msgstr "" "Vragenlijst moet aan een groep toegewezen worden voordat deze actief kan " "worden gemaakt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:295 +#: classes/Gems/Default/SurveyMaintenanceAction.php:296 #, php-format msgid "Answered surveys: %d." msgstr "Beantwoorde vragenlijsten: %d." -#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 #, php-format msgid "Average answer time: %s." msgstr "Gemiddelde antwoordtijd: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#: classes/Gems/Default/SurveyMaintenanceAction.php:298 #, php-format msgid "Standard deviation: %s." msgstr "Standaard deviatie: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:313 +#: classes/Gems/Default/SurveyMaintenanceAction.php:314 #, php-format msgid "Median value: %s." msgstr "Median waarde: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:320 +#: classes/Gems/Default/SurveyMaintenanceAction.php:321 msgid "incalculable" msgstr "onberekenbaar" -#: classes/Gems/Default/SurveyMaintenanceAction.php:333 +#: classes/Gems/Default/SurveyMaintenanceAction.php:334 #, php-format msgid "Checking survey results for the %s survey." msgstr "Controle op vragenlijstresultaten voor de vragenlijst '%s'." -#: classes/Gems/Default/SurveyMaintenanceAction.php:337 +#: classes/Gems/Default/SurveyMaintenanceAction.php:338 msgid "This task checks all tokens for this survey." msgstr "Deze opdracht controleert alle kenmerken voor deze vragenlijst." -#: classes/Gems/Default/SurveyMaintenanceAction.php:347 +#: classes/Gems/Default/SurveyMaintenanceAction.php:348 msgid "Checking survey results for all surveys." msgstr "Controle op vragenlijstresultaten voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:350 +#: classes/Gems/Default/SurveyMaintenanc... [truncated message content] |
From: <gem...@li...> - 2012-09-06 13:32:18
|
Revision: 930 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=930&view=rev Author: matijsdejong Date: 2012-09-06 13:32:07 +0000 (Thu, 06 Sep 2012) Log Message: ----------- Deleted old events extension mechanism at GemsTracker level Enabled event definition in Project / Gems classes directories using standard Zend naming conventions (Re)defined the SurveyDisplayEventInterface.php - waiting for implementation Modified Paths: -------------- trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php trunk/library/classes/Gems/Events.php Added Paths: ----------- trunk/library/classes/Gems/Event/Survey/ trunk/library/classes/Gems/Event/Survey/BeforeAnswering/ trunk/library/classes/Gems/Event/Survey/BeforeAnswering/GetPreviousAnswers.php trunk/library/classes/Gems/Event/Survey/Completed/ trunk/library/classes/Gems/Event/Survey/Completed/BmiCalculation.php trunk/library/classes/Gems/Event/Survey/Completed/DisplayVars.php trunk/library/classes/Gems/Event/Survey/Display/ Removed Paths: ------------- trunk/library/events/ Added: trunk/library/classes/Gems/Event/Survey/BeforeAnswering/GetPreviousAnswers.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/BeforeAnswering/GetPreviousAnswers.php (rev 0) +++ trunk/library/classes/Gems/Event/Survey/BeforeAnswering/GetPreviousAnswers.php 2012-09-06 13:32:07 UTC (rev 930) @@ -0,0 +1,93 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Events + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: Sample.php 203 2011-07-07 12:51:32Z matijs $ + */ + +/** + * This events look for a previous copy of the same + * + * + * @package Gems + * @subpackage Events + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.4.4 + */ +class Gems_Event_Survey_BeforeAnswering_GetPreviousAnswers extends MUtil_Registry_TargetAbstract implements Gems_Event_SurveyBeforeAnsweringEventInterface +{ + /** + * Set as this is a MUtil_Registry_TargetInterface + * + * @var Zend_Translate $translate + */ + protected $translate; + + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return $this->translate->_('Previous Version Answers Lookup'); + } + + /** + * Process the data and return the answers that should be filled in beforehand. + * + * Storing the changed values is handled by the calling function. + * + * @param Gems_Tracker_Token $token Gems token object + * @return array Containing the changed values + */ + public function processTokenInsertion(Gems_Tracker_Token $token) + { + if ($token->hasSuccesCode() && (! $token->isCompleted())) { + // Preparation for a more general object class + $surveyId = $token->getSurveyId(); + + $prev = $token; + while ($prev = $prev->getPreviousToken()) { + + if ($prev->hasSuccesCode() && $prev->isCompleted()) { + // Check first on survey id and when that does not work by name. + if ($prev->getSurveyId() == $surveyId) { + return $prev->getRawAnswers(); + } + } + } + } + } +} Added: trunk/library/classes/Gems/Event/Survey/Completed/BmiCalculation.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Completed/BmiCalculation.php (rev 0) +++ trunk/library/classes/Gems/Event/Survey/Completed/BmiCalculation.php 2012-09-06 13:32:07 UTC (rev 930) @@ -0,0 +1,83 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Events + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: Sample.php 203 2011-07-07 12:51:32Z matijs $ + */ + +/** + * Calculates someones BMI from LENGTH and WEIGHT. + * + * @package Gems + * @subpackage Events + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.4 + */ +class Gems_Event_Survey_Completed_BmiCalculation // extends MUtil_Registry_TargetAbstract + implements Gems_Event_SurveyCompletedEventInterface +{ + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return "Bmi Calculation"; + } + + /** + * Process the data and return the answers that should be changed. + * + * Storing the changed values is handled by the calling function. + * + * @param Gems_Tracker_Token $token Gems token object + * @return array Containing the changed values + */ + public function processTokenData(Gems_Tracker_Token $token) + { + $tokenAnswers = $token->getRawAnswers(); + + if (isset($tokenAnswers['LENGTH'], $tokenAnswers['WEIGHT']) && $tokenAnswers['LENGTH'] && $tokenAnswers['WEIGHT']) { + $length = $tokenAnswers['LENGTH'] / 100; + $newValue = round($tokenAnswers['WEIGHT'] / ($length * $length), 2); + + if ($newValue !== $tokenAnswers['BMI']) { + return array('BMI' => $newValue); + } + } + + return false; + } +} Added: trunk/library/classes/Gems/Event/Survey/Completed/DisplayVars.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Completed/DisplayVars.php (rev 0) +++ trunk/library/classes/Gems/Event/Survey/Completed/DisplayVars.php 2012-09-06 13:32:07 UTC (rev 930) @@ -0,0 +1,75 @@ +<?php + +/** + * Copyright (c) 2011, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * @package Gems + * @subpackage Event + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id: Sample.php 215 2011-07-12 08:52:54Z michiel $ + */ + +/** + * Displays the variables and their values to help create a new calculation + * + * To start a new calculation you need to know the exact name of the variables returned + * by the survey source. This event will show this information and the values for each + * token it finds. + * + * @package Gems + * @subpackage Event + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.5.1 + */ +class Gems_Event_Survey_Completed_DisplayVars extends Gems_Event_EventCalculations implements Gems_Event_SurveyCompletedEventInterface +{ + + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return "Echo the variables"; + } + + /** + * Process the data and return the answers that should be changed. + * + * Storing the changed values is handled by the calling function. + * + * @param Gems_Tracker_Token $token Gems token object + * @return array Containing the changed values + */ + public function processTokenData(Gems_Tracker_Token $token) + { + MUtil_Echo::r($token->getRawAnswers(), $token->getTokenId()); + return false; + } +} \ No newline at end of file Modified: trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php =================================================================== --- trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php 2012-09-06 09:39:13 UTC (rev 929) +++ trunk/library/classes/Gems/Event/SurveyDisplayEventInterface.php 2012-09-06 13:32:07 UTC (rev 930) @@ -46,6 +46,13 @@ * @license New BSD License * @since Class available since version 1.5.6 */ -interface Gems_Event_SurveyDisplayEventInterface extends Gems_Event_EventInterface, MUtil_Snippets_SnippetInterface +interface Gems_Event_SurveyDisplayEventInterface extends Gems_Event_EventInterface { + /** + * Function that returns the snippets to use for this display. + * + * @param boolean $group Should answers be grouped + * @return array of Snippet names + */ + public function getSnippets($group); } Modified: trunk/library/classes/Gems/Events.php =================================================================== --- trunk/library/classes/Gems/Events.php 2012-09-06 09:39:13 UTC (rev 929) +++ trunk/library/classes/Gems/Events.php 2012-09-06 13:32:07 UTC (rev 930) @@ -46,13 +46,13 @@ */ class Gems_Events extends Gems_Loader_TargetLoaderAbstract { - const EVENTS_DIR = 'events'; + const EVENTS_DIR = 'Event'; - const TRACK_COMPLETION_EVENT = 'track/completed'; - const ROUND_CHANGED_EVENT = 'round/changed'; - const SURVEY_BEFORE_ANSWERING_EVENT = 'survey/beforeanswering'; - const SURVEY_COMPLETION_EVENT = 'survey/completed'; - const SURVEY_DISPLAY_EVENT = 'survey/display'; + const TRACK_COMPLETION_EVENT = 'Track/Completed'; + const ROUND_CHANGED_EVENT = 'Round/Changed'; + const SURVEY_BEFORE_ANSWERING_EVENT = 'Survey/BeforeAnswering'; + const SURVEY_COMPLETION_EVENT = 'Survey/Completed'; + const SURVEY_DISPLAY_EVENT = 'Survey/Display'; /** * Each event type must implement an event class or interface derived @@ -95,6 +95,28 @@ } /** + * + * @global array $GEMS_DIRS An array of directories that specify where to look for code. + * @param string $eventType An event subdirectory (may contain multiple levels split by '/' + * @return array An array of type prefix => classname + */ + protected function _getEventDirs($eventType) + { + global $GEMS_DIRS; + + $eventClass = str_replace('/', '_', $eventType); + + foreach ($GEMS_DIRS as $name => $dir) { + $prefix = $name . '_' . self::EVENTS_DIR . '_' . $eventClass . '_'; + $paths[$prefix] = $dir . '/' . $name . '/' . self::EVENTS_DIR . '/' . $eventType; + } + $paths[''] = GEMS_PROJECT_PATH . '/' . strtolower(self::EVENTS_DIR . 's/' . $eventType); + // MUtil_Echo::track($paths); + + return $paths; + } + + /** * Returns a list of selectable events with an empty element as the first option. * * @param string $eventType The type (i.e. lookup directory with an associated class) of the events to list @@ -102,18 +124,21 @@ */ protected function _listEvents($eventType) { - $paths[] = APPLICATION_PATH . '/' . self::EVENTS_DIR . '/' . $eventType; - $paths[] = GEMS_LIBRARY_DIR . '/' . self::EVENTS_DIR . '/' . $eventType; $results = array(); $eventClass = $this->_getEventClass($eventType); + $paths = $this->_getEventDirs($eventType); - foreach ($paths as $path) { + foreach ($paths as $prefix => $path) { if (file_exists($path)) { $eDir = dir($path); + $parts = explode('_', $prefix, 2); + if ($name = reset($parts)) { + $name = ' (' . $name . ')'; + } while (false !== ($filename = $eDir->read())) { if ('.php' === substr($filename, -4)) { - $eventName = substr($filename, 0, -4); + $eventName = $prefix . substr($filename, 0, -4); // Take care of double definitions if (! isset($results[$eventName])) { @@ -128,7 +153,7 @@ $this->applySource($event); } - $results[$eventName] = $event->getEventName(); + $results[$eventName] = trim($event->getEventName()) . $name; } // MUtil_Echo::track($eventName); } @@ -138,6 +163,7 @@ } natcasesort($results); $results = $this->util->getTranslated()->getEmptyDropdownArray() + $results; + // MUtil_Echo::track($paths, $results); return $results; } @@ -152,12 +178,16 @@ { $eventClass = $this->_getEventClass($eventType); - if (! class_exists($eventName)) { - $filename = APPLICATION_PATH . '/' . self::EVENTS_DIR . '/' . $eventType . '/' . $eventName . '.php'; + // MUtil_Echo::track($eventName); + if (! class_exists($eventName, true)) { + // Autoload is used for Zend standard defined classnames, + // so if the class is not autoloaded, define the path here. + $filename = APPLICATION_PATH . '/' . self::EVENTS_DIR . 's/' . $eventType . '/' . $eventName . '.php'; if (! file_exists($filename)) { throw new Gems_Exception_Coding("The event '$eventName' of type '$eventType' does not exist at location: $filename."); } + // MUtil_Echo::track($filename); include($filename); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-09-07 11:30:02
|
Revision: 936 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=936&view=rev Author: mennodekker Date: 2012-09-07 11:29:53 +0000 (Fri, 07 Sep 2012) Log Message: ----------- fixes coming from new unit tests Modified Paths: -------------- trunk/library/classes/Gems/Tracker/Token.php trunk/library/configs/db/tables/gems__tokens.200.sql Modified: trunk/library/classes/Gems/Tracker/Token.php =================================================================== --- trunk/library/classes/Gems/Tracker/Token.php 2012-09-07 11:28:40 UTC (rev 935) +++ trunk/library/classes/Gems/Tracker/Token.php 2012-09-07 11:29:53 UTC (rev 936) @@ -1289,7 +1289,10 @@ ->forTokenId($this->_tokenId); $this->_gemsData = $tokenSelect->fetchRow(); - + if (false == $this->_gemsData) { + // on failure, reset to empty array + $this->_gemsData = array(); + } } $this->exists = isset($this->_gemsData['gto_id_token']); Modified: trunk/library/configs/db/tables/gems__tokens.200.sql =================================================================== --- trunk/library/configs/db/tables/gems__tokens.200.sql 2012-09-07 11:28:40 UTC (rev 935) +++ trunk/library/configs/db/tables/gems__tokens.200.sql 2012-09-07 11:29:53 UTC (rev 936) @@ -26,6 +26,7 @@ gto_valid_from datetime, gto_valid_until datetime, gto_mail_sent_date date, + gto_mail_sent_num int(11) unsigned not null default 0, gto_next_mail_date date, gto_start_time datetime, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-09-19 13:08:27
|
Revision: 946 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=946&view=rev Author: mennodekker Date: 2012-09-19 13:08:21 +0000 (Wed, 19 Sep 2012) Log Message: ----------- Allow export to work with new display event Modified Paths: -------------- trunk/library/classes/Gems/Export/RespondentExport.php trunk/library/snippets/TrackAnswersModelSnippet.php Modified: trunk/library/classes/Gems/Export/RespondentExport.php =================================================================== --- trunk/library/classes/Gems/Export/RespondentExport.php 2012-09-19 12:02:57 UTC (rev 945) +++ trunk/library/classes/Gems/Export/RespondentExport.php 2012-09-19 13:08:21 UTC (rev 946) @@ -47,16 +47,13 @@ protected $_reportHeader = 'Export_ReportHeaderSnippet'; protected $_respondentSnippet = 'Export_RespondentSnippet'; - protected $_groupedSurveySnippet = 'TrackAnswersModelSnippet'; - protected $_singleSurveySnippet = 'AnswerModelSnippet'; - /** * * @var GemsEscort */ public $escort; - private $html; + protected $html; /** * @@ -169,22 +166,42 @@ continue; } + $showToken = false; if ($engine->getTrackType() == 'S' || !$groupSurveys) { - $this->html->snippet('Export_SurveyHeaderSnippet', 'token', $token); - $this->html->snippet($this->_singleSurveySnippet, 'token', $token, 'tokenId', $token->getTokenId(), - 'showHeaders', false, 'showButtons', false, 'showSelected', false, 'showTakeButton', false); - - $this->html->br(); + // For single survey tracks or when $groupSurvey === false we show all tokens + $showToken = true; } else { + // For multi survey tracks and $groupSurveys === true, we show only the first token + // as the snippet takes care of showing the other tokens if (!isset($surveys[$token->getSurveyId()])) { - $surveys[$token->getSurveyId()] = true; + $showToken = true; + } + } - $this->html->snippet('Export_SurveyHeaderSnippet', 'token', $token); - $this->html->snippet($this->_groupedSurveySnippet, 'token', $token, 'tokenId', $token->getTokenId(), - 'showHeaders', false, 'showButtons', false, 'showSelected', false, 'showTakeButton', false); + if ($showToken) { + $params = array( + 'token' => $token, + 'tokenId' => $token->getTokenId(), + 'showHeaders' => false, + 'showButtons' => false, + 'showSelected' => false, + 'showTakeButton' => false, + 'grouped' => $groupSurveys); + + $snippets = $token->getAnswerSnippetNames(); + + if (is_array($snippets)) { + list($snippets, $snippetParams) = MUtil_Ra::keySplit($snippets); + $params = $params + $snippetParams; + } + + $this->html->snippet('Export_SurveyHeaderSnippet', 'token', $token); + + foreach($snippets as $snippet) { + $this->html->snippet($snippet, $params); + } - $this->html->br(); - } + $this->html->br(); } $token = $token->getNextToken(); Modified: trunk/library/snippets/TrackAnswersModelSnippet.php =================================================================== --- trunk/library/snippets/TrackAnswersModelSnippet.php 2012-09-19 12:02:57 UTC (rev 945) +++ trunk/library/snippets/TrackAnswersModelSnippet.php 2012-09-19 13:08:21 UTC (rev 946) @@ -48,6 +48,14 @@ class TrackAnswersModelSnippet extends Gems_Tracker_Snippets_AnswerModelSnippetGeneric { /** + * Use compact view and show all tokens of the same surveyId in + * one view. Property used by respondent export + * + * @var boolean + */ + public $grouped = true; + + /** * Overrule to implement snippet specific filtering and sorting. * * @param MUtil_Model_ModelAbstract $model @@ -57,8 +65,12 @@ if ($this->request) { $this->processSortOnly($model); - $filter['gto_id_respondent_track'] = $this->token->getRespondentTrackId(); - $filter['gto_id_survey'] = $this->token->getSurveyId(); + if ($this->grouped) { + $filter['gto_id_respondent_track'] = $this->token->getRespondentTrackId(); + $filter['gto_id_survey'] = $this->token->getSurveyId(); + } else { + $filter['gto_id_token'] = $this->token->getTokenId(); + } $model->setFilter($filter); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-09-24 10:00:32
|
Revision: 953 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=953&view=rev Author: matijsdejong Date: 2012-09-24 10:00:20 +0000 (Mon, 24 Sep 2012) Log Message: ----------- Updated translations Extended TrackData functionality Improved file names of sql creation files (to improve the order of creation) Modified Paths: -------------- trunk/library/classes/Gems/Tracker/Engine/StepEngineAbstract.php trunk/library/classes/Gems/Util/TrackData.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Added Paths: ----------- trunk/library/configs/db/tables/gems__respondent2track2field.50.sql trunk/library/configs/db/tables/gems__track_fields.40.sql Removed Paths: ------------- trunk/library/configs/db/tables/gems__respondent2track2field.20.sql trunk/library/configs/db/tables/gems__track_fields.20.sql Modified: trunk/library/classes/Gems/Tracker/Engine/StepEngineAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Engine/StepEngineAbstract.php 2012-09-21 16:42:22 UTC (rev 952) +++ trunk/library/classes/Gems/Tracker/Engine/StepEngineAbstract.php 2012-09-24 10:00:20 UTC (rev 953) @@ -79,7 +79,7 @@ $model->set($fieldName, 'multiOptions', $options); if (! array_key_exists($itemData[$fieldName], $options)) { - // The value is always the only possible value + // Set the value to the first possible value reset($options); $itemData[$fieldName] = key($options); @@ -399,15 +399,7 @@ */ protected function getDateUnitsList($validAfter) { - return array( - 'N' => $this->_('Minutes'), - 'H' => $this->_('Hours'), - 'D' => $this->_('Days'), - 'W' => $this->_('Weeks'), - 'M' => $this->_('Months'), - 'Q' => $this->_('Quarters'), - 'Y' => $this->_('Years') - ); + return $this->util->getTrackData()->getDateUnitsList($validAfter); } /** Modified: trunk/library/classes/Gems/Util/TrackData.php =================================================================== --- trunk/library/classes/Gems/Util/TrackData.php 2012-09-21 16:42:22 UTC (rev 952) +++ trunk/library/classes/Gems/Util/TrackData.php 2012-09-24 10:00:20 UTC (rev 953) @@ -168,6 +168,25 @@ } /** + * Get an array of translated labels for the date units used by this engine + * + * @param boolean $validAfter True if it concenrs _valid_after_ dates + * @return array date_unit => label + */ + public function getDateUnitsList($validAfter) + { + return array( + 'N' => $this->translate->_('Minutes'), + 'H' => $this->translate->_('Hours'), + 'D' => $this->translate->_('Days'), + 'W' => $this->translate->_('Weeks'), + 'M' => $this->translate->_('Months'), + 'Q' => $this->translate->_('Quarters'), + 'Y' => $this->translate->_('Years') + ); + } + + /** * Returns array (id => name) of all ronds in a track, sorted by order * * @param int $trackId @@ -192,4 +211,42 @@ return $tracks; } + + + /** + * Returns array (id => name) of the track date fields for this track, sorted by order + * + * @param int $trackId + * @return array + */ + public function getTrackDateFields($trackId) + { + $dateFields = $this->db->fetchPairs("SELECT gtf_id_field, gtf_field_name FROM gems__track_fields WHERE gtf_id_track = ? AND gtf_field_type = 'date' ORDER BY gtf_id_order", $trackId); + + if (! $dateFields) { + $dateFields = array(); + } + + return $dateFields; + } + + /** + * Returns array (id => name) of all track date fields, sorted alphabetically + * + * @return array + */ + public function getTracksDateFields() + { + static $dateFields; + + if (! is_array($dateFields)) { + $dateFields = $this->db->fetchPairs("SELECT gtf_id_field, gtf_field_name FROM gems__track_fields WHERE gtf_field_type = 'date' ORDER BY gtf_field_name"); + + if (! $dateFields) { + $dateFields = array(); + } + } + + return $dateFields; + } } Deleted: trunk/library/configs/db/tables/gems__respondent2track2field.20.sql =================================================================== --- trunk/library/configs/db/tables/gems__respondent2track2field.20.sql 2012-09-21 16:42:22 UTC (rev 952) +++ trunk/library/configs/db/tables/gems__respondent2track2field.20.sql 2012-09-24 10:00:20 UTC (rev 953) @@ -1,17 +0,0 @@ - -CREATE TABLE if not exists gems__respondent2track2field ( - gr2t2f_id_respondent_track bigint unsigned not null references gems__respondent2track (gr2t_id_respondent_track), - gr2t2f_id_field bigint unsigned not null references gems__track_fields (gtf_id_field), - - gr2t2f_value text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - - gr2t2f_changed timestamp not null default current_timestamp on update current_timestamp, - gr2t2f_changed_by bigint unsigned not null, - gr2t2f_created timestamp not null, - gr2t2f_created_by bigint unsigned not null, - - PRIMARY KEY(gr2t2f_id_respondent_track,gr2t2f_id_field) - ) - ENGINE=InnoDB - CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; - Added: trunk/library/configs/db/tables/gems__respondent2track2field.50.sql =================================================================== --- trunk/library/configs/db/tables/gems__respondent2track2field.50.sql (rev 0) +++ trunk/library/configs/db/tables/gems__respondent2track2field.50.sql 2012-09-24 10:00:20 UTC (rev 953) @@ -0,0 +1,17 @@ + +CREATE TABLE if not exists gems__respondent2track2field ( + gr2t2f_id_respondent_track bigint unsigned not null references gems__respondent2track (gr2t_id_respondent_track), + gr2t2f_id_field bigint unsigned not null references gems__track_fields (gtf_id_field), + + gr2t2f_value text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, + + gr2t2f_changed timestamp not null default current_timestamp on update current_timestamp, + gr2t2f_changed_by bigint unsigned not null, + gr2t2f_created timestamp not null, + gr2t2f_created_by bigint unsigned not null, + + PRIMARY KEY(gr2t2f_id_respondent_track,gr2t2f_id_field) + ) + ENGINE=InnoDB + CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; + Deleted: trunk/library/configs/db/tables/gems__track_fields.20.sql =================================================================== --- trunk/library/configs/db/tables/gems__track_fields.20.sql 2012-09-21 16:42:22 UTC (rev 952) +++ trunk/library/configs/db/tables/gems__track_fields.20.sql 2012-09-24 10:00:20 UTC (rev 953) @@ -1,29 +0,0 @@ - -CREATE TABLE if not exists gems__track_fields ( - gtf_id_field bigint unsigned not null auto_increment, - gtf_id_track int unsigned not null references gems__tracks (gtr_id_track), - - gtf_id_order int not null default 10, - - gtf_field_name varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, - gtf_field_code varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - gtf_field_description varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - - gtf_field_values text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, - - gtf_field_type varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, - - gtf_required boolean not null default false, - gtf_readonly boolean not null default false, - - gtf_changed timestamp not null default current_timestamp on update current_timestamp, - gtf_changed_by bigint unsigned not null, - gtf_created timestamp not null, - gtf_created_by bigint unsigned not null, - - PRIMARY KEY (gtf_id_field) - ) - ENGINE=InnoDB - AUTO_INCREMENT = 60000 - CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; - Added: trunk/library/configs/db/tables/gems__track_fields.40.sql =================================================================== --- trunk/library/configs/db/tables/gems__track_fields.40.sql (rev 0) +++ trunk/library/configs/db/tables/gems__track_fields.40.sql 2012-09-24 10:00:20 UTC (rev 953) @@ -0,0 +1,29 @@ + +CREATE TABLE if not exists gems__track_fields ( + gtf_id_field bigint unsigned not null auto_increment, + gtf_id_track int unsigned not null references gems__tracks (gtr_id_track), + + gtf_id_order int not null default 10, + + gtf_field_name varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, + gtf_field_code varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, + gtf_field_description varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, + + gtf_field_values text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, + + gtf_field_type varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, + + gtf_required boolean not null default false, + gtf_readonly boolean not null default false, + + gtf_changed timestamp not null default current_timestamp on update current_timestamp, + gtf_changed_by bigint unsigned not null, + gtf_created timestamp not null, + gtf_created_by bigint unsigned not null, + + PRIMARY KEY (gtf_id_field) + ) + ENGINE=InnoDB + AUTO_INCREMENT = 60000 + CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; + Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-09-21 16:42:22 UTC (rev 952) +++ trunk/library/languages/default-en.po 2012-09-24 10:00:20 UTC (rev 953) @@ -2,14 +2,14 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-09-06 11:29+0100\n" +"POT-Creation-Date: 2012-09-24 11:55+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" -"Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: en_GB\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Poedit-SourceCharset: iso-8859-1\n" "X-Poedit-Basepath: ../\n" @@ -30,7 +30,8 @@ msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:803 classes/Gems/Menu.php:263 +#: classes/GemsEscort.php:803 +#: classes/Gems/Menu.php:263 msgid "Logoff" msgstr "Logoff" @@ -48,18 +49,15 @@ msgstr "version" #: classes/GemsEscort.php:1465 -msgid "" -"Take note: your session has expired, your inputs were not saved. Please " -"check the input data and try again" -msgstr "" -"Take note: your session has expired, your inputs were not saved. Please " -"check the input data and try again" +msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" +msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" #: classes/GemsEscort.php:1594 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1596 classes/GemsEscort.php:1600 +#: classes/GemsEscort.php:1596 +#: classes/GemsEscort.php:1600 #: classes/GemsEscort.php:1601 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" @@ -68,22 +66,22 @@ msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1613 classes/GemsEscort.php:1656 +#: classes/GemsEscort.php:1613 +#: classes/GemsEscort.php:1656 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1629 classes/Gems/Default/StaffAction.php:317 +#: classes/GemsEscort.php:1629 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1631 classes/Gems/Default/OrganizationAction.php:94 -#: classes/Gems/Default/StaffAction.php:318 -#: classes/Gems/Model/HiddenOrganizationModel.php:115 +#: classes/GemsEscort.php:1631 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1641 classes/GemsEscort.php:1654 +#: classes/GemsEscort.php:1641 +#: classes/GemsEscort.php:1654 msgid "You are no longer logged in." msgstr "You are no longer logged in." @@ -91,7 +89,8 @@ msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1783 classes/GemsEscort.php:1785 +#: classes/GemsEscort.php:1783 +#: classes/GemsEscort.php:1785 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -147,7 +146,7 @@ msgid "Project setup" msgstr "Project setup" -#: classes/Gems/Menu.php:170 classes/Gems/Default/SourceAction.php:203 +#: classes/Gems/Menu.php:170 msgid "Database" msgstr "Database" @@ -155,11 +154,11 @@ msgid "Content" msgstr "Content" -#: classes/Gems/Menu.php:177 classes/Gems/Default/DatabaseAction.php:313 +#: classes/Gems/Menu.php:177 msgid "Execute" msgstr "Execute" -#: classes/Gems/Menu.php:182 classes/Gems/Default/DatabaseAction.php:289 +#: classes/Gems/Menu.php:182 msgid "Patches" msgstr "Patches" @@ -175,7 +174,7 @@ msgid "Run SQL" msgstr "Run SQL" -#: classes/Gems/Menu.php:190 classes/Gems/Default/ReceptionAction.php:132 +#: classes/Gems/Menu.php:190 msgid "Reception codes" msgstr "Reception codes" @@ -183,16 +182,16 @@ msgid "Consents" msgstr "Consents" -#: classes/Gems/Menu.php:196 classes/Gems/Default/RoleAction.php:309 +#: classes/Gems/Menu.php:196 msgid "Roles" msgstr "Roles" -#: classes/Gems/Menu.php:197 classes/Gems/Menu.php:391 +#: classes/Gems/Menu.php:197 +#: classes/Gems/Menu.php:391 msgid "Assigned" msgstr "Assigned" -#: classes/Gems/Menu.php:198 classes/Gems/Default/RoleAction.php:238 -#: classes/Gems/Default/RoleAction.php:324 +#: classes/Gems/Menu.php:198 msgid "Privileges" msgstr "Privileges" @@ -201,20 +200,14 @@ msgstr "Groups" #: classes/Gems/Menu.php:204 -#: classes/Gems/Default/SurveyMaintenanceAction.php:203 -#: classes/Gems/Default/TrackMaintenanceAction.php:131 -#: classes/Gems/Email/MailTemplateForm.php:101 -#: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:140 msgid "Organizations" msgstr "Organizations" -#: classes/Gems/Menu.php:207 classes/Gems/Default/GroupAction.php:93 -#: classes/Gems/Default/LogAction.php:193 -#: classes/Gems/Default/StaffAction.php:470 +#: classes/Gems/Menu.php:207 msgid "Staff" msgstr "Staff" -#: classes/Gems/Menu.php:210 classes/Gems/Default/LogAction.php:213 +#: classes/Gems/Menu.php:210 msgid "Logging" msgstr "Logging" @@ -226,15 +219,14 @@ msgid "Upgrade" msgstr "Upgrade" -#: classes/Gems/Menu.php:220 classes/Gems/Menu.php:221 -#: classes/Gems/Default/ProjectInformationAction.php:113 -#: classes/Gems/Default/ProjectInformationAction.php:118 +#: classes/Gems/Menu.php:220 +#: classes/Gems/Menu.php:221 #, php-format msgid "Changelog %s" msgstr "Changelog %s" -#: classes/Gems/Menu.php:222 classes/Gems/Menu.php:355 -#: classes/Gems/Menu/SubMenuItem.php:551 +#: classes/Gems/Menu.php:222 +#: classes/Gems/Menu.php:355 msgid "Show" msgstr "Show" @@ -263,7 +255,7 @@ msgid "Logon" msgstr "Logon" -#: classes/Gems/Menu.php:258 classes/Gems/User/Form/LoginForm.php:112 +#: classes/Gems/Menu.php:258 msgid "Lost password" msgstr "Lost password" @@ -271,72 +263,40 @@ msgid "Your account" msgstr "Your account" -#: classes/Gems/Menu.php:260 classes/Gems/Default/OptionAction.php:153 +#: classes/Gems/Menu.php:260 msgid "Activity overview" msgstr "Activity overview" -#: classes/Gems/Menu.php:261 classes/Gems/Default/OptionAction.php:78 +#: classes/Gems/Menu.php:261 msgid "Change password" msgstr "Change password" -#: classes/Gems/Menu.php:262 classes/Gems/Menu.php:315 -#: classes/Gems/Menu.php:361 classes/Gems/Default/MailLogAction.php:114 -#: classes/Gems/Default/TrackAction.php:459 -#: classes/Gems/Export/RespondentExport.php:150 -#: classes/Gems/Snippets/TokenModelSnippetAbstract.php:70 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:490 -#: classes/Gems/Tracker/Form/AskTokenForm.php:77 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:195 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:173 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:182 -#: snippets/BrowseSingleSurveyTokenSnippet.php:167 -#: snippets/TrackTokenOverviewSnippet.php:132 -#: snippets/Organization/OrganizationEditSnippet.php:89 -#: snippets/Track/Token/ShowAllOpenSnippet.php:88 -#: snippets/Track/Token/ShowFirstOpenSnippet.php:110 +#: classes/Gems/Menu.php:262 +#: classes/Gems/Menu.php:315 +#: classes/Gems/Menu.php:361 msgid "Token" msgstr "Token" -#: classes/Gems/Menu.php:303 classes/Gems/Export/RespondentExport.php:301 +#: classes/Gems/Menu.php:303 msgid "Export" msgstr "Export" -#: classes/Gems/Menu.php:310 classes/Gems/Default/MailJobAction.php:99 -#: classes/Gems/Default/ProjectTracksAction.php:64 -#: classes/Gems/Default/TrackAction.php:328 -#: classes/Gems/Default/TrackActionAbstract.php:199 -#: classes/Gems/Default/TrackFieldsAction.php:96 -#: classes/Gems/Email/OneMailForm.php:54 -#: classes/Gems/Export/RespondentExport.php:207 -#: classes/Gems/Export/RespondentExport.php:219 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:492 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:734 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:216 -#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:149 -#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:146 -#: snippets/Track/Token/ShowAllOpenSnippet.php:148 +#: classes/Gems/Menu.php:310 msgid "Track" msgstr "Track" -#: classes/Gems/Menu.php:318 classes/Gems/Menu.php:343 +#: classes/Gems/Menu.php:318 +#: classes/Gems/Menu.php:343 #: classes/Gems/Menu.php:385 -#: classes/Gems/Default/TrackMaintenanceAction.php:367 -#: snippets/AddTracksSnippet.php:242 msgid "Add" msgstr "Add" -#: classes/Gems/Menu.php:324 classes/Gems/Menu.php:424 -#: classes/Gems/Email/EmailFormAbstract.php:280 -#: classes/Gems/Email/EmailFormAbstract.php:291 -#: classes/Gems/Menu/MenuAbstract.php:367 -#: classes/Gems/Menu/MenuAbstract.php:380 +#: classes/Gems/Menu.php:324 +#: classes/Gems/Menu.php:424 msgid "Preview" msgstr "Preview" -#: classes/Gems/Menu.php:333 classes/Gems/Default/ExportAction.php:149 -#: classes/Gems/Default/TrackMaintenanceAction.php:314 -#: classes/Gems/Menu/MenuAbstract.php:376 -#: classes/Gems/Menu/MenuAbstract.php:457 snippets/AddTracksSnippet.php:239 +#: classes/Gems/Menu.php:333 msgid "Tracks" msgstr "Tracks" @@ -344,19 +304,15 @@ msgid "Assignments" msgstr "Assignments" -#: classes/Gems/Menu.php:365 classes/Gems/Menu/SubMenuItem.php:417 +#: classes/Gems/Menu.php:365 msgid "Edit" msgstr "Edit" -#: classes/Gems/Menu.php:371 classes/Gems/Menu/SubMenuItem.php:398 +#: classes/Gems/Menu.php:371 msgid "Delete" msgstr "Delete" #: classes/Gems/Menu.php:378 -#: classes/Gems/Default/SurveyMaintenanceAction.php:563 -#: classes/Gems/Menu/MenuAbstract.php:383 -#: classes/Gems/Menu/MenuAbstract.php:445 -#: classes/Gems/Tracker/Model/TrackModel.php:100 msgid "Surveys" msgstr "Surveys" @@ -373,13 +329,10 @@ msgstr "E-Mail now!" #: classes/Gems/Menu.php:427 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:489 msgid "Answers" msgstr "Answers" -#: classes/Gems/Menu.php:579 classes/Gems/Default/GroupAction.php:94 -#: classes/Gems/Default/OrganizationAction.php:142 -#: classes/Gems/Default/RespondentAction.php:403 +#: classes/Gems/Menu.php:579 msgid "Respondents" msgstr "Patients" @@ -387,7 +340,7 @@ msgid "Overview" msgstr "Overview" -#: classes/Gems/Menu.php:594 classes/Gems/Menu/MenuAbstract.php:340 +#: classes/Gems/Menu.php:594 msgid "Project" msgstr "Project" @@ -403,13 +356,11 @@ msgid "Mail" msgstr "Mail" -#: classes/Gems/Menu.php:609 classes/Gems/Default/RespondentAction.php:511 -#: classes/Gems/Default/RespondentExportAction.php:60 +#: classes/Gems/Menu.php:609 msgid "Export respondent" msgstr "Export respondent" -#: classes/Gems/Menu.php:615 classes/Gems/Default/ContactAction.php:101 -#: snippets/Organization/OrganizationEditSnippet.php:82 +#: classes/Gems/Menu.php:615 msgid "Contact" msgstr "Contact" @@ -418,19 +369,10 @@ msgstr "Changelog" #: classes/Gems/Model.php:206 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:213 msgid "Respondent nr" msgstr "Patient nr" -#: classes/Gems/Model.php:209 classes/Gems/Default/ExportAction.php:172 -#: classes/Gems/Default/IndexAction.php:229 -#: classes/Gems/Default/LogAction.php:197 -#: classes/Gems/Default/MailJobAction.php:98 -#: classes/Gems/Default/StaffAction.php:340 -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:63 -#: classes/Gems/User/Form/LayeredLoginForm.php:254 -#: classes/Gems/User/Form/OrganizationFormAbstract.php:166 -#: snippets/Organization/OrganizationEditSnippet.php:80 +#: classes/Gems/Model.php:209 msgid "Organization" msgstr "Organization" @@ -442,43 +384,27 @@ msgid "Consent" msgstr "Consent" -#: classes/Gems/Model.php:214 classes/Gems/Default/OptionAction.php:130 -#: classes/Gems/Default/StaffAction.php:330 +#: classes/Gems/Model.php:214 msgid "E-Mail" msgstr "E-Mail" -#: classes/Gems/Model.php:219 classes/Gems/Default/OptionAction.php:134 -#: classes/Gems/Default/StaffAction.php:343 +#: classes/Gems/Model.php:219 msgid "Gender" msgstr "Gender" -#: classes/Gems/Model.php:220 classes/Gems/Default/OptionAction.php:131 -#: classes/Gems/Default/StaffAction.php:185 +#: classes/Gems/Model.php:220 msgid "First name" msgstr "First name" -#: classes/Gems/Model.php:221 classes/Gems/Default/OptionAction.php:132 -#: classes/Gems/Default/StaffAction.php:187 +#: classes/Gems/Model.php:221 msgid "Surname prefix" msgstr "Surname prefix" -#: classes/Gems/Model.php:222 classes/Gems/Default/OptionAction.php:133 -#: classes/Gems/Default/StaffAction.php:188 +#: classes/Gems/Model.php:222 msgid "Last name" msgstr "Last name" -#: classes/Gems/Model.php:224 classes/Gems/Default/DatabaseAction.php:135 -#: classes/Gems/Default/DatabaseAction.php:335 -#: classes/Gems/Default/GroupAction.php:87 -#: classes/Gems/Default/OrganizationAction.php:114 -#: classes/Gems/Default/RoleAction.php:231 -#: classes/Gems/Default/SourceAction.php:195 -#: classes/Gems/Default/StaffAction.php:328 -#: classes/Gems/Default/SurveyMaintenanceAction.php:412 -#: classes/Gems/Default/TokenPlanAction.php:121 -#: classes/Gems/Default/TrackFieldsAction.php:98 -#: classes/Gems/Default/TrackMaintenanceAction.php:227 -#: classes/Gems/Tracker/Model/TrackModel.php:98 +#: classes/Gems/Model.php:224 msgid "Name" msgstr "Name" @@ -491,7 +417,6 @@ msgstr "Zipcode" #: classes/Gems/Model.php:229 -#: classes/Gems/Default/RespondentPlanAction.php:134 msgid "City" msgstr "City" @@ -500,7 +425,6 @@ msgstr "Phone" #: classes/Gems/Model.php:233 -#: classes/Gems/Default/RespondentPlanAction.php:133 msgid "Birthday" msgstr "Birthday" @@ -546,164 +470,100 @@ msgid "Trying upgrade for %s to level %s: %s" msgstr "Trying upgrade for %s to level %s: %s" -#: classes/Gems/Controller/BrowseEditAction.php:358 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:239 -#: classes/Gems/Default/StaffAction.php:228 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:186 +#: classes/Gems/Controller/BrowseEditAction.php:357 #, php-format msgid "New %s..." msgstr "New %s..." -#: classes/Gems/Controller/BrowseEditAction.php:391 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:259 -#: classes/Gems/Default/TrackFieldsAction.php:130 -#: classes/Gems/Default/TrackRoundsAction.php:171 +#: classes/Gems/Controller/BrowseEditAction.php:390 #, php-format msgid "Delete %s" msgstr "Delete %s" -#: classes/Gems/Controller/BrowseEditAction.php:395 -#: classes/Gems/Default/TrackFieldsAction.php:137 -#: classes/Gems/Default/TrackRoundsAction.php:186 -#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:134 -#: snippets/DeleteTrackTokenSnippet.php:152 +#: classes/Gems/Controller/BrowseEditAction.php:394 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s deleted" -#: classes/Gems/Controller/BrowseEditAction.php:412 -#: classes/Gems/Default/OrganizationAction.php:200 +#: classes/Gems/Controller/BrowseEditAction.php:411 #, php-format msgid "Edit %s %s" msgstr "Edit %s %s" -#: classes/Gems/Controller/BrowseEditAction.php:414 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:269 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:188 +#: classes/Gems/Controller/BrowseEditAction.php:413 #, php-format msgid "Edit %s" msgstr "Edit %s" -#: classes/Gems/Controller/BrowseEditAction.php:515 -#: snippets/Generic/AutosearchFormSnippet.php:134 +#: classes/Gems/Controller/BrowseEditAction.php:514 msgid "Free search text" msgstr "Free search text" -#: classes/Gems/Controller/BrowseEditAction.php:586 -#: snippets/Generic/AutosearchFormSnippet.php:209 +#: classes/Gems/Controller/BrowseEditAction.php:585 msgid "Search" msgstr "Search" -#: classes/Gems/Controller/BrowseEditAction.php:602 -#: classes/Gems/Default/TrackMaintenanceAction.php:361 +#: classes/Gems/Controller/BrowseEditAction.php:601 #, php-format msgid "No %s found" msgstr "No %s found" -#: classes/Gems/Controller/BrowseEditAction.php:686 -#: classes/Gems/Default/ExportAction.php:245 +#: classes/Gems/Controller/BrowseEditAction.php:685 #, php-format msgid "No %s found." msgstr "No %s found." -#: classes/Gems/Controller/BrowseEditAction.php:804 -#: classes/Gems/Default/TrackRoundsAction.php:244 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:94 +#: classes/Gems/Controller/BrowseEditAction.php:803 msgid "Are you sure?" msgstr "Are you sure?" -#: classes/Gems/Controller/BrowseEditAction.php:820 -#: classes/Gems/Default/DatabaseAction.php:187 -#: classes/Gems/Default/DatabaseAction.php:499 -#: classes/Gems/Default/StaffAction.php:276 -#: classes/Gems/Default/TrackAction.php:419 -#: classes/Gems/Default/TrackRoundsAction.php:264 -#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:181 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:143 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:147 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:166 -#: classes/Gems/Util/Translated.php:263 -#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:192 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:124 +#: classes/Gems/Controller/BrowseEditAction.php:819 msgid "Yes" msgstr "Yes" -#: classes/Gems/Controller/BrowseEditAction.php:821 -#: classes/Gems/Default/DatabaseAction.php:188 -#: classes/Gems/Default/DatabaseAction.php:500 -#: classes/Gems/Default/StaffAction.php:277 -#: classes/Gems/Default/TrackAction.php:420 -#: classes/Gems/Default/TrackRoundsAction.php:265 -#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:183 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:144 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:148 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:167 -#: classes/Gems/Util/ReceptionCodeLibrary.php:99 -#: classes/Gems/Util/ReceptionCodeLibrary.php:123 -#: classes/Gems/Util/Translated.php:263 -#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:194 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:125 +#: classes/Gems/Controller/BrowseEditAction.php:820 msgid "No" msgstr "No" -#: classes/Gems/Controller/BrowseEditAction.php:874 -#: classes/Gems/Default/RespondentAction.php:246 -#: classes/Gems/Default/RespondentAction.php:456 -#: classes/Gems/Default/RespondentAction.php:494 -#: classes/Gems/Default/TrackAction.php:547 +#: classes/Gems/Controller/BrowseEditAction.php:873 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" -#: classes/Gems/Controller/BrowseEditAction.php:897 +#: classes/Gems/Controller/BrowseEditAction.php:896 #, php-format msgid "New %1$s..." msgstr "New %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:905 -#: classes/Gems/Email/MailTemplateForm.php:108 -#: classes/Gems/User/Form/ChangePasswordForm.php:341 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:245 +#: classes/Gems/Controller/BrowseEditAction.php:904 msgid "Save" msgstr "Save" -#: classes/Gems/Controller/BrowseEditAction.php:941 -#: classes/Gems/Default/MailTemplateAction.php:116 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:209 +#: classes/Gems/Controller/BrowseEditAction.php:940 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" -#: classes/Gems/Controller/BrowseEditAction.php:944 +#: classes/Gems/Controller/BrowseEditAction.php:943 msgid "No changes to save." msgstr "No changes to save." -#: classes/Gems/Controller/BrowseEditAction.php:953 -#: classes/Gems/Default/RespondentAction.php:307 +#: classes/Gems/Controller/BrowseEditAction.php:952 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" -#: classes/Gems/Controller/BrowseEditAction.php:981 -#: classes/Gems/Default/SurveyMaintenanceAction.php:592 +#: classes/Gems/Controller/BrowseEditAction.php:980 #, php-format msgid "Show %s" msgstr "Show %s" -#: classes/Gems/Controller/BrowseEditAction.php:988 -#: classes/Gems/Default/SurveyMaintenanceAction.php:601 +#: classes/Gems/Controller/BrowseEditAction.php:987 #, php-format msgid "Unknown %s." msgstr "Unknown %s." #: classes/Gems/Controller/ModelActionAbstract.php:97 #: classes/Gems/Default/DatabaseAction.php:503 -#: classes/Gems/Default/SourceAction.php:292 -#: classes/Gems/Default/UpgradeAction.php:184 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:171 -#: classes/Gems/Snippets/ModelItemTableSnippetAbstract.php:180 -#: classes/Gems/Tracker/Snippets/ShowRoundSnippetAbstract.php:193 -#: snippets/Generic/CurrentButtonRowSnippet.php:77 -#: snippets/Track/Token/ShowFirstOpenSnippet.php:133 msgid "Cancel" msgstr "Cancel" @@ -727,8 +587,6 @@ msgstr "Showing %s" #: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 -#: classes/Gems/Default/OptionAction.php:181 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:341 msgid "item" msgid_plural "items" msgstr[0] "item" @@ -765,36 +623,22 @@ msgstr "After answering the survey you will be logged off automatically." #: classes/Gems/Default/AskAction.php:100 -msgid "" -"A token consists of two groups of four letters and numbers, separated by an " -"optional hyphen. Tokens are case insensitive." -msgstr "" -"A token consists of two groups of four letters and numbers, separated by an " -"optional hyphen. Tokens are case insensitive." +msgid "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." +msgstr "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." #: classes/Gems/Default/AskAction.php:101 -msgid "" -"The number zero and the letter O are treated as the same; the same goes for " -"the number one and the letter L." -msgstr "" -"The number zero and the letter O are treated as the same; the same goes for " -"the number one and the letter L." +msgid "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." +msgstr "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." #: classes/Gems/Default/AskAction.php:136 #, php-format -msgid "" -"Thank you for answering. At the moment we have no further surveys for you to " -"take." -msgstr "" -"Thank you for answering. At the moment we have no further surveys for you to " -"take." +msgid "Thank you for answering. At the moment we have no further surveys for you to take." +msgstr "Thank you for answering. At the moment we have no further surveys for you to take." #: classes/Gems/Default/AskAction.php:138 #, php-format -msgid "" -"The survey for token %s has been answered and no further surveys are open." -msgstr "" -"The survey for token %s has been answered and no further surveys are open." +msgid "The survey for token %s has been answered and no further surveys are open." +msgstr "The survey for token %s has been answered and no further surveys are open." #: classes/Gems/Default/AskAction.php:145 #, php-format @@ -808,26 +652,11 @@ #: classes/Gems/Default/ConsentAction.php:68 #: classes/Gems/Default/GroupAction.php:88 -#: classes/Gems/Default/ReceptionAction.php:81 -#: classes/Gems/Default/RoleAction.php:232 -#: classes/Gems/Default/SurveyMaintenanceAction.php:199 -#: classes/Gems/Default/SurveyMaintenanceAction.php:413 -#: classes/Gems/Default/TrackActionAbstract.php:200 -#: classes/Gems/Default/TrackFieldsAction.php:101 -#: classes/Gems/Default/UpgradeAction.php:176 -#: classes/Gems/Export/RespondentExport.php:208 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:740 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:214 -#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:150 -#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:147 -#: snippets/TrackSurveyOverviewSnippet.php:115 msgid "Description" msgstr "Description" #: classes/Gems/Default/ConsentAction.php:70 #: classes/Gems/Default/DatabaseAction.php:139 -#: classes/Gems/Default/TrackFieldsAction.php:97 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:739 msgid "Order" msgstr "Order" @@ -840,12 +669,8 @@ msgstr "Consent code" #: classes/Gems/Default/ConsentAction.php:75 -msgid "" -"Internal code, not visible to users, copied with the token information to " -"the source." -msgstr "" -"Internal code, not visible to users, copied with the token information to " -"the source." +msgid "Internal code, not visible to users, copied with the token information to the source." +msgstr "Internal code, not visible to users, copied with the token information to the source." #: classes/Gems/Default/ConsentAction.php:92 msgid "respondent consent" @@ -894,14 +719,10 @@ msgstr "No mails sent." #: classes/Gems/Default/CronAction.php:226 -#: classes/Gems/Email/MultiMailForm.php:49 -#: classes/Gems/Email/OneMailForm.php:47 msgid "On this test system all mail will be delivered to the from address." msgstr "On this test system all mail will be delivered to the from address." #: classes/Gems/Default/DatabaseAction.php:75 -#: classes/Gems/Default/ProjectInformationAction.php:192 -#: classes/Gems/Task/CleanCache.php:58 msgid "Cache cleaned" msgstr "Cache cleaned" @@ -911,25 +732,18 @@ msgstr "No rows in %s." #: classes/Gems/Default/DatabaseAction.php:134 -#: classes/Gems/Default/TrackFieldsAction.php:104 -#: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Type" msgstr "Type" #: classes/Gems/Default/DatabaseAction.php:138 -#: classes/Gems/Default/SurveyMaintenanceAction.php:434 msgid "Group" msgstr "Group" #: classes/Gems/Default/DatabaseAction.php:140 -#: classes/Gems/Default/OrganizationAction.php:115 msgid "Location" msgstr "Location" #: classes/Gems/Default/DatabaseAction.php:143 -#: classes/Gems/Default/SourceAction.php:210 -#: classes/Gems/Export/RespondentExport.php:151 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:149 msgid "Status" msgstr "Status" @@ -940,7 +754,6 @@ #: classes/Gems/Default/DatabaseAction.php:148 #: classes/Gems/Default/DatabaseAction.php:293 #: classes/Gems/Default/DatabaseAction.php:340 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:204 msgid "Changed on" msgstr "Changed on" @@ -1011,9 +824,6 @@ #: classes/Gems/Default/DatabaseAction.php:287 #: classes/Gems/Default/DatabaseAction.php:333 -#: classes/Gems/Default/UpgradeAction.php:126 -#: classes/Gems/Default/UpgradeAction.php:153 -#: classes/Gems/Default/UpgradeAction.php:175 msgid "Level" msgstr "Level" @@ -1046,7 +856,6 @@ msgstr "%d new or changed patch(es)." #: classes/Gems/Default/DatabaseAction.php:303 -#: classes/Gems/Default/ProjectInformationAction.php:137 msgid "Gems build" msgstr "Gems build" @@ -1071,7 +880,6 @@ msgstr "Show patches" #: classes/Gems/Default/DatabaseAction.php:326 -#: classes/Gems/Task/Db/ExecutePatch.php:68 #, php-format msgid "%d patch(es) executed." msgstr "%d patch(es) executed." @@ -1115,7 +923,6 @@ msgstr "Starting %d object creation scripts." #: classes/Gems/Default/DatabaseAction.php:474 -#: classes/Gems/Task/Db/CreateNewTable.php:73 #, php-format msgid "Finished %s creation script for object %d of %d" msgstr "Finished %s creation script for object %d of %d" @@ -1150,7 +957,6 @@ msgstr "Separate multiple commands with semicolons (;)." #: classes/Gems/Default/DatabaseAction.php:522 -#: classes/Gems/Menu/MenuAbstract.php:275 msgid "Run" msgstr "Run" @@ -1194,14 +1000,6 @@ msgstr "Not patient nr, but respondent id as exported here." #: classes/Gems/Default/ExportAction.php:154 -#: classes/Gems/Default/MailJobAction.php:100 -#: classes/Gems/Default/ProjectSurveysAction.php:67 -#: classes/Gems/Default/SurveyAction.php:191 -#: classes/Gems/Email/OneMailForm.php:57 -#: classes/Gems/Export/RespondentExport.php:148 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:737 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:215 -#: snippets/TrackSurveyOverviewSnippet.php:111 msgid "Survey" msgstr "Survey" @@ -1224,34 +1022,20 @@ #: classes/Gems/Default/GroupAction.php:89 #: classes/Gems/Default/LogAction.php:201 -#: classes/Gems/Default/RoleAction.php:298 msgid "Role" msgstr "Role" #: classes/Gems/Default/GroupAction.php:92 -#: classes/Gems/Default/MailJobAction.php:82 -#: classes/Gems/Default/OrganizationAction.php:139 -#: classes/Gems/Default/ReceptionAction.php:88 -#: classes/Gems/Default/SourceAction.php:101 -#: classes/Gems/Default/SurveyMaintenanceAction.php:425 -#: classes/Gems/Default/SurveyMaintenanceAction.php:480 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:742 -#: classes/Gems/Tracker/Model/TrackModel.php:102 -#: classes/Gems/Util/TrackData.php:147 msgid "Active" msgstr "Active" #: classes/Gems/Default/GroupAction.php:97 -#: classes/Gems/Default/OrganizationAction.php:163 msgid "Allowed IP Ranges" msgstr "Allowed IP Ranges" #: classes/Gems/Default/GroupAction.php:98 -#: classes/Gems/Default/OrganizationAction.php:164 -msgid "" -"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" -msgstr "" -"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +msgstr "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" #: classes/Gems/Default/GroupAction.php:108 msgid "group" @@ -1276,12 +1060,8 @@ msgstr "Please enter your username or e-mail address. " #: classes/Gems/Default/IndexAction.php:182 -msgid "" -"We will then send you an e-mail with a link. The link will bring you to a " -"page where you can set a new password of your choice." -msgstr "" -"We will then send you an e-mail with a link. The link will bring you to a " -"page where you can set a new password of your choice." +msgid "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." +msgstr "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." #: classes/Gems/Default/IndexAction.php:188 msgid "Execute password reset" @@ -1305,7 +1085,6 @@ msgstr "Please enter your password of choice twice." #: classes/Gems/Default/IndexAction.php:218 -#: classes/Gems/User/Form/LayeredLoginForm.php:258 msgid "Department" msgstr "Department" @@ -1324,26 +1103,18 @@ msgstr "Good bye: %s." #: classes/Gems/Default/IndexAction.php:339 -msgid "" -"Your password reset request is no longer valid, please request a new link." -msgstr "" -"Your password reset request is no longer valid, please request a new link." +msgid "Your password reset request is no longer valid, please request a new link." +msgstr "Your password reset request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:341 -msgid "" -"Your password input request is no longer valid, please request a new link." -msgstr "" -"Your password input request is no longer valid, please request a new link." +msgid "Your password input request is no longer valid, please request a new link." +msgstr "Your password input request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:360 -msgid "" -"We sent you an e-mail with a reset link. Click on the link in the e-mail." -msgstr "" -"We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgid "We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgstr "We sent you an e-mail with a reset link. Click on the link in the e-mail." #: classes/Gems/Default/IndexAction.php:369 -#: classes/Gems/Default/OptionAction.php:94 -#: classes/Gems/Default/StaffAction.php:510 msgid "New password is active." msgstr "New password is active." @@ -1356,9 +1127,7 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the " -"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" -"{reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1368,9 +1137,7 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the " -"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" -"{reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1390,32 +1157,26 @@ msgstr "Invalid language setting." #: classes/Gems/Default/LogAction.php:78 -#: classes/Gems/Default/TokenPlanAction.php:243 msgid "from" msgstr "from" #: classes/Gems/Default/LogAction.php:83 -#: classes/Gems/Default/TokenPlanAction.php:248 msgid "until" msgstr "until" #: classes/Gems/Default/LogAction.php:89 -#: classes/Gems/Default/TokenPlanAction.php:254 msgid "days" msgstr "days" #: classes/Gems/Default/LogAction.php:90 -#: classes/Gems/Default/TokenPlanAction.php:255 msgid "weeks" msgstr "weeks" #: classes/Gems/Default/LogAction.php:91 -#: classes/Gems/Default/TokenPlanAction.php:256 msgid "months" msgstr "months" #: classes/Gems/Default/LogAction.php:92 -#: classes/Gems/Default/TokenPlanAction.php:257 msgid "years" msgstr "years" @@ -1452,33 +1213,23 @@ msgstr "All actions" #: classes/Gems/Default/LogAction.php:190 -#: classes/Gems/Default/TrackFieldsAction.php:92 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:472 msgid "Date" msgstr "Date" #: classes/Gems/Default/LogAction.php:191 #: classes/Gems/Default/LogMaintenanceAction.php:52 -#: classes/Gems/Default/UpgradeAction.php:177 msgid "Action" msgstr "Action" #: classes/Gems/Default/LogAction.php:192 -#: classes/Gems/Default/MailTemplateAction.php:66 -#: classes/Gems/Email/EmailFormAbstract.php:168 msgid "Message" msgstr "Message" #: classes/Gems/Default/LogAction.php:198 -#: classes/Gems/Default/TokenPlanAction.php:116 -#: snippets/RespondentDetailsSnippet.php:74 -#: snippets/RespondentDetailsWithAssignmentsSnippet.php:148 msgid "Respondent" msgstr "Patient" #: classes/Gems/Default/LogAction.php:202 -#: classes/Gems/Default/OptionAction.php:175 -#: classes/Gems/User/RadiusUserDefinition.php:163 msgid "IP address" msgstr "IP address" @@ -1492,7 +1243,6 @@ msgstr "Log:" #: classes/Gems/Default/LogMaintenanceAction.php:72 -#: snippets/RespondentTokenTabsSnippet.php:69 msgid "All" msgstr "All" @@ -1506,7 +1256,6 @@ #: classes/Gems/Default/MailJobAction.php:78 #: classes/Gems/Default/MailLogAction.php:118 -#: classes/Gems/Email/EmailFormAbstract.php:308 msgid "Template" msgstr "Template" @@ -1573,10 +1322,6 @@ msgstr "Use the 'By staff member' address" #: classes/Gems/Default/MailJobAction.php:133 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:290 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:338 -#: snippets/Organization/OrganizationEditSnippet.php:85 -#: snippets/Organization/OrganizationEditSnippet.php:131 msgid "Other" msgstr "Other" @@ -1600,12 +1345,8 @@ msgstr "Turn Automatic Mail Jobs ON" #: classes/Gems/Default/MailJobAction.php:176 -msgid "" -"With automatic mail jobs and a cron job on the server, mails can be sent " -"without manual user action." -msgstr "" -"With automatic mail jobs and a cron job on the server, mails can be sent " -"without manual user action." +msgid "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." +msgstr "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." #: classes/Gems/Default/MailLogAction.php:109 msgid "Date sent" @@ -1629,7 +1370,6 @@ #: classes/Gems/Default/MailLogAction.php:115 #: classes/Gems/Default/MailTemplateAction.php:62 -#: classes/Gems/Email/EmailFormAbstract.php:349 msgid "Subject" msgstr "Subject" @@ -1672,7 +1412,6 @@ msgstr "TLS" #: classes/Gems/Default/MailServerAction.php:80 -#: classes/Gems/User/RadiusUserDefinition.php:164 msgid "Port" msgstr "Port" @@ -1685,20 +1424,16 @@ msgstr "User ID" #: classes/Gems/Default/MailServerAction.php:88 -#: classes/Gems/User/Form/LoginForm.php:127 msgid "Password" msgstr "Password" #: classes/Gems/Default/MailServerAction.php:90 #: classes/Gems/Default/SourceAction.php:95 -#: classes/Gems/User/Form/ChangePasswordForm.php:241 -#: classes/Gems/User/Form/ChangePasswordForm.php:287 msgid "Repeat password" msgstr "Repeat password" #: classes/Gems/Default/MailServerAction.php:91 #: classes/Gems/Default/SourceAction.php:74 -#: classes/Gems/User/RadiusUserDefinition.php:169 msgid "Enter only when changing" msgstr "Enter only when changing the password" @@ -1714,8 +1449,6 @@ #: classes/Gems/Default/MailTemplateAction.php:76 #: classes/Gems/Default/RespondentAction.php:349 -#: classes/Gems/Default/StaffAction.php:335 -#: classes/Gems/Default/StaffAction.php:405 msgid "(all organizations)" msgstr "(all organizations)" @@ -1740,7 +1473,6 @@ #: classes/Gems/Default/OptionAction.php:136 #: classes/Gems/Default/OrganizationAction.php:135 #: classes/Gems/Default/RespondentAction.php:195 -#: classes/Gems/Default/StaffAction.php:351 msgid "Language" msgstr "Language" @@ -1750,12 +1482,8 @@ msgstr "Options" #: classes/Gems/Default/OptionAction.php:155 -msgid "" -"This overview provides information about the last login activity on your " -"account." -msgstr "" -"This overview provides information about the last login activity on your " -"account." +msgid "This overview provides information about the last login activity on your account." +msgstr "This overview provides information about the last login activity on your account." #: classes/Gems/Default/OptionAction.php:175 msgid "Date / time" @@ -1766,7 +1494,6 @@ msgstr "Item" #: classes/Gems/Default/OrganizationAction.php:92 -#: classes/Gems/Model/HiddenOrganizationModel.php:113 msgid "Inaccessible or unknown organization" msgstr "Inaccessible or unknown organization" @@ -1796,19 +1523,14 @@ #: classes/Gems/Default/OrganizationAction.php:129 #, php-format -msgid "" -"Always switch to this organization when %s is accessed from one of these " -"space separated url's. The first is used for mails." -msgstr "" -"Always switch to this organization when %s is accessed from one of these " -"space separated url's. The first is used for mails." +msgid "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." +msgstr "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." #: classes/Gems/Default/OrganizationAction.php:139 msgid "Can the organization be used?" msgstr "Can the organization be used?" #: classes/Gems/Default/OrganizationAction.php:140 -#: classes/Gems/User/Form/LoginForm.php:151 msgid "Login" msgstr "Login" @@ -1858,12 +1580,10 @@ msgstr "Checked organizations see this organizations patients." #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Code name" msgstr "Code name" #: classes/Gems/Default/OrganizationAction.php:160 -#: classes/Gems/Default/SurveyMaintenanceAction.php:442 msgid "Only for programmers." msgstr "Only for programmers." @@ -1872,7 +1592,6 @@ msgstr "This can not be changed yet" #: classes/Gems/Default/OrganizationAction.php:180 -#: classes/Gems/Default/StaffAction.php:158 msgid "User Definition" msgstr "User Definition" @@ -1888,9 +1607,6 @@ #: classes/Gems/Default/OverviewPlanAction.php:115 #: classes/Gems/Default/ProjectSurveysAction.php:88 -#: classes/Gems/Default/SurveyAction.php:207 -#: classes/Gems/Default/SurveyMaintenanceAction.php:558 -#: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:157 msgid "survey" msgid_plural "surveys" msgstr[0] "survey" @@ -2009,31 +1725,20 @@ msgstr "Session content" #: classes/Gems/Default/ProjectInformationAction.php:225 -#: classes/Gems/Menu/MenuAbstract.php:341 msgid "Session" msgstr "Session" #: classes/Gems/Default/ProjectSurveysAction.php:68 -#: classes/Gems/Default/SurveyAction.php:192 -#: snippets/TrackSurveyOverviewSnippet.php:113 msgid "By" msgstr "By" #: classes/Gems/Default/ProjectSurveysAction.php:69 #: classes/Gems/Default/ProjectTracksAction.php:67 -#: classes/Gems/Default/SurveyAction.php:193 -#: classes/Gems/Default/TrackAction.php:330 -#: classes/Gems/Email/EmailFormAbstract.php:193 -#: classes/Gems/Email/EmailFormAbstract.php:251 -#: classes/Gems/Email/MailTemplateForm.php:81 -#: classes/Gems/Tracker/Model/TrackModel.php:103 msgid "From" msgstr "From" #: classes/Gems/Default/ProjectSurveysAction.php:70 #: classes/Gems/Default/ProjectTracksAction.php:68 -#: classes/Gems/Default/SurveyAction.php:197 -#: classes/Gems/Default/TrackAction.php:332 msgid "Until" msgstr "Until" @@ -2042,15 +1747,10 @@ msgstr "Active surveys" #: classes/Gems/Default/ProjectTracksAction.php:65 -#: classes/Gems/Default/TrackAction.php:329 msgid "Survey #" msgstr "Survey #" #: classes/Gems/Default/ProjectTracksAction.php:85 -#: classes/Gems/Default/TrackAction.php:452 -#: classes/Gems/Default/TrackMaintenanceAction.php:309 -#: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:191 -#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:170 msgid "track" msgid_plural "tracks" msgstr[0] "track" @@ -2066,7 +1766,6 @@ msgstr "Questions in survey %s" #: classes/Gems/Default/ProjectTracksAction.php:118 -#: classes/Gems/Default/SurveyAction.php:85 #, php-format msgid "Survey %s does not exist." msgstr "Survey %s does not exist." @@ -2076,7 +1775,6 @@ msgstr "Survey not specified." #: classes/Gems/Default/ProjectTracksAction.php:132 -#: classes/Gems/Default/TrackActionAbstract.php:492 #, php-format msgid "Track %s does not exist." msgstr "Track %s does not exist." @@ -2205,7 +1903,6 @@ msgstr "Has the patient signed the informed consent letter?" #: classes/Gems/Default/RespondentAction.php:228 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:203 msgid "Comments" msgstr "Comments" @@ -2214,11 +1911,6 @@ msgstr "Treatment" #: classes/Gems/Default/RespondentAction.php:257 -#: classes/Gems/Default/TrackAction.php:132 -#: classes/Gems/Default/TrackAction.php:479 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:212 -#: snippets/DeleteInSourceTrackSnippet.php:112 -#: snippets/EditTrackSnippet.php:94 msgid "Rejection code" msgstr "Rejection code" @@ -2235,7 +1927,6 @@ msgstr "Patient tracks stopped." #: classes/Gems/Default/RespondentAction.php:304 -#: classes/Gems/Default/TrackAction.php:405 msgid "Choose a reception code to delete." msgstr "Choose a reception code to delete." @@ -2250,8 +1941,6 @@ msgstr "Please settle the informed consent form for this patient." #: classes/Gems/Default/RespondentExportAction.php:54 -#: classes/Gems/Default/TrackAction.php:121 -#: snippets/DeleteInSourceTrackSnippet.php:82 snippets/EditTrackSnippet.php:72 msgid "Respondent number" msgstr "Patient number" @@ -2260,37 +1949,18 @@ msgstr "Separate multiple respondents with a comma (,)" #: classes/Gems/Default/RespondentPlanAction.php:67 -#: classes/Gems/Default/SurveyAction.php:171 -#: classes/Gems/Default/TrackAction.php:297 -#: snippets/DeleteInSourceTrackSnippet.php:132 -#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:174 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:145 -#: snippets/DeleteTrackTokenSnippet.php:195 -#: snippets/EditSingleSurveyTokenSnippet.php:134 -#: snippets/EditTrackSnippet.php:109 snippets/EditTrackTokenSnippet.php:144 -#: snippets/ShowSingleSurveyTokenSnippet.php:140 -#: snippets/ShowTrackTokenSnippet.php:146 msgid "Show respondent" msgstr "Show patient" #: classes/Gems/Default/RespondentPlanAction.php:73 -#: classes/Gems/Default/TrackAction.php:266 -#: classes/Gems/Default/TrackAction.php:285 -#: snippets/DeleteInSourceTrackSnippet.php:129 -#: snippets/EditTrackSnippet.php:107 snippets/EditTrackTokenSnippet.php:142 -#: snippets/ShowTrackTokenSnippet.php:145 msgid "Show track" msgstr "Show track" #: classes/Gems/Default/RespondentPlanAction.php:136 -#: classes/Gems/Default/TrackAction.php:317 -#: snippets/ShowTrackUsageSnippet.php:103 msgid " of " msgstr " of " #: classes/Gems/Default/RespondentPlanAction.php:137 -#: classes/Gems/Default/TrackAction.php:318 -#: snippets/ShowTrackUsageSnippet.php:104 msgid "Progress" msgstr "Progress" @@ -2389,40 +2059,20 @@ msgstr "Database Password" #: classes/Gems/Default/SourceAction.php:115 -msgid "" -"Check tokens for being answered or not, reruns survey and round event code " -"on completed tokens and recalculates the start and end times of all tokens " -"in tracks that have completed tokens." -msgstr "" -"Check tokens for being answered or not, reruns survey and round event code " -"on completed tokens and recalculates the start and end times of all tokens " -"in tracks that have completed tokens." +msgid "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." +msgstr "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." #: classes/Gems/Default/SourceAction.php:116 -msgid "" -"Run this code when survey result fields, survey or round events or the event " -"code has changed or after bulk changes in a survey source." -msgstr "" -"Run this code when survey result fields, survey or round events or the event " -"code has changed or after bulk changes in a survey source." +msgid "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." +msgstr "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." #: classes/Gems/Default/SourceAction.php:126 -msgid "" -"Check source for new surveys, changes in survey status and survey deletion. " -"Can also perform maintenance on some sources, e.g. by changing the number of " -"attributes." -msgstr "" -"Check source for new surveys, changes in survey status and survey deletion. " -"Can also perform maintenance on some sources, e.g. by changing the number of " -"attributes." +msgid "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." +msgstr "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." #: classes/Gems/Default/SourceAction.php:127 -msgid "" -"Run this code when the status of a survey in a source has changed or when " -"the code has changed and the source must be adapted." -msgstr "" -"Run this code when the status of a survey in a source has changed or when " -"the code has changed and the source must be adapted." +msgid "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." +msgstr "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." #: classes/Gems/Default/SourceAction.php:140 #, php-format @@ -2434,12 +2084,8 @@ msgstr "Refreshes the attributes for a token as stored in the source." #: classes/Gems/Default/SourceAction.php:146 -msgid "" -"Run this code when the number of attributes has changed or when you suspect " -"the attributes have been corrupted somehow." -msgstr "" -"Run this code when the number of attributes has changed or when you suspect " -"the attributes have been corrupted somehow." +msgid "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." +msgstr "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." #: classes/Gems/Default/SourceAction.php:159 #, php-format @@ -2493,7 +2139,6 @@ msgstr[1] "sources" #: classes/Gems/Default/SourceAction.php:249 -#: classes/Gems/Menu/MenuAbstract.php:436 msgid "Survey Sources" msgstr "Survey Sources" @@ -2536,15 +2181,10 @@ #: classes/Gems/Default/StaffAction.php:268 #, php-format -msgid "" -"User with id %s already exists but is deleted, do you want to reactivate the " -"account?" -msgstr "" -"User with id %s already exists but is deleted, do you want to reactivate the " -"account?" +msgid "User with id %s already exists but is deleted, do you want to reactivate the account?" +msgstr "User with id %s already exists but is deleted, do you want to reactivate the account?" -#: classes/Gems/Default/StaffAction.php:327 classes/Gems/User/User.php:1181 -#: classes/Gems/User/Form/OrganizationFormAbstract.php:232 +#: classes/Gems/Default/StaffAction.php:327 msgid "Username" msgstr "Username" @@ -2576,7 +2216,6 @@ msgstr "You are not allowed to change this password." #: classes/Gems/Default/SurveyAction.php:64 -#: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:179 msgid "Add survey" msgstr "Add survey" @@ -2613,15 +2252,10 @@ msgstr "Assignments of this survey to %s" #: classes/Gems/Default/SurveyAction.php:165 -#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:173 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:144 -#: snippets/EditSingleSurveyTokenSnippet.php:133 -#: snippets/ShowSingleSurveyTokenSnippet.php:139 msgid "Show surveys" msgstr "Show surveys" #: classes/Gems/Default/SurveyAction.php:212 -#: snippets/RespondentDetailsWithAssignmentsSnippet.php:77 msgid "Assigned surveys" msgstr "Assigned surveys" @@ -2658,12 +2292,8 @@ msgstr "Create Single Survey" #: classes/Gems/Default/SurveyMaintenanceAction.php:211 -msgid "" -"At the moment this survey can only be assigned to respondents as part ... [truncated message content] |
From: <gem...@li...> - 2012-09-25 15:34:55
|
Revision: 956 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=956&view=rev Author: matijsdejong Date: 2012-09-25 15:34:45 +0000 (Tue, 25 Sep 2012) Log Message: ----------- snippets/Generic are no longer needed with current loader Modified Paths: -------------- trunk/library/classes/Gems/Controller/ModelSnippetActionAbstract.php trunk/library/classes/Gems/Snippets/ModelFormSnippetGeneric.php trunk/library/classes/Gems/Snippets/ModelItemYesNoDeleteSnippetGeneric.php trunk/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php trunk/library/classes/Gems/Snippets/ModelTableSnippetGeneric.php trunk/library/snippets/Generic/ModelFormSnippet.php trunk/library/snippets/Generic/ModelItemYesNoDeleteSnippet.php trunk/library/snippets/Generic/ModelTabFormSnippet.php trunk/library/snippets/Generic/ModelTableSnippet.php Modified: trunk/library/classes/Gems/Controller/ModelSnippetActionAbstract.php =================================================================== --- trunk/library/classes/Gems/Controller/ModelSnippetActionAbstract.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/classes/Gems/Controller/ModelSnippetActionAbstract.php 2012-09-25 15:34:45 UTC (rev 956) @@ -64,21 +64,21 @@ * * @var mixed String or array of snippets name */ - protected $autofilterSnippets = 'Generic_ModelTableSnippet'; + protected $autofilterSnippets = 'ModelTableSnippetGeneric'; /** * The snippets used for the create and edit actions. * * @var mixed String or array of snippets name */ - protected $createEditSnippets = 'Generic_ModelFormSnippet'; + protected $createEditSnippets = 'ModelFormSnippetGeneric'; /** * The snippets used for the delete action. * * @var mixed String or array of snippets name */ - protected $deleteSnippets = 'Generic_ModelItemYesNoDeleteSnippet'; + protected $deleteSnippets = 'ModelItemYesNoDeleteSnippetGeneric'; /** * Modified: trunk/library/classes/Gems/Snippets/ModelFormSnippetGeneric.php =================================================================== --- trunk/library/classes/Gems/Snippets/ModelFormSnippetGeneric.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/classes/Gems/Snippets/ModelFormSnippetGeneric.php 2012-09-25 15:34:45 UTC (rev 956) @@ -38,8 +38,6 @@ /** * Displays an edit form based on the model the model set through the $model snippet parameter. * - * If you want to use this class "as is" use the 'Generic_ModelFormSnippet' snippet. - * * This class is not in the standard snippet loading directories and does not follow * their naming conventions, but exists only to make it simple to extend this class * for a specific implementation. Modified: trunk/library/classes/Gems/Snippets/ModelItemYesNoDeleteSnippetGeneric.php =================================================================== --- trunk/library/classes/Gems/Snippets/ModelItemYesNoDeleteSnippetGeneric.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/classes/Gems/Snippets/ModelItemYesNoDeleteSnippetGeneric.php 2012-09-25 15:34:45 UTC (rev 956) @@ -40,8 +40,6 @@ * * Can be used for other uses than delete by overriding performAction(). * - * If you want to use this class "as is" use the 'Generic_ModelItemYesNoDeleteSnippet' snippet. - * * This class is not in the standard snippet loading directories and does not follow * their naming conventions, but exists only to make it simple to extend this class * for a specific implementation. Modified: trunk/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php =================================================================== --- trunk/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/classes/Gems/Snippets/ModelTabFormSnippetGeneric.php 2012-09-25 15:34:45 UTC (rev 956) @@ -2,7 +2,7 @@ /** * Copyright (c) 2011, Erasmus MC * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright @@ -13,7 +13,7 @@ * * Neither the name of Erasmus MC nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -24,7 +24,7 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * @package Gems * @subpackage Snippets * @copyright Copyright (c) 2011 Erasmus MC @@ -35,8 +35,6 @@ /** * Displays an edit form using tabs based on the model the model set through the $model snippet parameter. * - * If you want to use this class "as is" use the 'Generic_ModelTabFormSnippet' snippet. - * * This class is not in the standard snippet loading directories and does not follow * their naming conventions, but exists only to make it simple to extend this class * for a specific implementation. Modified: trunk/library/classes/Gems/Snippets/ModelTableSnippetGeneric.php =================================================================== --- trunk/library/classes/Gems/Snippets/ModelTableSnippetGeneric.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/classes/Gems/Snippets/ModelTableSnippetGeneric.php 2012-09-25 15:34:45 UTC (rev 956) @@ -39,8 +39,6 @@ * Displays multiple items from a model in a tabel by row using * the model set through the $model snippet parameter. * - * If you want to use this class "as is" use the 'Generic_ModelTableSnippet' snippet. - * * This class is not in the standard snippet loading directories and does not follow * their naming conventions, but exists only to make it simple to extend this class * for a specific implementation. Modified: trunk/library/snippets/Generic/ModelFormSnippet.php =================================================================== --- trunk/library/snippets/Generic/ModelFormSnippet.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/snippets/Generic/ModelFormSnippet.php 2012-09-25 15:34:45 UTC (rev 956) @@ -38,8 +38,11 @@ /** * Displays an edit form based on the model the model set through the $model snippet parameter. * - * Usage snippet for Gems_Snippets_ModelTableSnippetGeneric + * Usage snippet for Gems_Controller_ModelSnippetActionAbstract * + * @see Gems_Controller_ModelSnippetActionAbstract + * + * @deprecated No longer needed with new snippet loader * @package Gems * @subpackage Snippets\Generic * @copyright Copyright (c) 2011 Erasmus MC Modified: trunk/library/snippets/Generic/ModelItemYesNoDeleteSnippet.php =================================================================== --- trunk/library/snippets/Generic/ModelItemYesNoDeleteSnippet.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/snippets/Generic/ModelItemYesNoDeleteSnippet.php 2012-09-25 15:34:45 UTC (rev 956) @@ -39,6 +39,7 @@ * Displays each fields of a single item in a model in a row in a Html table * the model set through the $model snippet parameter. * + * @deprecated No longer needed with new snippet loader * @package Gems * @subpackage Snippets\Generic * @copyright Copyright (c) 2011 Erasmus MC Modified: trunk/library/snippets/Generic/ModelTabFormSnippet.php =================================================================== --- trunk/library/snippets/Generic/ModelTabFormSnippet.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/snippets/Generic/ModelTabFormSnippet.php 2012-09-25 15:34:45 UTC (rev 956) @@ -38,6 +38,7 @@ * * Usage snippet for Gems_Snippets_ModelTabFormSnippetGeneric * + * @deprecated No longer needed with new snippet loader * @package Gems * @subpackage Snippets\Generic * @copyright Copyright (c) 2011 Erasmus MC Modified: trunk/library/snippets/Generic/ModelTableSnippet.php =================================================================== --- trunk/library/snippets/Generic/ModelTableSnippet.php 2012-09-25 14:30:28 UTC (rev 955) +++ trunk/library/snippets/Generic/ModelTableSnippet.php 2012-09-25 15:34:45 UTC (rev 956) @@ -39,8 +39,11 @@ * Displays multiple items from a model in a tabel by row using * the model set through the $model snippet parameter. * - * Usage snippet for Gems_Snippets_ModelTableSnippetGeneric + * Usage snippet for Gems_Controller_ModelSnippetActionAbstract * + * @see Gems_Controller_ModelSnippetActionAbstract + * + * @deprecated No longer needed with new snippet loader * @package MUtil * @subpackage Snippets\Generic * @copyright Copyright (c) 2011 Erasmus MC This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-10-10 16:00:55
|
Revision: 975 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=975&view=rev Author: matijsdejong Date: 2012-10-10 16:00:45 +0000 (Wed, 10 Oct 2012) Log Message: ----------- Track end dates can now be edited and are shown Modified Paths: -------------- trunk/library/classes/Gems/Default/TrackActionAbstract.php trunk/library/classes/Gems/Tracker/RespondentTrack.php trunk/library/classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po trunk/library/snippets/EditTrackSnippet.php Modified: trunk/library/classes/Gems/Default/TrackActionAbstract.php =================================================================== --- trunk/library/classes/Gems/Default/TrackActionAbstract.php 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/classes/Gems/Default/TrackActionAbstract.php 2012-10-10 16:00:45 UTC (rev 975) @@ -208,6 +208,9 @@ 'dateFormat', 'dd-MM-yyyy', 'formatFunction', $this->util->getTranslated()->formatDate, 'default', new Zend_Date()); + $model->set('gr2t_end_date', 'label', $this->_('Ending on'), + 'dateFormat', 'dd-MM-yyyy', + 'formatFunction', $this->util->getTranslated()->formatDate); $model->set('gr2t_reception_code'); $model->set('gr2t_comment', 'label', $this->_('Comment')); Modified: trunk/library/classes/Gems/Tracker/RespondentTrack.php =================================================================== --- trunk/library/classes/Gems/Tracker/RespondentTrack.php 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/classes/Gems/Tracker/RespondentTrack.php 2012-10-10 16:00:45 UTC (rev 975) @@ -146,8 +146,11 @@ //Handle TrackCompletionEvent, send only changed fields in $values array $this->tracker->filterChangesOnly($this->_respTrackData, $values); $this->handleTrackCompletion($values, $userId); - } else { - $values['gr2t_end_date'] = null; + // } else { + // NOTE: end date should not be set to null if already set, i.e. the end date should not change + // as it is sometimes set manually or by calculation and rounds can use the date for calculation + // (Matijs, 10 October 2012) + // $values['gr2t_end_date'] = null; } return $this->_updateTrack($values, $userId); @@ -228,6 +231,7 @@ private function _updateTrack(array $values, $userId) { + // MUtil_Echo::track($values); if ($this->tracker->filterChangesOnly($this->_respTrackData, $values)) { $where = $this->db->quoteInto('gr2t_id_respondent_track = ?', $this->_respTrackId); @@ -247,6 +251,7 @@ } $this->_respTrackData = $values + $this->_respTrackData; + // MUtil_Echo::track($values); // return 1; return $this->db->update('gems__respondent2track', $values, $where); @@ -671,6 +676,20 @@ } /** + * Set the end date for this respondent track. + * + * @param mixed $endDate The new end date for this track + * @param int $userId The current user + * @return int 1 if the token has changed, 0 otherwise + */ + public function setEndDate($endDate, $userId) + { + $values['gr2t_end_date'] = $endDate; + + return $this->_updateTrack($values, $userId); + } + + /** * Set the reception code for this respondent track and make sure the * necessary cascade to the tokens and thus the source takes place. * Modified: trunk/library/classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php 2012-10-10 16:00:45 UTC (rev 975) @@ -153,6 +153,10 @@ 'dateFormat', 'dd-MM-yyyy', 'formatFunction', $this->loader->getUtil()->getTranslated()->formatDate, 'default', new Zend_Date()); + $model->set('gr2t_end_date', 'label', $this->_('Ending on'), + 'dateFormat', 'dd-MM-yyyy', + 'formatFunction', $this->loader->getUtil()->getTranslated()->formatDate, + 'default', new Zend_Date()); $model->set('gr2t_reception_code'); $model->set('gr2t_comment', 'label', $this->_('Comment')); Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/languages/default-en.po 2012-10-10 16:00:45 UTC (rev 975) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-09-24 11:55+0100\n" +"POT-Creation-Date: 2012-10-10 17:58+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -495,69 +495,69 @@ msgid "Edit %s" msgstr "Edit %s" -#: classes/Gems/Controller/BrowseEditAction.php:514 +#: classes/Gems/Controller/BrowseEditAction.php:516 msgid "Free search text" msgstr "Free search text" -#: classes/Gems/Controller/BrowseEditAction.php:585 +#: classes/Gems/Controller/BrowseEditAction.php:587 msgid "Search" msgstr "Search" -#: classes/Gems/Controller/BrowseEditAction.php:601 +#: classes/Gems/Controller/BrowseEditAction.php:603 #, php-format msgid "No %s found" msgstr "No %s found" -#: classes/Gems/Controller/BrowseEditAction.php:685 +#: classes/Gems/Controller/BrowseEditAction.php:690 #, php-format msgid "No %s found." msgstr "No %s found." -#: classes/Gems/Controller/BrowseEditAction.php:803 +#: classes/Gems/Controller/BrowseEditAction.php:805 msgid "Are you sure?" msgstr "Are you sure?" -#: classes/Gems/Controller/BrowseEditAction.php:819 +#: classes/Gems/Controller/BrowseEditAction.php:821 msgid "Yes" msgstr "Yes" -#: classes/Gems/Controller/BrowseEditAction.php:820 +#: classes/Gems/Controller/BrowseEditAction.php:822 msgid "No" msgstr "No" -#: classes/Gems/Controller/BrowseEditAction.php:873 +#: classes/Gems/Controller/BrowseEditAction.php:875 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" -#: classes/Gems/Controller/BrowseEditAction.php:896 +#: classes/Gems/Controller/BrowseEditAction.php:898 #, php-format msgid "New %1$s..." msgstr "New %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:904 +#: classes/Gems/Controller/BrowseEditAction.php:906 msgid "Save" msgstr "Save" -#: classes/Gems/Controller/BrowseEditAction.php:940 +#: classes/Gems/Controller/BrowseEditAction.php:942 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" -#: classes/Gems/Controller/BrowseEditAction.php:943 +#: classes/Gems/Controller/BrowseEditAction.php:945 msgid "No changes to save." msgstr "No changes to save." -#: classes/Gems/Controller/BrowseEditAction.php:952 +#: classes/Gems/Controller/BrowseEditAction.php:954 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" -#: classes/Gems/Controller/BrowseEditAction.php:980 +#: classes/Gems/Controller/BrowseEditAction.php:982 #, php-format msgid "Show %s" msgstr "Show %s" -#: classes/Gems/Controller/BrowseEditAction.php:987 +#: classes/Gems/Controller/BrowseEditAction.php:989 #, php-format msgid "Unknown %s." msgstr "Unknown %s." @@ -651,7 +651,7 @@ msgstr "The survey for token %s is no longer active." #: classes/Gems/Default/ConsentAction.php:68 -#: classes/Gems/Default/GroupAction.php:88 +#: classes/Gems/Default/GroupAction.php:116 msgid "Description" msgstr "Description" @@ -710,15 +710,15 @@ msgid "Links concerning this web application:" msgstr "Links concerning this web application:" -#: classes/Gems/Default/CronAction.php:148 +#: classes/Gems/Default/CronAction.php:133 msgid "Cron jobs turned off." msgstr "Cron jobs turned off." -#: classes/Gems/Default/CronAction.php:223 +#: classes/Gems/Default/CronAction.php:192 msgid "No mails sent." msgstr "No mails sent." -#: classes/Gems/Default/CronAction.php:226 +#: classes/Gems/Default/CronAction.php:195 msgid "On this test system all mail will be delivered to the from address." msgstr "On this test system all mail will be delivered to the from address." @@ -1020,30 +1020,34 @@ msgid "Export data" msgstr "Export data" -#: classes/Gems/Default/GroupAction.php:89 +#: classes/Gems/Default/GroupAction.php:71 +msgid "Can be assigned to" +msgstr "Can be assigned to" + +#: classes/Gems/Default/GroupAction.php:117 #: classes/Gems/Default/LogAction.php:201 msgid "Role" msgstr "Role" -#: classes/Gems/Default/GroupAction.php:92 +#: classes/Gems/Default/GroupAction.php:120 msgid "Active" msgstr "Active" -#: classes/Gems/Default/GroupAction.php:97 +#: classes/Gems/Default/GroupAction.php:125 msgid "Allowed IP Ranges" msgstr "Allowed IP Ranges" -#: classes/Gems/Default/GroupAction.php:98 +#: classes/Gems/Default/GroupAction.php:126 msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" msgstr "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" -#: classes/Gems/Default/GroupAction.php:108 +#: classes/Gems/Default/GroupAction.php:136 msgid "group" msgid_plural "groups" msgstr[0] "group" msgstr[1] "groups" -#: classes/Gems/Default/GroupAction.php:113 +#: classes/Gems/Default/GroupAction.php:141 msgid "Administrative groups" msgstr "Administrative groups" @@ -1779,10 +1783,6 @@ msgid "Track %s does not exist." msgstr "Track %s does not exist." -#: classes/Gems/Default/ReceptionAction.php:55 -msgid "Can be assigned to" -msgstr "Can be assigned to" - #: classes/Gems/Default/ReceptionAction.php:56 msgid "Additional action" msgstr "Additional action" @@ -1795,55 +1795,55 @@ msgid "Is success code" msgstr "Is success code" -#: classes/Gems/Default/ReceptionAction.php:87 +#: classes/Gems/Default/ReceptionAction.php:86 msgid "This reception code is a success code." msgstr "This reception code is a success code." -#: classes/Gems/Default/ReceptionAction.php:91 +#: classes/Gems/Default/ReceptionAction.php:90 msgid "Only active codes can be selected." msgstr "Only active codes can be selected." -#: classes/Gems/Default/ReceptionAction.php:92 +#: classes/Gems/Default/ReceptionAction.php:91 msgid "For respondents" msgstr "For patients" -#: classes/Gems/Default/ReceptionAction.php:95 +#: classes/Gems/Default/ReceptionAction.php:94 msgid "This reception code can be assigned to a respondent." msgstr "This reception code can be assigned to a patient." -#: classes/Gems/Default/ReceptionAction.php:96 +#: classes/Gems/Default/ReceptionAction.php:95 msgid "For tracks" msgstr "For tracks" -#: classes/Gems/Default/ReceptionAction.php:99 +#: classes/Gems/Default/ReceptionAction.php:98 msgid "This reception code can be assigned to a track." msgstr "This reception code can be assigned to a track." -#: classes/Gems/Default/ReceptionAction.php:100 +#: classes/Gems/Default/ReceptionAction.php:99 msgid "For surveys" msgstr "For surveys" -#: classes/Gems/Default/ReceptionAction.php:102 +#: classes/Gems/Default/ReceptionAction.php:101 msgid "This reception code can be assigned to a survey." msgstr "This reception code can be assigned to a survey." -#: classes/Gems/Default/ReceptionAction.php:103 +#: classes/Gems/Default/ReceptionAction.php:102 msgid "Redo survey" msgstr "Redo survey" -#: classes/Gems/Default/ReceptionAction.php:105 +#: classes/Gems/Default/ReceptionAction.php:104 msgid "Redo a survey on this reception code." msgstr "Redo a survey on this reception code." -#: classes/Gems/Default/ReceptionAction.php:106 +#: classes/Gems/Default/ReceptionAction.php:105 msgid "Overwrite ansers" msgstr "Overwrite ansers" -#: classes/Gems/Default/ReceptionAction.php:109 +#: classes/Gems/Default/ReceptionAction.php:108 msgid "Remove the consent from already answered surveys." msgstr "Remove the consent from already answered surveys." -#: classes/Gems/Default/ReceptionAction.php:127 +#: classes/Gems/Default/ReceptionAction.php:126 msgid "reception code" msgid_plural "reception codes" msgstr[0] "reception code" @@ -2279,149 +2279,149 @@ msgid "Single Survey Assignment" msgstr "Single Survey Assignment" -#: classes/Gems/Default/SurveyMaintenanceAction.php:200 +#: classes/Gems/Default/SurveyMaintenanceAction.php:201 msgid "Assignable since" msgstr "Assignable since" -#: classes/Gems/Default/SurveyMaintenanceAction.php:201 +#: classes/Gems/Default/SurveyMaintenanceAction.php:202 msgid "Assignable until" msgstr "Assignable until" -#: classes/Gems/Default/SurveyMaintenanceAction.php:207 +#: classes/Gems/Default/SurveyMaintenanceAction.php:208 msgid "Create Single Survey" msgstr "Create Single Survey" -#: classes/Gems/Default/SurveyMaintenanceAction.php:211 +#: classes/Gems/Default/SurveyMaintenanceAction.php:212 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "At the moment this survey can only be assigned to paitents as part of an existing track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:266 +#: classes/Gems/Default/SurveyMaintenanceAction.php:267 msgid "Survey should be assigned to a group before making it active." msgstr "Survey should be assigned to a group before making it active." -#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 #, php-format msgid "Answered surveys: %d." msgstr "Answered surveys: %d." -#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#: classes/Gems/Default/SurveyMaintenanceAction.php:298 #, php-format msgid "Average answer time: %s." msgstr "Average answer time: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:298 +#: classes/Gems/Default/SurveyMaintenanceAction.php:299 #, php-format msgid "Standard deviation: %s." msgstr "Standard deviation: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:314 +#: classes/Gems/Default/SurveyMaintenanceAction.php:315 #, php-format msgid "Median value: %s." msgstr "Median value: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:321 +#: classes/Gems/Default/SurveyMaintenanceAction.php:322 msgid "incalculable" msgstr "incalculable" -#: classes/Gems/Default/SurveyMaintenanceAction.php:334 +#: classes/Gems/Default/SurveyMaintenanceAction.php:335 #, php-format msgid "Checking survey results for the %s survey." msgstr "Checking survey results for the %s survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:338 +#: classes/Gems/Default/SurveyMaintenanceAction.php:339 msgid "This task checks all tokens for this survey." msgstr "This task checks all tokens for this survey." -#: classes/Gems/Default/SurveyMaintenanceAction.php:348 +#: classes/Gems/Default/SurveyMaintenanceAction.php:349 msgid "Checking survey results for all surveys." msgstr "Checking survey results for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:351 +#: classes/Gems/Default/SurveyMaintenanceAction.php:352 msgid "This task checks all tokens for all surveys." msgstr "This task checks all tokens for all surveys." -#: classes/Gems/Default/SurveyMaintenanceAction.php:407 +#: classes/Gems/Default/SurveyMaintenanceAction.php:408 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:415 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 msgid "Source" msgstr "Source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:417 -#: classes/Gems/Default/SurveyMaintenanceAction.php:440 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:441 msgid "Duration description" msgstr "Duration description" -#: classes/Gems/Default/SurveyMaintenanceAction.php:417 -#: classes/Gems/Default/SurveyMaintenanceAction.php:440 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:441 msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." msgstr "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." -#: classes/Gems/Default/SurveyMaintenanceAction.php:419 +#: classes/Gems/Default/SurveyMaintenanceAction.php:420 msgid "Status in source" msgstr "Status in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:422 +#: classes/Gems/Default/SurveyMaintenanceAction.php:423 msgid "Active in source" msgstr "Active in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:423 +#: classes/Gems/Default/SurveyMaintenanceAction.php:424 #, php-format msgid "Active in %s" msgstr "Active in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:430 +#: classes/Gems/Default/SurveyMaintenanceAction.php:431 msgid "Single" msgstr "Single" -#: classes/Gems/Default/SurveyMaintenanceAction.php:439 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "Result field" msgstr "Result field" -#: classes/Gems/Default/SurveyMaintenanceAction.php:444 +#: classes/Gems/Default/SurveyMaintenanceAction.php:445 msgid "Before answering" msgstr "Before answering" -#: classes/Gems/Default/SurveyMaintenanceAction.php:445 +#: classes/Gems/Default/SurveyMaintenanceAction.php:446 msgid "After completion" msgstr "After completion" -#: classes/Gems/Default/SurveyMaintenanceAction.php:446 +#: classes/Gems/Default/SurveyMaintenanceAction.php:447 msgid "Answer display" msgstr "Answer display" -#: classes/Gems/Default/SurveyMaintenanceAction.php:475 +#: classes/Gems/Default/SurveyMaintenanceAction.php:476 msgid "(all groups)" msgstr "(all groups)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:481 +#: classes/Gems/Default/SurveyMaintenanceAction.php:482 msgid "OK in source, not active" msgstr "OK in source, not active" -#: classes/Gems/Default/SurveyMaintenanceAction.php:482 +#: classes/Gems/Default/SurveyMaintenanceAction.php:483 msgid "Blocked in source" msgstr "Blocked in source" -#: classes/Gems/Default/SurveyMaintenanceAction.php:484 +#: classes/Gems/Default/SurveyMaintenanceAction.php:485 msgid "(every state)" msgstr "(every state)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:543 +#: classes/Gems/Default/SurveyMaintenanceAction.php:544 #, php-format msgid "%d times in track." msgstr "%d times in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:545 +#: classes/Gems/Default/SurveyMaintenanceAction.php:546 #, php-format msgid "%d times in %d track(s)." msgstr "%d times in %d track(s)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:549 +#: classes/Gems/Default/SurveyMaintenanceAction.php:550 msgid "Not used in track." msgstr "Not used in track." -#: classes/Gems/Default/SurveyMaintenanceAction.php:551 +#: classes/Gems/Default/SurveyMaintenanceAction.php:552 msgid "Not used in tracks." msgstr "Not used in tracks." @@ -2622,26 +2622,30 @@ msgid "Start" msgstr "Start" -#: classes/Gems/Default/TrackActionAbstract.php:212 +#: classes/Gems/Default/TrackActionAbstract.php:211 +msgid "Ending on" +msgstr "Ending on" + +#: classes/Gems/Default/TrackActionAbstract.php:215 msgid "Comment" msgstr "Comment" -#: classes/Gems/Default/TrackActionAbstract.php:299 +#: classes/Gems/Default/TrackActionAbstract.php:302 #, php-format msgid "Email %s %s" msgstr "Email %s %s" -#: classes/Gems/Default/TrackActionAbstract.php:305 +#: classes/Gems/Default/TrackActionAbstract.php:308 #, php-format msgid "%s %s not found." msgstr "%s %s not found." -#: classes/Gems/Default/TrackActionAbstract.php:482 +#: classes/Gems/Default/TrackActionAbstract.php:485 #, php-format msgid "Overview of %s track for respondent %s" msgstr "Overview of %s track for patient %s" -#: classes/Gems/Default/TrackActionAbstract.php:486 +#: classes/Gems/Default/TrackActionAbstract.php:489 msgid "This track is currently not assigned to this respondent." msgstr "This track is currently not assigned to this patient." @@ -3099,7 +3103,7 @@ msgstr "Synchronize surveys" #: classes/Gems/Menu/MenuAbstract.php:439 -#: classes/Gems/Menu/MenuAbstract.php:451 +#: classes/Gems/Menu/MenuAbstract.php:452 msgid "Check is answered" msgstr "Check is answered" @@ -3112,19 +3116,19 @@ msgstr "Synchronize all surveys" #: classes/Gems/Menu/MenuAbstract.php:442 -#: classes/Gems/Menu/MenuAbstract.php:452 +#: classes/Gems/Menu/MenuAbstract.php:453 msgid "Check all is answered" msgstr "Check all is answered" -#: classes/Gems/Menu/MenuAbstract.php:448 +#: classes/Gems/Menu/MenuAbstract.php:449 msgid "PDF" msgstr "PDF" -#: classes/Gems/Menu/MenuAbstract.php:486 +#: classes/Gems/Menu/MenuAbstract.php:487 msgid "Check assignments" msgstr "Check assignments" -#: classes/Gems/Menu/MenuAbstract.php:489 +#: classes/Gems/Menu/MenuAbstract.php:490 msgid "Check all assignments" msgstr "Check all assignments" @@ -3447,6 +3451,7 @@ msgstr "%d sources checked." #: classes/Gems/Tracker/Engine/AnyStepEngine.php:95 +#: classes/Gems/Tracker/Engine/NextStepEngine.php:92 msgid "This round" msgstr "This round" @@ -3612,13 +3617,11 @@ msgstr "Answers for token %s, patient number %s: %s." #: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:255 -#: classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php:124 #, php-format msgid "Token %s not found." msgstr "Token %s not found." #: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:259 -#: classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php:128 msgid "No token specified." msgstr "No token specified." @@ -3976,7 +3979,6 @@ msgstr "Your birthday" #: classes/Gems/User/User.php:1193 -#: classes/Gems/User/Form/ChangePasswordForm.php:163 #, php-format msgid "%s is not correct." msgstr "%s is not correct." @@ -4057,11 +4059,11 @@ msgid "User not found or no e-mail address known or user cannot be reset." msgstr "User not found or no e-mail address known or user cannot be reset." -#: classes/Gems/Util/DbLookup.php:376 +#: classes/Gems/Util/DbLookup.php:415 msgid "inactive" msgstr "inactive" -#: classes/Gems/Util/DbLookup.php:377 +#: classes/Gems/Util/DbLookup.php:416 msgid "source inactive" msgstr "source inactive" @@ -4445,6 +4447,7 @@ msgstr "Lists choices changed." #: snippets/EditSingleSurveyTokenSnippet.php:132 +#: snippets/ShowSingleSurveyTokenSnippet.php:153 msgid "Show survey" msgstr "Show survey" Modified: trunk/library/languages/default-nl.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-nl.po =================================================================== --- trunk/library/languages/default-nl.po 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/languages/default-nl.po 2012-10-10 16:00:45 UTC (rev 975) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: GemsTracker NL\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-09-24 11:56+0100\n" +"POT-Creation-Date: 2012-10-10 17:58+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" @@ -495,69 +495,69 @@ msgid "Edit %s" msgstr "Bewerk %s" -#: classes/Gems/Controller/BrowseEditAction.php:514 +#: classes/Gems/Controller/BrowseEditAction.php:516 msgid "Free search text" msgstr "Vrije zoek tekst" -#: classes/Gems/Controller/BrowseEditAction.php:585 +#: classes/Gems/Controller/BrowseEditAction.php:587 msgid "Search" msgstr "Zoeken" -#: classes/Gems/Controller/BrowseEditAction.php:601 +#: classes/Gems/Controller/BrowseEditAction.php:603 #, php-format msgid "No %s found" msgstr "Geen %s gevonden" -#: classes/Gems/Controller/BrowseEditAction.php:685 +#: classes/Gems/Controller/BrowseEditAction.php:690 #, php-format msgid "No %s found." msgstr "Geen %s gevonden." -#: classes/Gems/Controller/BrowseEditAction.php:803 +#: classes/Gems/Controller/BrowseEditAction.php:805 msgid "Are you sure?" msgstr "Weet u het zeker?" -#: classes/Gems/Controller/BrowseEditAction.php:819 +#: classes/Gems/Controller/BrowseEditAction.php:821 msgid "Yes" msgstr "Ja" -#: classes/Gems/Controller/BrowseEditAction.php:820 +#: classes/Gems/Controller/BrowseEditAction.php:822 msgid "No" msgstr "Nee" -#: classes/Gems/Controller/BrowseEditAction.php:873 +#: classes/Gems/Controller/BrowseEditAction.php:875 #, php-format msgid "Unknown %s requested" msgstr "Onjuist %s verzoek" -#: classes/Gems/Controller/BrowseEditAction.php:896 +#: classes/Gems/Controller/BrowseEditAction.php:898 #, php-format msgid "New %1$s..." msgstr "Nieuwe %1$s..." -#: classes/Gems/Controller/BrowseEditAction.php:904 +#: classes/Gems/Controller/BrowseEditAction.php:906 msgid "Save" msgstr "Opslaan" -#: classes/Gems/Controller/BrowseEditAction.php:940 +#: classes/Gems/Controller/BrowseEditAction.php:942 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s opgeslagen" -#: classes/Gems/Controller/BrowseEditAction.php:943 +#: classes/Gems/Controller/BrowseEditAction.php:945 msgid "No changes to save." msgstr "Geen verandering om op te slaan." -#: classes/Gems/Controller/BrowseEditAction.php:952 +#: classes/Gems/Controller/BrowseEditAction.php:954 msgid "Input error! No changes saved!" msgstr "Invoer fout! Veranderingen niet opgeslagen!" -#: classes/Gems/Controller/BrowseEditAction.php:980 +#: classes/Gems/Controller/BrowseEditAction.php:982 #, php-format msgid "Show %s" msgstr "Toon %s" -#: classes/Gems/Controller/BrowseEditAction.php:987 +#: classes/Gems/Controller/BrowseEditAction.php:989 #, php-format msgid "Unknown %s." msgstr "%s is onbekend." @@ -651,7 +651,7 @@ msgstr "De vragenlijst voor kenmerk %s is niet meer in gebruik." #: classes/Gems/Default/ConsentAction.php:68 -#: classes/Gems/Default/GroupAction.php:88 +#: classes/Gems/Default/GroupAction.php:116 msgid "Description" msgstr "Omschrijving" @@ -710,15 +710,15 @@ msgid "Links concerning this web application:" msgstr "Links met informatie over deze website:" -#: classes/Gems/Default/CronAction.php:148 +#: classes/Gems/Default/CronAction.php:133 msgid "Cron jobs turned off." msgstr "Cron opdrachten uitgezet." -#: classes/Gems/Default/CronAction.php:223 +#: classes/Gems/Default/CronAction.php:192 msgid "No mails sent." msgstr "Geen mail verzonden." -#: classes/Gems/Default/CronAction.php:226 +#: classes/Gems/Default/CronAction.php:195 msgid "On this test system all mail will be delivered to the from address." msgstr "Op dit test systeem worden alle emails gestuurd naar het \"van\" adres." @@ -1020,30 +1020,34 @@ msgid "Export data" msgstr "Exporteer gegevens" -#: classes/Gems/Default/GroupAction.php:89 +#: classes/Gems/Default/GroupAction.php:71 +msgid "Can be assigned to" +msgstr "Kan toegewezen worden aan" + +#: classes/Gems/Default/GroupAction.php:117 #: classes/Gems/Default/LogAction.php:201 msgid "Role" msgstr "Rol" -#: classes/Gems/Default/GroupAction.php:92 +#: classes/Gems/Default/GroupAction.php:120 msgid "Active" msgstr "Actief" -#: classes/Gems/Default/GroupAction.php:97 +#: classes/Gems/Default/GroupAction.php:125 msgid "Allowed IP Ranges" msgstr "Toegestane IP adres reeksen" -#: classes/Gems/Default/GroupAction.php:98 +#: classes/Gems/Default/GroupAction.php:126 msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" msgstr "Scheiden met | voorbeeld: 10.0.0.0-10.0.0.255 (subnet masks worden niet ondersteund)" -#: classes/Gems/Default/GroupAction.php:108 +#: classes/Gems/Default/GroupAction.php:136 msgid "group" msgid_plural "groups" msgstr[0] "groep" msgstr[1] "groepen" -#: classes/Gems/Default/GroupAction.php:113 +#: classes/Gems/Default/GroupAction.php:141 msgid "Administrative groups" msgstr "Beheer groepen" @@ -1779,10 +1783,6 @@ msgid "Track %s does not exist." msgstr "Trajectnummer %s bestaat niet." -#: classes/Gems/Default/ReceptionAction.php:55 -msgid "Can be assigned to" -msgstr "Kan toegewezen worden aan" - #: classes/Gems/Default/ReceptionAction.php:56 msgid "Additional action" msgstr "Aanvullende actie" @@ -1795,55 +1795,55 @@ msgid "Is success code" msgstr "Is succes code" -#: classes/Gems/Default/ReceptionAction.php:87 +#: classes/Gems/Default/ReceptionAction.php:86 msgid "This reception code is a success code." msgstr "Aanzetten als deze ontvangst code positief is." -#: classes/Gems/Default/ReceptionAction.php:91 +#: classes/Gems/Default/ReceptionAction.php:90 msgid "Only active codes can be selected." msgstr "Alleen actieve codes kunnen geselecteerd worden." -#: classes/Gems/Default/ReceptionAction.php:92 +#: classes/Gems/Default/ReceptionAction.php:91 msgid "For respondents" msgstr "Voor patiënten" -#: classes/Gems/Default/ReceptionAction.php:95 +#: classes/Gems/Default/ReceptionAction.php:94 msgid "This reception code can be assigned to a respondent." msgstr "Deze ontvangstcode kan aan een patiënt toegewezen worden." -#: classes/Gems/Default/ReceptionAction.php:96 +#: classes/Gems/Default/ReceptionAction.php:95 msgid "For tracks" msgstr "Voor trajecten" -#: classes/Gems/Default/ReceptionAction.php:99 +#: classes/Gems/Default/ReceptionAction.php:98 msgid "This reception code can be assigned to a track." msgstr "Deze ontvangstcode kan aan een traject toegewezen worden." -#: classes/Gems/Default/ReceptionAction.php:100 +#: classes/Gems/Default/ReceptionAction.php:99 msgid "For surveys" msgstr "Voor vragenlijsten" -#: classes/Gems/Default/ReceptionAction.php:102 +#: classes/Gems/Default/ReceptionAction.php:101 msgid "This reception code can be assigned to a survey." msgstr "Deze ontvangstcode kan aan een vragenlijst toegewezen worden." -#: classes/Gems/Default/ReceptionAction.php:103 +#: classes/Gems/Default/ReceptionAction.php:102 msgid "Redo survey" msgstr "Vragenlijsten herhalen" -#: classes/Gems/Default/ReceptionAction.php:105 +#: classes/Gems/Default/ReceptionAction.php:104 msgid "Redo a survey on this reception code." msgstr "Herhaal vragenlijst bij deze ontvangstcode." -#: classes/Gems/Default/ReceptionAction.php:106 +#: classes/Gems/Default/ReceptionAction.php:105 msgid "Overwrite ansers" msgstr "Overschrijf bestaande antwoorden" -#: classes/Gems/Default/ReceptionAction.php:109 +#: classes/Gems/Default/ReceptionAction.php:108 msgid "Remove the consent from already answered surveys." msgstr "Verwijder \"informed consent\" van beantwoorde vragenlijsten" -#: classes/Gems/Default/ReceptionAction.php:127 +#: classes/Gems/Default/ReceptionAction.php:126 msgid "reception code" msgid_plural "reception codes" msgstr[0] "Ontvangst code" @@ -2279,149 +2279,149 @@ msgid "Single Survey Assignment" msgstr "Losse vragenlijst toewijzing" -#: classes/Gems/Default/SurveyMaintenanceAction.php:200 +#: classes/Gems/Default/SurveyMaintenanceAction.php:201 msgid "Assignable since" msgstr "Toewijsbaar sinds" -#: classes/Gems/Default/SurveyMaintenanceAction.php:201 +#: classes/Gems/Default/SurveyMaintenanceAction.php:202 msgid "Assignable until" msgstr "Toewijsbaar tot" -#: classes/Gems/Default/SurveyMaintenanceAction.php:207 +#: classes/Gems/Default/SurveyMaintenanceAction.php:208 msgid "Create Single Survey" msgstr "Maak losse vragenlijst" -#: classes/Gems/Default/SurveyMaintenanceAction.php:211 +#: classes/Gems/Default/SurveyMaintenanceAction.php:212 msgid "At the moment this survey can only be assigned to respondents as part of an existing track." msgstr "Op dit moment kan deze vragenlijst alleen aan patiënten toegewezen als onderdeel van een traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:266 +#: classes/Gems/Default/SurveyMaintenanceAction.php:267 msgid "Survey should be assigned to a group before making it active." msgstr "Vragenlijst moet aan een groep toegewezen worden voordat deze actief kan worden gemaakt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:296 +#: classes/Gems/Default/SurveyMaintenanceAction.php:297 #, php-format msgid "Answered surveys: %d." msgstr "Beantwoorde vragenlijsten: %d." -#: classes/Gems/Default/SurveyMaintenanceAction.php:297 +#: classes/Gems/Default/SurveyMaintenanceAction.php:298 #, php-format msgid "Average answer time: %s." msgstr "Gemiddelde antwoordtijd: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:298 +#: classes/Gems/Default/SurveyMaintenanceAction.php:299 #, php-format msgid "Standard deviation: %s." msgstr "Standaard deviatie: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:314 +#: classes/Gems/Default/SurveyMaintenanceAction.php:315 #, php-format msgid "Median value: %s." msgstr "Median waarde: %s." -#: classes/Gems/Default/SurveyMaintenanceAction.php:321 +#: classes/Gems/Default/SurveyMaintenanceAction.php:322 msgid "incalculable" msgstr "onberekenbaar" -#: classes/Gems/Default/SurveyMaintenanceAction.php:334 +#: classes/Gems/Default/SurveyMaintenanceAction.php:335 #, php-format msgid "Checking survey results for the %s survey." msgstr "Controle op vragenlijstresultaten voor de vragenlijst '%s'." -#: classes/Gems/Default/SurveyMaintenanceAction.php:338 +#: classes/Gems/Default/SurveyMaintenanceAction.php:339 msgid "This task checks all tokens for this survey." msgstr "Deze opdracht controleert alle kenmerken voor deze vragenlijst." -#: classes/Gems/Default/SurveyMaintenanceAction.php:348 +#: classes/Gems/Default/SurveyMaintenanceAction.php:349 msgid "Checking survey results for all surveys." msgstr "Controle op vragenlijstresultaten voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:351 +#: classes/Gems/Default/SurveyMaintenanceAction.php:352 msgid "This task checks all tokens for all surveys." msgstr "Deze opdracht controleert alle kenmerken voor alle vragenlijsten." -#: classes/Gems/Default/SurveyMaintenanceAction.php:407 +#: classes/Gems/Default/SurveyMaintenanceAction.php:408 msgid "OK" msgstr "OK" -#: classes/Gems/Default/SurveyMaintenanceAction.php:415 +#: classes/Gems/Default/SurveyMaintenanceAction.php:416 msgid "Source" msgstr "Bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:417 -#: classes/Gems/Default/SurveyMaintenanceAction.php:440 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:441 msgid "Duration description" msgstr "Beschrijving afnametijd" -#: classes/Gems/Default/SurveyMaintenanceAction.php:417 -#: classes/Gems/Default/SurveyMaintenanceAction.php:440 +#: classes/Gems/Default/SurveyMaintenanceAction.php:418 +#: classes/Gems/Default/SurveyMaintenanceAction.php:441 msgid "Text to inform the respondent, e.g. \"20 seconds\" or \"1 minute\"." msgstr "Tekst om de patiënt te informeren, bijv. \"20 seconden\" of \"1 minuut\"." -#: classes/Gems/Default/SurveyMaintenanceAction.php:419 +#: classes/Gems/Default/SurveyMaintenanceAction.php:420 msgid "Status in source" msgstr "Status in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:422 +#: classes/Gems/Default/SurveyMaintenanceAction.php:423 msgid "Active in source" msgstr "Actief in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:423 +#: classes/Gems/Default/SurveyMaintenanceAction.php:424 #, php-format msgid "Active in %s" msgstr "Actief in %s" -#: classes/Gems/Default/SurveyMaintenanceAction.php:430 +#: classes/Gems/Default/SurveyMaintenanceAction.php:431 msgid "Single" msgstr "Los" -#: classes/Gems/Default/SurveyMaintenanceAction.php:439 +#: classes/Gems/Default/SurveyMaintenanceAction.php:440 msgid "Result field" msgstr "Resultaat veld" -#: classes/Gems/Default/SurveyMaintenanceAction.php:444 +#: classes/Gems/Default/SurveyMaintenanceAction.php:445 msgid "Before answering" msgstr "Voor beantwoording" -#: classes/Gems/Default/SurveyMaintenanceAction.php:445 +#: classes/Gems/Default/SurveyMaintenanceAction.php:446 msgid "After completion" msgstr "Na afronding" -#: classes/Gems/Default/SurveyMaintenanceAction.php:446 +#: classes/Gems/Default/SurveyMaintenanceAction.php:447 msgid "Answer display" msgstr "Antwoord weergave" -#: classes/Gems/Default/SurveyMaintenanceAction.php:475 +#: classes/Gems/Default/SurveyMaintenanceAction.php:476 msgid "(all groups)" msgstr "(alle groepen)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:481 +#: classes/Gems/Default/SurveyMaintenanceAction.php:482 msgid "OK in source, not active" msgstr "OK in bron, niet actief" -#: classes/Gems/Default/SurveyMaintenanceAction.php:482 +#: classes/Gems/Default/SurveyMaintenanceAction.php:483 msgid "Blocked in source" msgstr "Gelokkeerd in bron" -#: classes/Gems/Default/SurveyMaintenanceAction.php:484 +#: classes/Gems/Default/SurveyMaintenanceAction.php:485 msgid "(every state)" msgstr "(ieder status)" -#: classes/Gems/Default/SurveyMaintenanceAction.php:543 +#: classes/Gems/Default/SurveyMaintenanceAction.php:544 #, php-format msgid "%d times in track." msgstr "%d keer in traject." -#: classes/Gems/Default/SurveyMaintenanceAction.php:545 +#: classes/Gems/Default/SurveyMaintenanceAction.php:546 #, php-format msgid "%d times in %d track(s)." msgstr "%d keer in %d traject(en)." -#: classes/Gems/Default/SurveyMaintenanceAction.php:549 +#: classes/Gems/Default/SurveyMaintenanceAction.php:550 msgid "Not used in track." msgstr "Niet in traject gebruikt." -#: classes/Gems/Default/SurveyMaintenanceAction.php:551 +#: classes/Gems/Default/SurveyMaintenanceAction.php:552 msgid "Not used in tracks." msgstr "Niet in trajecten gebruikt." @@ -2622,26 +2622,30 @@ msgid "Start" msgstr "Aanvang" -#: classes/Gems/Default/TrackActionAbstract.php:212 +#: classes/Gems/Default/TrackActionAbstract.php:211 +msgid "Ending on" +msgstr "Afgelopen op" + +#: classes/Gems/Default/TrackActionAbstract.php:215 msgid "Comment" msgstr "Opmerkingen" -#: classes/Gems/Default/TrackActionAbstract.php:299 +#: classes/Gems/Default/TrackActionAbstract.php:302 #, php-format msgid "Email %s %s" msgstr "Email %s %s" -#: classes/Gems/Default/TrackActionAbstract.php:305 +#: classes/Gems/Default/TrackActionAbstract.php:308 #, php-format msgid "%s %s not found." msgstr "%s %s niet gevonden." -#: classes/Gems/Default/TrackActionAbstract.php:482 +#: classes/Gems/Default/TrackActionAbstract.php:485 #, php-format msgid "Overview of %s track for respondent %s" msgstr "Overzicht van het %s traject voor patiënt %s " -#: classes/Gems/Default/TrackActionAbstract.php:486 +#: classes/Gems/Default/TrackActionAbstract.php:489 msgid "This track is currently not assigned to this respondent." msgstr "Dit traject is nog niet aan deze patiënt toegewezen." @@ -3099,7 +3103,7 @@ msgstr "Synchroniseer vragenlijsten" #: classes/Gems/Menu/MenuAbstract.php:439 -#: classes/Gems/Menu/MenuAbstract.php:451 +#: classes/Gems/Menu/MenuAbstract.php:452 msgid "Check is answered" msgstr "Controleer op antwoorden" @@ -3112,19 +3116,19 @@ msgstr "Synchroniseer alle vragenlijsten" #: classes/Gems/Menu/MenuAbstract.php:442 -#: classes/Gems/Menu/MenuAbstract.php:452 +#: classes/Gems/Menu/MenuAbstract.php:453 msgid "Check all is answered" msgstr "Controleer alles op antwoorden" -#: classes/Gems/Menu/MenuAbstract.php:448 +#: classes/Gems/Menu/MenuAbstract.php:449 msgid "PDF" msgstr "PDF" -#: classes/Gems/Menu/MenuAbstract.php:486 +#: classes/Gems/Menu/MenuAbstract.php:487 msgid "Check assignments" msgstr "Controleer toewijzingen" -#: classes/Gems/Menu/MenuAbstract.php:489 +#: classes/Gems/Menu/MenuAbstract.php:490 msgid "Check all assignments" msgstr "Controleer alle toewijzingen" @@ -3447,6 +3451,7 @@ msgstr "%d bronnen gecontroleerd." #: classes/Gems/Tracker/Engine/AnyStepEngine.php:95 +#: classes/Gems/Tracker/Engine/NextStepEngine.php:92 msgid "This round" msgstr "Deze ronde" @@ -3612,13 +3617,11 @@ msgstr "Antwoorden voor kenmerk %s, patientnummer %s: %s." #: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:255 -#: classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php:124 #, php-format msgid "Token %s not found." msgstr "Kenmerk %s niet gevonden" #: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:259 -#: classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php:128 msgid "No token specified." msgstr "Geen kenmerk opgegeven." @@ -3976,7 +3979,6 @@ msgstr "Uw geboortedatum" #: classes/Gems/User/User.php:1193 -#: classes/Gems/User/Form/ChangePasswordForm.php:163 #, php-format msgid "%s is not correct." msgstr "%s is onjuist." @@ -4057,11 +4059,11 @@ msgid "User not found or no e-mail address known or user cannot be reset." msgstr "Gebruiker niet gevonden of email adres onbekend of gebruiker kan niet gereset worden." -#: classes/Gems/Util/DbLookup.php:376 +#: classes/Gems/Util/DbLookup.php:415 msgid "inactive" msgstr "inactief" -#: classes/Gems/Util/DbLookup.php:377 +#: classes/Gems/Util/DbLookup.php:416 msgid "source inactive" msgstr "bron inactief" @@ -4445,6 +4447,7 @@ msgstr "Keuzelijst is veranderd." #: snippets/EditSingleSurveyTokenSnippet.php:132 +#: snippets/ShowSingleSurveyTokenSnippet.php:153 msgid "Show survey" msgstr "Toon vragenlijst" Modified: trunk/library/snippets/EditTrackSnippet.php =================================================================== --- trunk/library/snippets/EditTrackSnippet.php 2012-10-09 08:31:04 UTC (rev 974) +++ trunk/library/snippets/EditTrackSnippet.php 2012-10-10 16:00:45 UTC (rev 975) @@ -89,6 +89,7 @@ } else { $bridge->addDate('gr2t_start_date', 'size', 30); } + $bridge->addDate('gr2t_end_date', 'size', 30); if (isset($this->formData['grc_succes']) && $this->formData['grc_succes']) { $bridge->addExhibitor('grc_description', 'label', $this->_('Rejection code')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-10-11 14:17:51
|
Revision: 979 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=979&view=rev Author: matijsdejong Date: 2012-10-11 14:17:37 +0000 (Thu, 11 Oct 2012) Log Message: ----------- Fix for staff menu display. Return type of function had changed Modified Paths: -------------- trunk/library/classes/Gems/Menu/MenuAbstract.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Modified: trunk/library/classes/Gems/Menu/MenuAbstract.php =================================================================== --- trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-10-11 12:14:57 UTC (rev 978) +++ trunk/library/classes/Gems/Menu/MenuAbstract.php 2012-10-11 14:17:37 UTC (rev 979) @@ -413,7 +413,7 @@ if (! $this->escort->hasPrivilege('pr.staff.edit.all')) { $filter = array_keys($this->escort->loader->getCurrentUser()->getAllowedOrganizations()); foreach ($pages as $sub_page) { - $sub_page->setParameterFilter('gsf_id_organization', $filter, 'accessible_role', 1); + $sub_page->setParameterFilter('gsf_id_organization', $filter, 'accessible_role', true); } } Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-10-11 12:14:57 UTC (rev 978) +++ trunk/library/languages/default-en.po 2012-10-11 14:17:37 UTC (rev 979) @@ -2,18 +2,19 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-10 17:58+0100\n" +"POT-Creation-Date: 2012-10-11 14:52+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" +"Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: en_GB\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Poedit-SourceCharset: iso-8859-1\n" "X-Poedit-Basepath: ../\n" "X-Poedit-KeywordsList: plural:1,2\n" +"X-Generator: Poedit 1.5.4\n" "X-Poedit-SearchPath-0: .\n" #: classes/GemsEscort.php:219 @@ -30,8 +31,7 @@ msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:803 -#: classes/Gems/Menu.php:263 +#: classes/GemsEscort.php:803 classes/Gems/Menu.php:263 msgid "Logoff" msgstr "Logoff" @@ -49,15 +49,18 @@ msgstr "version" #: classes/GemsEscort.php:1465 -msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" -msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" +msgid "" +"Take note: your session has expired, your inputs were not saved. Please " +"check the input data and try again" +msgstr "" +"Take note: your session has expired, your inputs were not saved. Please " +"check the input data and try again" #: classes/GemsEscort.php:1594 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1596 -#: classes/GemsEscort.php:1600 +#: classes/GemsEscort.php:1596 classes/GemsEscort.php:1600 #: classes/GemsEscort.php:1601 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" @@ -66,22 +69,22 @@ msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1613 -#: classes/GemsEscort.php:1656 +#: classes/GemsEscort.php:1613 classes/GemsEscort.php:1656 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1629 +#: classes/GemsEscort.php:1629 classes/Gems/Default/StaffAction.php:317 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1631 +#: classes/GemsEscort.php:1631 classes/Gems/Default/OrganizationAction.php:102 +#: classes/Gems/Default/StaffAction.php:318 +#: classes/Gems/Model/HiddenOrganizationModel.php:115 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1641 -#: classes/GemsEscort.php:1654 +#: classes/GemsEscort.php:1641 classes/GemsEscort.php:1654 msgid "You are no longer logged in." msgstr "You are no longer logged in." @@ -89,8 +92,7 @@ msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1783 -#: classes/GemsEscort.php:1785 +#: classes/GemsEscort.php:1783 classes/GemsEscort.php:1785 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -146,7 +148,7 @@ msgid "Project setup" msgstr "Project setup" -#: classes/Gems/Menu.php:170 +#: classes/Gems/Menu.php:170 classes/Gems/Default/SourceAction.php:203 msgid "Database" msgstr "Database" @@ -154,11 +156,11 @@ msgid "Content" msgstr "Content" -#: classes/Gems/Menu.php:177 +#: classes/Gems/Menu.php:177 classes/Gems/Default/DatabaseAction.php:313 msgid "Execute" msgstr "Execute" -#: classes/Gems/Menu.php:182 +#: classes/Gems/Menu.php:182 classes/Gems/Default/DatabaseAction.php:289 msgid "Patches" msgstr "Patches" @@ -174,7 +176,7 @@ msgid "Run SQL" msgstr "Run SQL" -#: classes/Gems/Menu.php:190 +#: classes/Gems/Menu.php:190 classes/Gems/Default/ReceptionAction.php:131 msgid "Reception codes" msgstr "Reception codes" @@ -182,16 +184,16 @@ msgid "Consents" msgstr "Consents" -#: classes/Gems/Menu.php:196 +#: classes/Gems/Menu.php:196 classes/Gems/Default/RoleAction.php:309 msgid "Roles" msgstr "Roles" -#: classes/Gems/Menu.php:197 -#: classes/Gems/Menu.php:391 +#: classes/Gems/Menu.php:197 classes/Gems/Menu.php:391 msgid "Assigned" msgstr "Assigned" -#: classes/Gems/Menu.php:198 +#: classes/Gems/Menu.php:198 classes/Gems/Default/RoleAction.php:238 +#: classes/Gems/Default/RoleAction.php:324 msgid "Privileges" msgstr "Privileges" @@ -200,14 +202,20 @@ msgstr "Groups" #: classes/Gems/Menu.php:204 +#: classes/Gems/Default/SurveyMaintenanceAction.php:204 +#: classes/Gems/Default/TrackMaintenanceAction.php:131 +#: classes/Gems/Email/MailTemplateForm.php:101 +#: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:140 msgid "Organizations" msgstr "Organizations" -#: classes/Gems/Menu.php:207 +#: classes/Gems/Menu.php:207 classes/Gems/Default/GroupAction.php:121 +#: classes/Gems/Default/LogAction.php:193 +#: classes/Gems/Default/StaffAction.php:470 msgid "Staff" msgstr "Staff" -#: classes/Gems/Menu.php:210 +#: classes/Gems/Menu.php:210 classes/Gems/Default/LogAction.php:213 msgid "Logging" msgstr "Logging" @@ -219,14 +227,15 @@ msgid "Upgrade" msgstr "Upgrade" -#: classes/Gems/Menu.php:220 -#: classes/Gems/Menu.php:221 +#: classes/Gems/Menu.php:220 classes/Gems/Menu.php:221 +#: classes/Gems/Default/ProjectInformationAction.php:113 +#: classes/Gems/Default/ProjectInformationAction.php:118 #, php-format msgid "Changelog %s" msgstr "Changelog %s" -#: classes/Gems/Menu.php:222 -#: classes/Gems/Menu.php:355 +#: classes/Gems/Menu.php:222 classes/Gems/Menu.php:355 +#: classes/Gems/Menu/SubMenuItem.php:551 msgid "Show" msgstr "Show" @@ -255,7 +264,7 @@ msgid "Logon" msgstr "Logon" -#: classes/Gems/Menu.php:258 +#: classes/Gems/Menu.php:258 classes/Gems/User/Form/LoginForm.php:112 msgid "Lost password" msgstr "Lost password" @@ -263,40 +272,72 @@ msgid "Your account" msgstr "Your account" -#: classes/Gems/Menu.php:260 +#: classes/Gems/Menu.php:260 classes/Gems/Default/OptionAction.php:153 msgid "Activity overview" msgstr "Activity overview" -#: classes/Gems/Menu.php:261 +#: classes/Gems/Menu.php:261 classes/Gems/Default/OptionAction.php:78 msgid "Change password" msgstr "Change password" -#: classes/Gems/Menu.php:262 -#: classes/Gems/Menu.php:315 -#: classes/Gems/Menu.php:361 +#: classes/Gems/Menu.php:262 classes/Gems/Menu.php:315 +#: classes/Gems/Menu.php:361 classes/Gems/Default/MailLogAction.php:114 +#: classes/Gems/Default/TrackAction.php:459 +#: classes/Gems/Export/RespondentExport.php:147 +#: classes/Gems/Snippets/TokenModelSnippetAbstract.php:70 +#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:482 +#: classes/Gems/Tracker/Form/AskTokenForm.php:77 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:195 +#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:188 +#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:197 +#: snippets/BrowseSingleSurveyTokenSnippet.php:167 +#: snippets/TrackTokenOverviewSnippet.php:132 +#: snippets/Organization/OrganizationEditSnippet.php:89 +#: snippets/Track/Token/ShowAllOpenSnippet.php:88 +#: snippets/Track/Token/ShowFirstOpenSnippet.php:110 msgid "Token" msgstr "Token" -#: classes/Gems/Menu.php:303 +#: classes/Gems/Menu.php:303 classes/Gems/Export/RespondentExport.php:318 msgid "Export" msgstr "Export" -#: classes/Gems/Menu.php:310 +#: classes/Gems/Menu.php:310 classes/Gems/Default/MailJobAction.php:99 +#: classes/Gems/Default/ProjectTracksAction.php:64 +#: classes/Gems/Default/TrackAction.php:328 +#: classes/Gems/Default/TrackActionAbstract.php:203 +#: classes/Gems/Default/TrackFieldsAction.php:96 +#: classes/Gems/Email/OneMailForm.php:54 +#: classes/Gems/Export/RespondentExport.php:224 +#: classes/Gems/Export/RespondentExport.php:236 +#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:484 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:752 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:216 +#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:149 +#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:146 +#: snippets/Track/Token/ShowAllOpenSnippet.php:148 msgid "Track" msgstr "Track" -#: classes/Gems/Menu.php:318 -#: classes/Gems/Menu.php:343 +#: classes/Gems/Menu.php:318 classes/Gems/Menu.php:343 #: classes/Gems/Menu.php:385 +#: classes/Gems/Default/TrackMaintenanceAction.php:367 +#: snippets/AddTracksSnippet.php:242 msgid "Add" msgstr "Add" -#: classes/Gems/Menu.php:324 -#: classes/Gems/Menu.php:424 +#: classes/Gems/Menu.php:324 classes/Gems/Menu.php:424 +#: classes/Gems/Email/EmailFormAbstract.php:280 +#: classes/Gems/Email/EmailFormAbstract.php:291 +#: classes/Gems/Menu/MenuAbstract.php:367 +#: classes/Gems/Menu/MenuAbstract.php:380 msgid "Preview" msgstr "Preview" -#: classes/Gems/Menu.php:333 +#: classes/Gems/Menu.php:333 classes/Gems/Default/ExportAction.php:149 +#: classes/Gems/Default/TrackMaintenanceAction.php:314 +#: classes/Gems/Menu/MenuAbstract.php:376 +#: classes/Gems/Menu/MenuAbstract.php:458 snippets/AddTracksSnippet.php:239 msgid "Tracks" msgstr "Tracks" @@ -304,15 +345,19 @@ msgid "Assignments" msgstr "Assignments" -#: classes/Gems/Menu.php:365 +#: classes/Gems/Menu.php:365 classes/Gems/Menu/SubMenuItem.php:417 msgid "Edit" msgstr "Edit" -#: classes/Gems/Menu.php:371 +#: classes/Gems/Menu.php:371 classes/Gems/Menu/SubMenuItem.php:398 msgid "Delete" msgstr "Delete" #: classes/Gems/Menu.php:378 +#: classes/Gems/Default/SurveyMaintenanceAction.php:564 +#: classes/Gems/Menu/MenuAbstract.php:383 +#: classes/Gems/Menu/MenuAbstract.php:445 +#: classes/Gems/Tracker/Model/TrackModel.php:100 msgid "Surveys" msgstr "Surveys" @@ -329,10 +374,13 @@ msgstr "E-Mail now!" #: classes/Gems/Menu.php:427 +#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:481 msgid "Answers" msgstr "Answers" -#: classes/Gems/Menu.php:579 +#: classes/Gems/Menu.php:579 classes/Gems/Default/GroupAction.php:122 +#: classes/Gems/Default/OrganizationAction.php:150 +#: classes/Gems/Default/RespondentAction.php:425 msgid "Respondents" msgstr "Patients" @@ -340,7 +388,7 @@ msgid "Overview" msgstr "Overview" -#: classes/Gems/Menu.php:594 +#: classes/Gems/Menu.php:594 classes/Gems/Menu/MenuAbstract.php:340 msgid "Project" msgstr "Project" @@ -356,11 +404,13 @@ msgid "Mail" msgstr "Mail" -#: classes/Gems/Menu.php:609 +#: classes/Gems/Menu.php:609 classes/Gems/Default/RespondentAction.php:533 +#: classes/Gems/Default/RespondentExportAction.php:60 msgid "Export respondent" msgstr "Export respondent" -#: classes/Gems/Menu.php:615 +#: classes/Gems/Menu.php:615 classes/Gems/Default/ContactAction.php:101 +#: snippets/Organization/OrganizationEditSnippet.php:82 msgid "Contact" msgstr "Contact" @@ -369,10 +419,19 @@ msgstr "Changelog" #: classes/Gems/Model.php:206 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:213 msgid "Respondent nr" msgstr "Patient nr" -#: classes/Gems/Model.php:209 +#: classes/Gems/Model.php:209 classes/Gems/Default/ExportAction.php:172 +#: classes/Gems/Default/IndexAction.php:229 +#: classes/Gems/Default/LogAction.php:197 +#: classes/Gems/Default/MailJobAction.php:98 +#: classes/Gems/Default/StaffAction.php:340 +#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:63 +#: classes/Gems/User/Form/LayeredLoginForm.php:254 +#: classes/Gems/User/Form/OrganizationFormAbstract.php:166 +#: snippets/Organization/OrganizationEditSnippet.php:80 msgid "Organization" msgstr "Organization" @@ -384,27 +443,44 @@ msgid "Consent" msgstr "Consent" -#: classes/Gems/Model.php:214 +#: classes/Gems/Model.php:214 classes/Gems/Default/OptionAction.php:130 +#: classes/Gems/Default/StaffAction.php:330 msgid "E-Mail" msgstr "E-Mail" -#: classes/Gems/Model.php:219 +#: classes/Gems/Model.php:219 classes/Gems/Default/OptionAction.php:134 +#: classes/Gems/Default/StaffAction.php:343 msgid "Gender" msgstr "Gender" -#: classes/Gems/Model.php:220 +#: classes/Gems/Model.php:220 classes/Gems/Default/OptionAction.php:131 +#: classes/Gems/Default/StaffAction.php:185 msgid "First name" msgstr "First name" -#: classes/Gems/Model.php:221 +#: classes/Gems/Model.php:221 classes/Gems/Default/OptionAction.php:132 +#: classes/Gems/Default/StaffAction.php:187 msgid "Surname prefix" msgstr "Surname prefix" -#: classes/Gems/Model.php:222 +#: classes/Gems/Model.php:222 classes/Gems/Default/OptionAction.php:133 +#: classes/Gems/Default/StaffAction.php:188 msgid "Last name" msgstr "Last name" -#: classes/Gems/Model.php:224 +#: classes/Gems/Model.php:224 classes/Gems/Default/DatabaseAction.php:135 +#: classes/Gems/Default/DatabaseAction.php:335 +#: classes/Gems/Default/GroupAction.php:115 +#: classes/Gems/Default/OrganizationAction.php:122 +#: classes/Gems/Default/RoleAction.php:231 +#: classes/Gems/Default/SourceAction.php:195 +#: classes/Gems/Default/StaffAction.php:328 +#: classes/Gems/Default/SurveyMaintenanceAction.php:413 +#: classes/Gems/Default/TokenPlanAction.php:121 +#: classes/Gems/Default/TrackFieldsAction.php:98 +#: classes/Gems/Default/TrackMaintenanceAction.php:227 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:60 +#: classes/Gems/Tracker/Model/TrackModel.php:98 msgid "Name" msgstr "Name" @@ -417,6 +493,7 @@ msgstr "Zipcode" #: classes/Gems/Model.php:229 +#: classes/Gems/Default/RespondentPlanAction.php:134 msgid "City" msgstr "City" @@ -425,6 +502,7 @@ msgstr "Phone" #: classes/Gems/Model.php:233 +#: classes/Gems/Default/RespondentPlanAction.php:133 msgid "Birthday" msgstr "Birthday" @@ -471,61 +549,110 @@ msgstr "Trying upgrade for %s to level %s: %s" #: classes/Gems/Controller/BrowseEditAction.php:357 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:239 +#: classes/Gems/Default/StaffAction.php:228 +#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:186 #, php-format msgid "New %s..." msgstr "New %s..." #: classes/Gems/Controller/BrowseEditAction.php:390 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:259 +#: classes/Gems/Default/TrackFieldsAction.php:130 +#: classes/Gems/Default/TrackRoundsAction.php:171 #, php-format msgid "Delete %s" msgstr "Delete %s" #: classes/Gems/Controller/BrowseEditAction.php:394 +#: classes/Gems/Default/TrackFieldsAction.php:137 +#: classes/Gems/Default/TrackRoundsAction.php:186 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:134 +#: snippets/DeleteTrackTokenSnippet.php:152 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s deleted" #: classes/Gems/Controller/BrowseEditAction.php:411 +#: classes/Gems/Default/OrganizationAction.php:208 #, php-format msgid "Edit %s %s" msgstr "Edit %s %s" #: classes/Gems/Controller/BrowseEditAction.php:413 +#: classes/Gems/Controller/ModelSnippetActionAbstract.php:269 +#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:188 #, php-format msgid "Edit %s" msgstr "Edit %s" #: classes/Gems/Controller/BrowseEditAction.php:516 +#: classes/Gems/Snippets/AutosearchFormSnippet.php:166 msgid "Free search text" msgstr "Free search text" #: classes/Gems/Controller/BrowseEditAction.php:587 +#: classes/Gems/Snippets/AutosearchFormSnippet.php:241 msgid "Search" msgstr "Search" #: classes/Gems/Controller/BrowseEditAction.php:603 +#: classes/Gems/Default/TrackMaintenanceAction.php:361 #, php-format msgid "No %s found" msgstr "No %s found" #: classes/Gems/Controller/BrowseEditAction.php:690 +#: classes/Gems/Default/ExportAction.php:245 #, php-format msgid "No %s found." msgstr "No %s found." #: classes/Gems/Controller/BrowseEditAction.php:805 +#: classes/Gems/Default/TrackRoundsAction.php:244 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:94 msgid "Are you sure?" msgstr "Are you sure?" #: classes/Gems/Controller/BrowseEditAction.php:821 +#: classes/Gems/Default/DatabaseAction.php:187 +#: classes/Gems/Default/DatabaseAction.php:499 +#: classes/Gems/Default/StaffAction.php:276 +#: classes/Gems/Default/TrackAction.php:419 +#: classes/Gems/Default/TrackRoundsAction.php:265 +#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:181 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:143 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:147 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:166 +#: classes/Gems/Util/Translated.php:263 +#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:192 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:124 msgid "Yes" msgstr "Yes" #: classes/Gems/Controller/BrowseEditAction.php:822 +#: classes/Gems/Default/DatabaseAction.php:188 +#: classes/Gems/Default/DatabaseAction.php:500 +#: classes/Gems/Default/StaffAction.php:277 +#: classes/Gems/Default/TrackAction.php:420 +#: classes/Gems/Default/TrackRoundsAction.php:266 +#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:183 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:144 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:148 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:167 +#: classes/Gems/Util/ReceptionCodeLibrary.php:99 +#: classes/Gems/Util/ReceptionCodeLibrary.php:123 +#: classes/Gems/Util/Translated.php:263 +#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:194 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:125 msgid "No" msgstr "No" #: classes/Gems/Controller/BrowseEditAction.php:875 +#: classes/Gems/Default/RespondentAction.php:246 +#: classes/Gems/Default/RespondentAction.php:478 +#: classes/Gems/Default/RespondentAction.php:516 +#: classes/Gems/Default/TrackAction.php:548 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" @@ -536,10 +663,15 @@ msgstr "New %1$s..." #: classes/Gems/Controller/BrowseEditAction.php:906 +#: classes/Gems/Email/MailTemplateForm.php:108 +#: classes/Gems/User/Form/ChangePasswordForm.php:341 +#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:245 msgid "Save" msgstr "Save" #: classes/Gems/Controller/BrowseEditAction.php:942 +#: classes/Gems/Default/MailTemplateAction.php:116 +#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:209 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" @@ -549,21 +681,31 @@ msgstr "No changes to save." #: classes/Gems/Controller/BrowseEditAction.php:954 +#: classes/Gems/Default/RespondentAction.php:307 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" #: classes/Gems/Controller/BrowseEditAction.php:982 +#: classes/Gems/Default/SurveyMaintenanceAction.php:593 #, php-format msgid "Show %s" msgstr "Show %s" #: classes/Gems/Controller/BrowseEditAction.php:989 +#: classes/Gems/Default/SurveyMaintenanceAction.php:602 #, php-format msgid "Unknown %s." msgstr "Unknown %s." #: classes/Gems/Controller/ModelActionAbstract.php:97 #: classes/Gems/Default/DatabaseAction.php:503 +#: classes/Gems/Default/SourceAction.php:292 +#: classes/Gems/Default/UpgradeAction.php:184 +#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:171 +#: classes/Gems/Snippets/ModelItemTableSnippetAbstract.php:180 +#: classes/Gems/Tracker/Snippets/ShowRoundSnippetAbstract.php:193 +#: snippets/Generic/CurrentButtonRowSnippet.php:77 +#: snippets/Track/Token/ShowFirstOpenSnippet.php:133 msgid "Cancel" msgstr "Cancel" @@ -587,6 +729,8 @@ msgstr "Showing %s" #: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 +#: classes/Gems/Default/OptionAction.php:181 +#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:341 msgid "item" msgid_plural "items" msgstr[0] "item" @@ -623,22 +767,36 @@ msgstr "After answering the survey you will be logged off automatically." #: classes/Gems/Default/AskAction.php:100 -msgid "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." -msgstr "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." +msgid "" +"A token consists of two groups of four letters and numbers, separated by an " +"optional hyphen. Tokens are case insensitive." +msgstr "" +"A token consists of two groups of four letters and numbers, separated by an " +"optional hyphen. Tokens are case insensitive." #: classes/Gems/Default/AskAction.php:101 -msgid "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." -msgstr "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." +msgid "" +"The number zero and the letter O are treated as the same; the same goes for " +"the number one and the letter L." +msgstr "" +"The number zero and the letter O are treated as the same; the same goes for " +"the number one and the letter L." #: classes/Gems/Default/AskAction.php:136 #, php-format -msgid "Thank you for answering. At the moment we have no further surveys for you to take." -msgstr "Thank you for answering. At the moment we have no further surveys for you to take." +msgid "" +"Thank you for answering. At the moment we have no further surveys for you to " +"take." +msgstr "" +"Thank you for answering. At the moment we have no further surveys for you to " +"take." #: classes/Gems/Default/AskAction.php:138 #, php-format -msgid "The survey for token %s has been answered and no further surveys are open." -msgstr "The survey for token %s has been answered and no further surveys are open." +msgid "" +"The survey for token %s has been answered and no further surveys are open." +msgstr "" +"The survey for token %s has been answered and no further surveys are open." #: classes/Gems/Default/AskAction.php:145 #, php-format @@ -652,11 +810,26 @@ #: classes/Gems/Default/ConsentAction.php:68 #: classes/Gems/Default/GroupAction.php:116 +#: classes/Gems/Default/ReceptionAction.php:81 +#: classes/Gems/Default/RoleAction.php:232 +#: classes/Gems/Default/SurveyMaintenanceAction.php:200 +#: classes/Gems/Default/SurveyMaintenanceAction.php:414 +#: classes/Gems/Default/TrackActionAbstract.php:204 +#: classes/Gems/Default/TrackFieldsAction.php:101 +#: classes/Gems/Default/UpgradeAction.php:176 +#: classes/Gems/Export/RespondentExport.php:225 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:758 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:214 +#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:150 +#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:147 +#: snippets/TrackSurveyOverviewSnippet.php:115 msgid "Description" msgstr "Description" #: classes/Gems/Default/ConsentAction.php:70 #: classes/Gems/Default/DatabaseAction.php:139 +#: classes/Gems/Default/TrackFieldsAction.php:97 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:757 msgid "Order" msgstr "Order" @@ -669,8 +842,12 @@ msgstr "Consent code" #: classes/Gems/Default/ConsentAction.php:75 -msgid "Internal code, not visible to users, copied with the token information to the source." -msgstr "Internal code, not visible to users, copied with the token information to the source." +msgid "" +"Internal code, not visible to users, copied with the token information to " +"the source." +msgstr "" +"Internal code, not visible to users, copied with the token information to " +"the source." #: classes/Gems/Default/ConsentAction.php:92 msgid "respondent consent" @@ -719,10 +896,14 @@ msgstr "No mails sent." #: classes/Gems/Default/CronAction.php:195 +#: classes/Gems/Email/MultiMailForm.php:49 +#: classes/Gems/Email/OneMailForm.php:47 msgid "On this test system all mail will be delivered to the from address." msgstr "On this test system all mail will be delivered to the from address." #: classes/Gems/Default/DatabaseAction.php:75 +#: classes/Gems/Default/ProjectInformationAction.php:192 +#: classes/Gems/Task/CleanCache.php:58 msgid "Cache cleaned" msgstr "Cache cleaned" @@ -732,18 +913,25 @@ msgstr "No rows in %s." #: classes/Gems/Default/DatabaseAction.php:134 +#: classes/Gems/Default/TrackFieldsAction.php:104 +#: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Type" msgstr "Type" #: classes/Gems/Default/DatabaseAction.php:138 +#: classes/Gems/Default/SurveyMaintenanceAction.php:435 msgid "Group" msgstr "Group" #: classes/Gems/Default/DatabaseAction.php:140 +#: classes/Gems/Default/OrganizationAction.php:123 msgid "Location" msgstr "Location" #: classes/Gems/Default/DatabaseAction.php:143 +#: classes/Gems/Default/SourceAction.php:210 +#: classes/Gems/Export/RespondentExport.php:148 +#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:157 msgid "Status" msgstr "Status" @@ -754,6 +942,7 @@ #: classes/Gems/Default/DatabaseAction.php:148 #: classes/Gems/Default/DatabaseAction.php:293 #: classes/Gems/Default/DatabaseAction.php:340 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:204 msgid "Changed on" msgstr "Changed on" @@ -824,6 +1013,9 @@ #: classes/Gems/Default/DatabaseAction.php:287 #: classes/Gems/Default/DatabaseAction.php:333 +#: classes/Gems/Default/UpgradeAction.php:126 +#: classes/Gems/Default/UpgradeAction.php:153 +#: classes/Gems/Default/UpgradeAction.php:175 msgid "Level" msgstr "Level" @@ -856,6 +1048,7 @@ msgstr "%d new or changed patch(es)." #: classes/Gems/Default/DatabaseAction.php:303 +#: classes/Gems/Default/ProjectInformationAction.php:137 msgid "Gems build" msgstr "Gems build" @@ -880,6 +1073,7 @@ msgstr "Show patches" #: classes/Gems/Default/DatabaseAction.php:326 +#: classes/Gems/Task/Db/ExecutePatch.php:68 #, php-format msgid "%d patch(es) executed." msgstr "%d patch(es) executed." @@ -923,6 +1117,7 @@ msgstr "Starting %d object creation scripts." #: classes/Gems/Default/DatabaseAction.php:474 +#: classes/Gems/Task/Db/CreateNewTable.php:73 #, php-format msgid "Finished %s creation script for object %d of %d" msgstr "Finished %s creation script for object %d of %d" @@ -957,6 +1152,7 @@ msgstr "Separate multiple commands with semicolons (;)." #: classes/Gems/Default/DatabaseAction.php:522 +#: classes/Gems/Menu/MenuAbstract.php:275 msgid "Run" msgstr "Run" @@ -1000,6 +1196,14 @@ msgstr "Not patient nr, but respondent id as exported here." #: classes/Gems/Default/ExportAction.php:154 +#: classes/Gems/Default/MailJobAction.php:100 +#: classes/Gems/Default/ProjectSurveysAction.php:67 +#: classes/Gems/Default/SurveyAction.php:191 +#: classes/Gems/Email/OneMailForm.php:57 +#: classes/Gems/Export/RespondentExport.php:145 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:755 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:215 +#: snippets/TrackSurveyOverviewSnippet.php:111 msgid "Survey" msgstr "Survey" @@ -1021,25 +1225,40 @@ msgstr "Export data" #: classes/Gems/Default/GroupAction.php:71 +#: classes/Gems/Default/ReceptionAction.php:55 msgid "Can be assigned to" msgstr "Can be assigned to" #: classes/Gems/Default/GroupAction.php:117 #: classes/Gems/Default/LogAction.php:201 +#: classes/Gems/Default/RoleAction.php:298 msgid "Role" msgstr "Role" #: classes/Gems/Default/GroupAction.php:120 +#: classes/Gems/Default/MailJobAction.php:82 +#: classes/Gems/Default/OrganizationAction.php:147 +#: classes/Gems/Default/ReceptionAction.php:87 +#: classes/Gems/Default/SourceAction.php:101 +#: classes/Gems/Default/SurveyMaintenanceAction.php:426 +#: classes/Gems/Default/SurveyMaintenanceAction.php:481 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:761 +#: classes/Gems/Tracker/Model/TrackModel.php:102 +#: classes/Gems/Util/TrackData.php:147 msgid "Active" msgstr "Active" #: classes/Gems/Default/GroupAction.php:125 +#: classes/Gems/Default/OrganizationAction.php:171 msgid "Allowed IP Ranges" msgstr "Allowed IP Ranges" #: classes/Gems/Default/GroupAction.php:126 -msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" -msgstr "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +#: classes/Gems/Default/OrganizationAction.php:172 +msgid "" +"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +msgstr "" +"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" #: classes/Gems/Default/GroupAction.php:136 msgid "group" @@ -1064,8 +1283,12 @@ msgstr "Please enter your username or e-mail address. " #: classes/Gems/Default/IndexAction.php:182 -msgid "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." -msgstr "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." +msgid "" +"We will then send you an e-mail with a link. The link will bring you to a " +"page where you can set a new password of your choice." +msgstr "" +"We will then send you an e-mail with a link. The link will bring you to a " +"page where you can set a new password of your choice." #: classes/Gems/Default/IndexAction.php:188 msgid "Execute password reset" @@ -1089,6 +1312,7 @@ msgstr "Please enter your password of choice twice." #: classes/Gems/Default/IndexAction.php:218 +#: classes/Gems/User/Form/LayeredLoginForm.php:258 msgid "Department" msgstr "Department" @@ -1107,18 +1331,26 @@ msgstr "Good bye: %s." #: classes/Gems/Default/IndexAction.php:339 -msgid "Your password reset request is no longer valid, please request a new link." -msgstr "Your password reset request is no longer valid, please request a new link." +msgid "" +"Your password reset request is no longer valid, please request a new link." +msgstr "" +"Your password reset request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:341 -msgid "Your password input request is no longer valid, please request a new link." -msgstr "Your password input request is no longer valid, please request a new link." +msgid "" +"Your password input request is no longer valid, please request a new link." +msgstr "" +"Your password input request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:360 -msgid "We sent you an e-mail with a reset link. Click on the link in the e-mail." -msgstr "We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgid "" +"We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgstr "" +"We sent you an e-mail with a reset link. Click on the link in the e-mail." #: classes/Gems/Default/IndexAction.php:369 +#: classes/Gems/Default/OptionAction.php:94 +#: classes/Gems/Default/StaffAction.php:510 msgid "New password is active." msgstr "New password is active." @@ -1131,7 +1363,9 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the " +"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" +"{reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1141,7 +1375,9 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the " +"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" +"{reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1161,26 +1397,32 @@ msgstr "Invalid language setting." #: classes/Gems/Default/LogAction.php:78 +#: classes/Gems/Default/TokenPlanAction.php:243 msgid "from" msgstr "from" #: classes/Gems/Default/LogAction.php:83 +#: classes/Gems/Default/TokenPlanAction.php:248 msgid "until" msgstr "until" #: classes/Gems/Default/LogAction.php:89 +#: classes/Gems/Default/TokenPlanAction.php:254 msgid "days" msgstr "days" #: classes/Gems/Default/LogAction.php:90 +#: classes/Gems/Default/TokenPlanAction.php:255 msgid "weeks" msgstr "weeks" #: classes/Gems/Default/LogAction.php:91 +#: classes/Gems/Default/TokenPlanAction.php:256 msgid "months" msgstr "months" #: classes/Gems/Default/LogAction.php:92 +#: classes/Gems/Default/TokenPlanAction.php:257 msgid "years" msgstr "years" @@ -1217,23 +1459,34 @@ msgstr "All actions" #: classes/Gems/Default/LogAction.php:190 +#: classes/Gems/Default/TrackFieldsAction.php:92 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:472 msgid "Date" msgstr "Date" #: classes/Gems/Default/LogAction.php:191 #: classes/Gems/Default/LogMaintenanceAction.php:52 +#: classes/Gems/Default/UpgradeAction.php:177 msgid "Action" msgstr "Action" #: classes/Gems/Default/LogAction.php:192 +#: classes/Gems/Default/MailTemplateAction.php:66 +#: classes/Gems/Email/EmailFormAbstract.php:168 msgid "Message" msgstr "Message" #: classes/Gems/Default/LogAction.php:198 +#: classes/Gems/Default/TokenPlanAction.php:116 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:55 +#: snippets/RespondentDetailsSnippet.php:74 +#: snippets/RespondentDetailsWithAssignmentsSnippet.php:148 msgid "Respondent" msgstr "Patient" #: classes/Gems/Default/LogAction.php:202 +#: classes/Gems/Default/OptionAction.php:175 +#: classes/Gems/User/RadiusUserDefinition.php:163 msgid "IP address" msgstr "IP address" @@ -1247,6 +1500,7 @@ msgstr "Log:" #: classes/Gems/Default/LogMaintenanceAction.php:72 +#: snippets/RespondentTokenTabsSnippet.php:69 msgid "All" msgstr "All" @@ -1260,6 +1514,7 @@ #: classes/Gems/Default/MailJobAction.php:78 #: classes/Gems/Default/MailLogAction.php:118 +#: classes/Gems/Email/EmailFormAbstract.php:308 msgid "Template" msgstr "Template" @@ -1326,6 +1581,10 @@ msgstr "Use the 'By staff member' address" #: classes/Gems/Default/MailJobAction.php:133 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:290 +#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:338 +#: snippets/Organization/OrganizationEditSnippet.php:85 +#: snippets/Organization/OrganizationEditSnippet.php:131 msgid "Other" msgstr "Other" @@ -1349,8 +1608,12 @@ msgstr "Turn Automatic Mail Jobs ON" #: classes/Gems/Default/MailJobAction.php:176 -msgid "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." -msgstr "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." +msgid "" +"With automatic mail jobs and a cron job on the server, mails can be sent " +"without manual user action." +msgstr "" +"With automatic mail jobs and a cron job on the server, mails can be sent " +"without manual user action." #: classes/Gems/Default/MailLogAction.php:109 msgid "Date sent" @@ -1374,6 +1637,7 @@ #: classes/Gems/Default/MailLogAction.php:115 #: classes/Gems/Default/MailTemplateAction.php:62 +#: classes/Gems/Email/EmailFormAbstract.php:349 msgid "Subject" msgstr "Subject" @@ -1416,6 +1680,7 @@ msgstr "TLS" #: classes/Gems/Default/MailServerAction.php:80 +#: classes/Gems/User/RadiusUserDefinition.php:164 msgid "Port" msgstr "Port" @@ -1428,16 +1693,20 @@ msgstr "User ID" #: classes/Gems/Default/MailServerAction.php:88 +#: classes/Gems/User/Form/LoginForm.php:127 msgid "Password" msgstr "Password" #: classes/Gems/Default/MailServerAction.php:90 #: classes/Gems/Default/SourceAction.php:95 +#: classes/Gems/User/Form/ChangePasswordForm.php:241 +#: classes/Gems/User/Form/ChangePasswordForm.php:287 msgid "Repeat password" msgstr "Repeat password" #: classes/Gems/Default/MailServerAction.php:91 #: classes/Gems/Default/SourceAction.php:74 +#: classes/Gems/User/RadiusUserDefinition.php:169 msgid "Enter only when changing" msgstr "Enter only when changing the password" @@ -1453,6 +1722,8 @@ #: classes/Gems/Default/MailTemplateAction.php:76 #: classes/Gems/Default/RespondentAction.php:349 +#: classes/Gems/Default/StaffAction.php:335 +#: classes/Gems/Default/StaffAction.php:405 msgid "(all organizations)" msgstr "(all organizations)" @@ -1475,8 +1746,9 @@ msgstr "Login Name" #: classes/Gems/Default/OptionAction.php:136 -#: classes/Gems/Default/OrganizationAction.php:135 +#: classes/Gems/Default/OrganizationAction.php:143 #: classes/Gems/Default/RespondentAction.php:195 +#: classes/Gems/Default/StaffAction.php:351 msgid "Language" msgstr "Language" @@ -1486,8 +1758,12 @@ msgstr "Options" #: classes/Gems/Default/OptionAction.php:155 -msgid "This overview provides information about the last login activity on your account." -msgstr "This overview provides information about the last login activity on your account." +msgid "" +"This overview provides information about the last login activity on your " +"account." +msgstr "" +"This overview provides information about the last login activity on your " +"account." #: classes/Gems/Default/OptionAction.php:175 msgid "Date / time" @@ -1497,113 +1773,122 @@ msgid "Item" msgstr "Item" -#: classes/Gems/Default/OrganizationAction.php:92 +#: classes/Gems/Default/OrganizationAction.php:100 +#: classes/Gems/Model/HiddenOrganizationModel.php:113 msgid "Inaccessible or unknown organization" msgstr "Inaccessible or unknown organization" -#: classes/Gems/Default/OrganizationAction.php:116 +#: classes/Gems/Default/OrganizationAction.php:124 msgid "Url" msgstr "Url" -#: classes/Gems/Default/OrganizationAction.php:117 +#: classes/Gems/Default/OrganizationAction.php:125 msgid "Task" msgstr "Task" -#: classes/Gems/Default/OrganizationAction.php:118 +#: classes/Gems/Default/OrganizationAction.php:126 msgid "Contact name" msgstr "Contact name" -#: classes/Gems/Default/OrganizationAction.php:119 +#: classes/Gems/Default/OrganizationAction.php:127 msgid "Contact email" msgstr "Contact email" -#: classes/Gems/Default/OrganizationAction.php:122 +#: classes/Gems/Default/OrganizationAction.php:130 msgid "Style" msgstr "Style" -#: classes/Gems/Default/OrganizationAction.php:127 +#: classes/Gems/Default/OrganizationAction.php:135 msgid "Default url's" msgstr "Default url's" -#: classes/Gems/Default/OrganizationAction.php:129 +#: classes/Gems/Default/OrganizationAction.php:137 #, php-format -msgid "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." -msgstr "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." +msgid "" +"Always switch to this organization when %s is accessed from one of these " +"space separated url's. The first is used for mails." +msgstr "" +"Always switch to this organization when %s is accessed from one of these " +"space separated url's. The first is used for mails." -#: classes/Gems/Default/OrganizationAction.php:139 +#: classes/Gems/Default/OrganizationAction.php:147 msgid "Can the organization be used?" msgstr "Can the organization be used?" -#: classes/Gems/Default/OrganizationAction.php:140 +#: classes/Gems/Default/OrganizationAction.php:148 +#: classes/Gems/User/Form/LoginForm.php:151 msgid "Login" msgstr "Login" -#: classes/Gems/Default/OrganizationAction.php:140 +#: classes/Gems/Default/OrganizationAction.php:148 msgid "Can people login for this organization?" msgstr "Can people login for this organization?" -#: classes/Gems/Default/OrganizationAction.php:141 +#: classes/Gems/Default/OrganizationAction.php:149 msgid "Accepting" msgstr "Accepting" -#: classes/Gems/Default/OrganizationAction.php:141 +#: classes/Gems/Default/OrganizationAction.php:149 msgid "Can new respondents be added to the organization?" msgstr "Can new patients be added to the organization?" -#: classes/Gems/Default/OrganizationAction.php:142 +#: classes/Gems/Default/OrganizationAction.php:150 msgid "Does the organization have respondents?" msgstr "Does the organization have patients?" -#: classes/Gems/Default/OrganizationAction.php:143 +#: classes/Gems/Default/OrganizationAction.php:151 msgid "Respondent group" msgstr "Patient group" -#: classes/Gems/Default/OrganizationAction.php:143 +#: classes/Gems/Default/OrganizationAction.php:151 msgid "Allows respondents to login." msgstr "Allow patients to login." -#: classes/Gems/Default/OrganizationAction.php:147 +#: classes/Gems/Default/OrganizationAction.php:155 msgid "Greeting" msgstr "Greeting" -#: classes/Gems/Default/OrganizationAction.php:147 -#: classes/Gems/Default/OrganizationAction.php:148 +#: classes/Gems/Default/OrganizationAction.php:155 +#: classes/Gems/Default/OrganizationAction.php:156 msgid "For emails and token forward screen." msgstr "For emails and token forward screen." -#: classes/Gems/Default/OrganizationAction.php:148 +#: classes/Gems/Default/OrganizationAction.php:156 msgid "Signature" msgstr "Signature" -#: classes/Gems/Default/OrganizationAction.php:150 +#: classes/Gems/Default/OrganizationAction.php:158 msgid "Accessible by" msgstr "Accessible by" -#: classes/Gems/Default/OrganizationAction.php:150 +#: classes/Gems/Default/OrganizationAction.php:158 msgid "Checked organizations see this organizations respondents." msgstr "Checked organizations see this organizations patients." -#: classes/Gems/Default/OrganizationAction.php:160 +#: classes/Gems/Default/OrganizationAction.php:168 +#: classes/Gems/Default/SurveyMaintenanceAction.php:443 msgid "Code name" msgstr "Code name" -#: classes/Gems/Default/OrganizationAction.php:160 +#: classes/Gems/Default/OrganizationAction.php:168 +#: classes/Gems/Default/SurveyMaintenanceAction.php:443 msgid "Only for programmers." msgstr "Only for programmers." -#: classes/Gems/Default/OrganizationAction.php:178 +#: classes/Gems/Default/OrganizationAction.php:186 msgid "This can not be changed yet" msgstr "This can not be changed yet" -#: classes/Gems/Default/OrganizationAction.php:180 +#: classes/Gems/Default/OrganizationAction.php:188 +#: classes/Gems/Default/StaffAction.php:158 msgid "User Definition" msgstr "User Definition" -#: classes/Gems/Default/OrganizationAction.php:210 +#: classes/Gems/Default/OrganizationAction.php:218 msgid "Participating organizations" msgstr "Participating organizations" -#: classes/Gems/Default/OrganizationAction.php:221 +#: classes/Gems/Default/OrganizationAction.php:229 msgid "organization" msgid_plural "organizations" msgstr[0] "organization" @@ -1611,6 +1896,9 @@ #: classes/Gems/Default/OverviewPlanAction.php:115 #: classes/Gems/Default/ProjectSurveysAction.php:88 +#: classes/Gems/Default/SurveyAction.php:207 +#: classes/Gems/Default/SurveyMaintenanceAction.php:559 +#: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:157 msgid "survey" msgid_plural "surveys" msgstr[0] "survey" @@ -1729,20 +2017,31 @@ msgstr "Session content" #: classes/Gems/Default/ProjectInformationAction.php:225 +#: classes/Gems/Menu/MenuAbstract.php:341 msgid "Session" msgstr "Session" #: classes/Gems/Default/ProjectSurveysAction.php:68 +#: classes/Gems/Default/SurveyAction.php:192 +#: snippets/TrackSurveyOverviewSnippet.php:113 msgid "By" msgstr "By" #: classes/Gems/Default/ProjectSurveysAction.php:69 #: classes/Gems/Default/ProjectTracksAction.php:67 +#: classes/Gems/Default/SurveyAction.php:193 +#: classes/Gems/Default/TrackAction.php:330 +#: classes/Gems/Email/EmailFormAbstract.php:193 +#: classes/Gems/Email/EmailFormAbstract.php:251 +#: classes/Gems/Email/MailTemplateForm.php:81 +#: classes/Gems/Tracker/Model/TrackModel.php:103 msgid "From" msgstr "From" #: classes/Gems/Default/ProjectSurveysAction.php:70 #: classes/Gems/Default/ProjectTracksAction.php:68 +#: classes/Gems/Default/SurveyAction.php:197 +#: classes/Gems/Default/TrackAction.php:332 msgid "Until" msgstr "Until" @@ -1751,10 +2050,15 @@ msgstr "Active surveys" #: classes/Gems/Default/ProjectTracksAction.php:65 +#: classes/Gems/Default/TrackAction.php:329 msgid "Survey #" msgstr "Survey #" #: classes/Gems/Default/ProjectTracksAction.php:85 +#: classes/Gems/Default/TrackAction.php:452 +#: classes/Gems/Default/TrackMaintenanceAction.php:309 +#: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:191 +#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:174 msgid "track" msgid_plural "tracks" msgstr[0] "track" @@ -1770,6 +2074,7 @@ msgstr "Questions in survey %s" #: classes/Gems/Default/ProjectTracksAction.php:118 +#: classes/Gems/Default/SurveyAction.php:85 #, php-format msgid "Survey %s does not exist." msgstr "Survey %s does not exist." @@ -1779,6 +2084,7 @@ msgstr "Survey not specified." #: classes/Gems/Default/ProjectTracksAction.php:132 +#: classes/Gems/Default/TrackActionAbstract.php:496 #, php-format msgid "Track %s does not exist." msgstr "Track %s does not exist." @@ -1903,6 +2209,7 @@ msgstr "Has the patient signed the informed consent letter?" #: classes/Gems/Default/RespondentAction.php:228 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:203 msgid "Comments" msgstr "Comments" @@ -1911,6 +2218,11 @@ msgstr "Treatment" #: classes/Gems/Default/RespondentAction.php:257 +#: classes/Gems/Default/TrackAction.php:132 +#: classes/Gems/Default/TrackAction.php:479 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:212 +#: snippets/DeleteInSourceTrackSnippet.php:112 +#: snippets/EditTrackSnippet.php:95 msgid "Rejection code" msgstr "Rejection code" @@ -1927,20 +2239,23 @@ msgstr "Patient tracks stopped." #: classes/Gems/Default/RespondentAction.php:304 +#: classes/Gems/Default/TrackAction.php:405 msgid "Choose a reception code to delete." msgstr "Choose a reception code to delete." -#: classes/Gems/Default/RespondentAction.php:398 +#: classes/Gems/Default/RespondentAction.php:420 msgid "respondent" msgid_plural "respondents" msgstr[0] "patient" msgstr[1] "patients" -#: classes/Gems/Default/RespondentAction.php:473 +#: classes/Gems/Default/RespondentAction.php:495 msgid "Please settle the informed consent form for this respondent." msgstr "Please settle the informed consent form for this patient." #: classes/Gems/Default/RespondentExportAction.php:54 +#: classes/Gems/Default/TrackAction.php:121 +#: snippets/DeleteInSourceTrackSnippet.php:82 snippets/EditTrackSnippet.php:72 msgid "Respondent number" msgstr "Patient number" @@ -1949,18 +2264,37 @@ msgstr "Separate multiple respondents with a comma (,)" #: classes/Gems/Default/RespondentPlanAction.php:67 +#: classes/Gems/Default/SurveyAction.php:171 +#: classes/Gems/Default/TrackAction.php:297 +#: snippets/DeleteInSourceTrackSnippet.php:132 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:174 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:145 +#: snippets/DeleteTrackTokenSnippet.php:195 +#: snippets/EditSingleSurveyTokenSnippet.php:134 +#: snippets/EditTrackSnippet.php:110 snippets/EditTrackTokenSnippet.php:144 +#: snippets/ShowSingleSurveyTokenSnippet.php:140 +#: snippets/ShowTrackTokenSnippet.php:146 msgid "Show respondent" msgstr "Show patient" #: classes/Gems/Default/RespondentPlanAction.php:73 +#: classes/Gems/Default/TrackAction.php:266 +#: classes/Gems/Default/TrackAction.php:285 +#: snippets/DeleteInSourceTrackSnippet.php:129 +#: snippets/EditTrackSnippet.php:108 snippets/EditTrackTokenSnippet.php:142 +#: snippets/ShowTrackTokenSnippet.php:145 msgid "Show track" msgstr "Show track" #: classes/Gems/Default/RespondentPlanAction.php:136 +#: classes/Gems/Default/TrackAction.php:317 +#: snippets/ShowTrackUsageSnippet.php:103 msgid " of " msgstr " of " #: classes/Gems/Default/RespondentPlanAction.php:137 +#: classes/Gems/Default/TrackAction.php:318 +#: snippets/ShowTrackUsageSnippet.php:104 msgid "Progress" msgstr "Progress" @@ -2059,20 +2393,40 @@ msgstr "Database Password" #: classes/Gems/Default/SourceAction.php:115 -msgid "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." -msgstr "Check tokens for being answered or not, reruns survey and round event code on completed tokens and recalculates the start and end times of all tokens in tracks that have completed tokens." +msgid "" +"Check tokens for being answered or not, reruns survey and round event code " +"on completed tokens and recalculates the start and end times of all tokens " +"in tracks that have completed tokens." +msgstr "" +"Check tokens for being answered or not, reruns survey and round event code " +"on completed tokens and recalculates the start and end times of all tokens " +"in tracks that have completed tokens." #: classes/Gems/Default/SourceAction.php:116 -msgid "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." -msgstr "Run this code when survey result fields, survey or round events or the event code has changed or after bulk changes in a survey source." +msgid "" +"Run this code when survey result fields, survey or round events or the event " +"code has changed or after bulk changes in a survey source." +msgstr "" +"Run this code when survey result fields, survey or round events or the event " +"code has changed or after bulk changes in a survey source." #: classes/Gems/Default/SourceAction.php:126 -msgid "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." -msgstr "Check source for new surveys, changes in survey status and survey deletion. Can also perform maintenance on some sources, e.g. by changing the number of attributes." +msgid "" +"Check source for new surveys, changes in survey status and survey deletion. " +"Can also perform maintenance on some sources, e.g. by changing the number of " +"attributes." +msgstr "" +"Check source for new surveys, changes in survey status and survey deletion. " +"Can also perform maintenance on some sources, e.g. by changing the number of " +"attributes." #: classes/Gems/Default/SourceAction.php:127 -msgid "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." -msgstr "Run this code when the status of a survey in a source has changed or when the code has changed and the source must be adapted." +msgid "" +"Run this code when the status of a survey in a source has changed or when " +"the code has changed and the source must be adapted." +msgstr "" +"Run this code when the status of a survey in a source has changed or when " +"the code has changed and the source must be adapted." #: classes/Gems/Default/SourceAction.php:140 #, php-format @@ -2084,8 +2438,12 @@ msgstr "Refreshes the attributes for a token as stored in the source." #: classes/Gems/Default/SourceAction.php:146 -msgid "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." -msgstr "Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow." +msgid "" +"Run this code when the number of attributes has changed or when you suspect " +"the attributes have been corrupted somehow." +msgstr "" +"Run this code when the number of attributes has changed or when you suspect " +"the attributes have been corrupted somehow." #: classes/Gems/Default/SourceAction.php:159 #, php-format @@ -2139,6 +2497,7 @@ msgstr[1] "sources" #: classes/Gems/Default/SourceAction.php:249 +#: classes/Gems/Menu/MenuAbstract.php:436 msgid "Survey Sources" msgstr "Survey Sources" @@ -2181,10 +2540,15 @@ #: classes/Gems/Default/StaffAction.php:268 #, php-format -msgid "User with id %s already exists but is deleted, do you want to reactivate the account?" -msgstr "User with id %s already exists but is deleted, do you want to reactivate the account?" +msgid "" +"User with id %s already exists but is deleted, do you want to reactivate the " +"account?" +msgstr "" +"User with id %s already exists but is deleted, do you want to reactivate the " +"account?" -#: classes/Gems/Default/StaffAction.php:327 +#: classes/Gems/Default/StaffAction.php:327 classes/Gems/User/User.php:1208 +#: classes/Gems/User/Form/OrganizationFormAbstract.php:232 msgid "Username" msgstr "Username" @@ -2216,6 +2580,7 @@ msgstr "You are not allowed to change this password." #: classes/Gems/Default/SurveyAction.php:64 +#: classes/Gems/Tracker/Snippets/EditSingleSurveyTokenSnippetAbstract.php:179 msgid "Add survey" msgstr "Add survey" @@ -2252,10 +2617,15 @@ msgstr "Assignments of this survey to %s" #: classes/Gems/Default/SurveyAction.php:165 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:173 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:144 +#: snippets/EditSingleSurveyTokenSnippet.php:133 +#: snippets/ShowSingleSurveyTokenSnippet.php:139 msgid "Show surveys" msgstr "Show surveys" #: classes/Gems/Default/SurveyAction.php:212 +#: snippets/RespondentDetailsWithAssignmentsSnippet.php:77 msgid "Assigned surveys" msgstr "Assigned surveys" @@ -2292,8 +2662,12 @@ msgstr "Create Single Survey" #: classes/Gems/Default/SurveyMaintenanceAction.php:212 -msgid "At the moment this survey can only be assigned to respondents as part of an existing track." -msgstr "At the moment this survey can only be assigned to paitents as part of an existing track." +msgid "" +"At the moment this survey can only be assigned to respondents as part of an " +"existing track." +msgstr "" +"At the moment this survey can only be assigned to paitents as part of an " +"existing track." #: classes/Gems/Default/SurveyMaintenanceAction.php:267 msgid "Survey should be assigned to a group before making it active." @@ -2341,6 +2715,8 @@ msgstr "This task checks all tokens for all surveys." #: classes/Gems/Default/SurveyMaintenanceAction.php:408 +#: classes/Gems/Tracker/Form/AskTokenForm.php:98 +#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:158 msgid "OK" msgstr "OK" @@ -2384,10 +2760,12 @@ msgstr "Before answering" #: classes/Gems/Default/SurveyMaintenanceAction.php:446 +#: classes/Gems/Tracker/Model/TrackModel.php:108 msgid "After completion" msgstr "After completion" #: classes/Gems/Default/SurveyMaintenanceAction.php:447 +#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:760 msgid "Answer display" msgstr "Answer display" @@ -2426,20 +2804,27 @@ msgstr "Not used in tracks." #: classes/Gems/Default/TokenPlanAction.php:117 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:56 msgid "Round / Details" msgstr "Round / Details" #: classes/Gems/Default/TokenPlanAction.php:118 #: classes/Gems/Default/TokenPlanAction.php:233 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:57 +#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:385 msgid "Valid from" msgstr "Valid from" #: classes/Gems/Default/TokenPlanAction.php:119 #: classes/Gems/Default/TokenPlanAction.php:234 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:58 +#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:386 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:198 msgid "Valid until" msgstr "Valid until" #: classes/Gems/Default/TokenPlanAction.php:120 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:59 msgid "Contact date" msgstr "Contact date" @@ -2501,10 +2886,14 @@ msgstr "Yet to Answer" #: classes/Gems/Default/TokenPlanAction.php:326 +#: classes/Gems/Selector/TokenByGroupDateSelector.php:139 msgid "Answered" msgstr "Answered" #: classes/Gems/Default/TokenPlanAction.php:327 +#: classes/Gems/Selector/TokenByGroupDateSelector.php:129 +#: classes/Gems/Tracker/Token.php:994 +#: snippets/RespondentTokenTabsSnippet.php:68 msgid "Missed" msgstr "Missed" @@ -2517,11 +2906,16 @@ msgstr "(all staff)" #: classes/Gems/Default/TokenPlanAction.php:471 +#: classes/Gems/Snippets/TokenModelSnippetAbstract.php:59 +#: classes/Gems/Snippets/TokenPlanTableSnippet.php:122 +#: snippets/BrowseSingleSurveyTokenSnippet.php:147 +#: snippets/TrackTokenOverviewSnippet.php:98 msgid "+" msgstr "+" #: classes/Gems/Default/TokenPlanAction.php:480 #: classes/Gems/Default/TrackAction.php:450 +#: classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php:141 msgid "token" msgid_plural "tokens" msgstr[0] "token" @@ -2532,20 +2926,31 @@ msgstr "Token planning" #: classes/Gems/Default/TrackAction.php:122 +#: classes/Gems/Tracker/Model/StandardTokenModel.php:208 +#: snippets/DeleteInSourceTrackSnippet.php:83 snippets/EditTrackSnippet.php:73 msgid "Respondent name" msgstr "Patient name" #: classes/Gems/Default/TrackAction.php:172 +#: snippets/ShowTrackUsageSnippet.php:114 #, php-format msgid "Assignments of this track to %s" msgstr "Assignments of this track to %s" #: classes/Gems/Default/TrackAction.php:269 #: classes/Gems/Default/TrackAction.php:282 +#: snippets/DeleteInSourceTrackSnippet.php:131 +#: snippets/DeleteTrackTokenSnippet.php:194 snippets/EditTrackSnippet.php:109 +#: snippets/ShowTrackTokenSnippet.php:147 msgid "Show tracks" msgstr "Show tracks" #: classes/Gems/Default/TrackAction.php:274 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:171 +#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:142 +#: snippets/DeleteTrackTokenSnippet.php:192 +#: snippets/EditTrackTokenSnippet.php:141 +#: snippets/ShowTrackTokenSnippet.php:163 msgid "Show token" msgstr "Show token" @@ -2558,11 +2963,17 @@ msgstr "Track was already deleted." #: classes/Gems/Default/TrackAction.php:395 +#: snippets/DeleteInSourceTrackSnippet.php:143 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:185 +#: snippets/DeleteTrackTokenSnippet.php:206 #, php-format msgid "Delete %s!" msgstr "Delete %s!" #: classes/Gems/Default/TrackAction.php:399 +#: snippets/DeleteInSourceTrackSnippet.php:158 +#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:200 +#: snippets/DeleteTrackTokenSnippet.php:221 #, php-format msgid "Watch out! You cannot undo a %s deletion!" msgstr "Watch out! You cannot undo a %s deletion!" @@ -2576,6 +2987,7 @@ msgstr "Delete track" #: classes/Gems/Default/TrackAction.php:461 +#: snippets/RespondentDetailsWithAssignmentsSnippet.php:86 msgid "Assigned tracks" msgstr "Assigned tracks" @@ -2585,6 +2997,8 @@ msgstr "%s track for patient nr %s" #: classes/Gems/Default/TrackAction.php:543 +#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:184 +#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:234 msgid "Add track" msgstr "Add ... [truncated message content] |
From: <gem...@li...> - 2012-10-17 11:03:20
|
Revision: 988 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=988&view=rev Author: matijsdejong Date: 2012-10-17 11:03:07 +0000 (Wed, 17 Oct 2012) Log Message: ----------- Created useful restoreHeaderPositions() function for survey answer filters Made LimeSurvey field map more abstract by defining the header classes in SurveyModel Modified Paths: -------------- trunk/library/classes/Gems/Event/Survey/Display/ByValue.php trunk/library/classes/Gems/Event/Survey/Display/OnlyAnswered.php trunk/library/classes/Gems/Event/Survey/Display/Reverse.php trunk/library/classes/Gems/Event/SurveyAnswerFilterAbstract.php trunk/library/classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php trunk/library/classes/Gems/Tracker/SurveyModel.php trunk/library/classes/MUtil/Model/ModelAbstract.php trunk/library/classes/MUtil/Model.php trunk/library/languages/default-en.mo trunk/library/languages/default-en.po trunk/library/languages/default-nl.mo trunk/library/languages/default-nl.po Added Paths: ----------- trunk/library/classes/Gems/Event/Survey/Display/YesOnTop.php Modified: trunk/library/classes/Gems/Event/Survey/Display/ByValue.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Display/ByValue.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Event/Survey/Display/ByValue.php 2012-10-17 11:03:07 UTC (rev 988) @@ -47,13 +47,6 @@ class Gems_Event_Survey_Display_ByValue extends Gems_Event_SurveyAnswerFilterAbstract { /** - * Contains the values of the current token - * - * @var array - */ - private $_values; - - /** * This function is called in addBrowseTableColumns() to filter the names displayed * by AnswerModelSnippetGeneric. * @@ -68,50 +61,23 @@ { $currentNames = array_combine($currentNames, $currentNames); $newOrder = array(); + $values = array_filter($this->token->getRawAnswers(), 'is_numeric'); + arsort($values); - foreach ($this->_values as $key => $value) { - if (isset($currentNames[$key])) { - if ($parent = $model->get($key, 'parent_question')) { - $count = 0; - foreach ($model->getCol('parent_question') as $name => $currentParent) { - if (isset($currentNames[$name]) && ($currentParent === $parent)) { - $count++; - } - } - // Last occurence of this parent question - if ($count < 2) { - unset($currentNames[$parent]); - } - $newOrder[] = $parent; - // MUtil_Echo::track($key, $parent); - } - + foreach ($values as $key => $value) { + if (isset($currentNames[$key])) { unset($currentNames[$key]); $newOrder[] = $key; } } - // MUtil_Echo::track($this->_values, $newOrder + $currentNames); + // MUtil_Echo::track($this->_values, $newOrder, $newOrder + $currentNames); - return $newOrder + $currentNames; + return $this->restoreHeaderPositions($model, $newOrder + $currentNames); } /** - * Function that returns the snippets to use for this display. - * - * @param Gems_Tracker_Token $token The token to get the snippets for - * @return array of Snippet names or nothing - */ - public function getAnswerDisplaySnippets(Gems_Tracker_Token $token) - { - $this->_values = array_filter($token->getRawAnswers(), 'is_numeric'); - arsort($this->_values); - - return parent::getAnswerDisplaySnippets($token); - } - - /** * A pretty name for use in dropdown selection boxes. * * @return string Name Modified: trunk/library/classes/Gems/Event/Survey/Display/OnlyAnswered.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Display/OnlyAnswered.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Event/Survey/Display/OnlyAnswered.php 2012-10-17 11:03:07 UTC (rev 988) @@ -74,37 +74,10 @@ $keys += array_filter($row->getArrayCopy()); } - $lastMain = null; - $names = array(); - foreach ($currentNames as $name) { - $exists = isset($keys[$name]); + $results = array_intersect($currentNames, array_keys($keys)); + // MUtil_Echo::track($results); - // Keep track of should a main question be displayed. - // The question or a sub question should be answered - if ($model->get($name, 'thClass') === 'question') { - if ($lastMain) { - unset($names[$lastMain]); - } - - if ($exists) { - $lastMain = null; // Has value, display - } else { - $exists = true; // Add to list for the moment - $lastMain = $name; // But keep track for possible removal - } - } elseif ($exists) { - $lastMain = null; // Must display last main question - } - - - if ($exists) { - $names[$name] = $name; - // MUtil_Echo::track($name, $model->get($name, 'thClass'), $model->get($name, 'label')); - } - } - // MUtil_Echo::track($names); - - return $names; + return $this->restoreHeaderPositions($model, $results); } /** Modified: trunk/library/classes/Gems/Event/Survey/Display/Reverse.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Display/Reverse.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Event/Survey/Display/Reverse.php 2012-10-17 11:03:07 UTC (rev 988) @@ -59,7 +59,7 @@ */ public function filterAnswers(MUtil_Model_TableBridge $bridge, MUtil_Model_ModelAbstract $model, array $currentNames) { - return array_reverse($currentNames); + return $this->restoreHeaderPositions($model, array_reverse($currentNames)); } /** Added: trunk/library/classes/Gems/Event/Survey/Display/YesOnTop.php =================================================================== --- trunk/library/classes/Gems/Event/Survey/Display/YesOnTop.php (rev 0) +++ trunk/library/classes/Gems/Event/Survey/Display/YesOnTop.php 2012-10-17 11:03:07 UTC (rev 988) @@ -0,0 +1,103 @@ +<?php + +/** + * Copyright (c) 2012, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Events + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2012 Erasmus MC + * @license New BSD License + * @version $id: OnlyAnswered.php 203 2012-01-01t 12:51:32Z matijs $ + */ + +/** + * Display those questions that are answered with 'yes' op top + * + * Questions names that are the same as the yes question but with a longer name + * separated by an '_' are moved with the question, as are header questions + * (which may be doubled when not all question come out on top). + * + * @package Gems + * @subpackage Events + * @copyright Copyright (c) 2012 Erasmus MC + * @license New BSD License + * @since Class available since version 1.5.6 + */ +class Gems_Event_Survey_Display_YesOnTop extends Gems_Event_SurveyAnswerFilterAbstract +{ + /** + * This function is called in addBrowseTableColumns() to filter the names displayed + * by AnswerModelSnippetGeneric. + * + * @see Gems_Tracker_Snippets_AnswerModelSnippetGeneric + * + * @param MUtil_Model_TableBridge $bridge + * @param MUtil_Model_ModelAbstract $model + * @param array $currentNames The current names in use (allows chaining) + * @return array Of the names of labels that should be shown + */ + public function filterAnswers(MUtil_Model_TableBridge $bridge, MUtil_Model_ModelAbstract $model, array $currentNames) + { + if (! $this->token->isCompleted()) { + return $currentNames; + } + + $answers = $this->token->getRawAnswers(); + $onTop = array(); + + // MUtil_Echo::track($answers); + + foreach($answers as $name => $value) { + if ($value === 'Y') { + $onTop[$name] = $name; + } else { + $nameParts = explode('_', $name); + + if (count($nameParts) > 1) { + if (isset($onTop[$nameParts[0]])) { + $onTop[$name] = $name; + } + } + } + } + + // MUtil_Echo::track($onTop, $onTop + $currentNames, $currentNames); + + return $this->restoreHeaderPositions($model, $onTop + $currentNames); + } + + /** + * A pretty name for use in dropdown selection boxes. + * + * @return string Name + */ + public function getEventName() + { + return $this->translate->_('Yes answers on top.'); + } +} Modified: trunk/library/classes/Gems/Event/SurveyAnswerFilterAbstract.php =================================================================== --- trunk/library/classes/Gems/Event/SurveyAnswerFilterAbstract.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Event/SurveyAnswerFilterAbstract.php 2012-10-17 11:03:07 UTC (rev 988) @@ -49,6 +49,18 @@ { /** * + * @var Zend_Locale + */ + protected $locale; + + /** + * + * @var Gems_Tracker_Token + */ + protected $token; + + /** + * * @var Zend_Translate */ protected $translate; @@ -63,6 +75,8 @@ */ public function getAnswerDisplaySnippets(Gems_Tracker_Token $token) { + $this->token = $token; + $snippets = (array) $token->getTrackEngine()->getAnswerSnippetNames(); $snippets['answerFilter'] = $this; @@ -71,4 +85,53 @@ } // public function getEventName() + + /** + * Restores the header position of question before their corresponding question_sub + * + * When sub-questions with the same parent are shown continuous the parent is shown + * once before them. When the sub-questions are displayed in seperate groups the + * parent is shown once at their start. + * + * Stand alone headers without any corresponding value are removed. When they do have + * a value of their own they are still shown, but their position may change according + * to their sub-questions position. (NOTE: As in LimeSurvey their are no question + * headers with values we leave it at this for the moment.) + * + * @param MUtil_Model_ModelAbstract $model + * @param array $currentNames The current names in use (allows chaining) + * @return array Of the names of labels that should be shown + */ + protected function restoreHeaderPositions(MUtil_Model_ModelAbstract $model, array $currentNames) + { + $lastParent = null; + $results = array(); + foreach ($currentNames as $name) { + if ($model->is($name, 'type', MUtil_Model::TYPE_NOVALUE)) { + // Skip header types that contain no value + continue; + } + + if ($parent = $model->get($name, 'parent_question')) { + // Check for change of parent + if ($lastParent !== $parent) { + if (isset($results[$parent])) { + // Add another copy of the parent to the array + $results[] = $parent; + } else { + // Insert parent header on name if it was not shown before + $results[$parent] = $parent; + } + $lastParent = $parent; + } + } + + // If already set (as a $parent) this will not + // redisplay the $parent as $result[$name] does + // not change position + $results[$name] = $name; + } + + return $results; + } } Modified: trunk/library/classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php =================================================================== --- trunk/library/classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php 2012-10-17 11:03:07 UTC (rev 988) @@ -604,7 +604,7 @@ foreach ($map as $name => $field) { $tmpres = array(); - $tmpres['thClass'] = 'question'; + $tmpres['thClass'] = Gems_Tracker_SurveyModel::CLASS_MAIN_QUESTION; $tmpres['group'] = $field['gid']; $tmpres['type'] = $this->_getType($field); @@ -625,13 +625,14 @@ // Add non answered question for grouping and make it the current parent $parent = '_' . $name . '_'; $model->set($parent, $tmpres); + $model->set($parent, 'type', MUtil_Model::TYPE_NOVALUE); } if (isset($field['sq_question1'])) { $tmpres['label'] = MUtil_Html::raw(sprintf($this->translate->_('%s: %s'), $this->removeHtml($field['sq_question']), $this->removeHtml($field['sq_question1']))); } else { $tmpres['label'] = MUtil_Html::raw($this->removeHtml($field['sq_question'])); } - $tmpres['thClass'] = 'question_sub'; + $tmpres['thClass'] = Gems_Tracker_SurveyModel::CLASS_SUB_QUESTION; } if ($options = $this->_getMultiOptions($field)) { $tmpres['multiOptions'] = $options; @@ -643,7 +644,7 @@ } // Parent storage - if ('question' === $tmpres['thClass']) { + if (Gems_Tracker_SurveyModel::CLASS_MAIN_QUESTION === $tmpres['thClass']) { $parent = $name; } elseif ($parent) { // Add the name of the parent item @@ -675,7 +676,7 @@ foreach ($map as $name => $field) { $tmpres = array(); - $tmpres['class'] = 'question'; + $tmpres['class'] = Gems_Tracker_SurveyModel::CLASS_MAIN_QUESTION; $tmpres['group'] = $field['gid']; $tmpres['type'] = $field['type']; $tmpres['title'] = $field['title']; @@ -700,7 +701,7 @@ // "Next" question $tmpres['question'] = $this->removeMarkup($field['sq_question']); } - $tmpres['class'] = 'question_sub'; + $tmpres['class'] = Gems_Tracker_SurveyModel::CLASS_SUB_QUESTION; } $tmpres['answers'] = $this->_getPossibleAnswers($field); Modified: trunk/library/classes/Gems/Tracker/SurveyModel.php =================================================================== --- trunk/library/classes/Gems/Tracker/SurveyModel.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/Gems/Tracker/SurveyModel.php 2012-10-17 11:03:07 UTC (rev 988) @@ -47,6 +47,16 @@ class Gems_Tracker_SurveyModel extends Gems_Model_JoinModel { /** + * Constant containing css classname for main questions + */ + const CLASS_MAIN_QUESTION = 'question'; + + /** + * Constant containing css classname for subquestions + */ + const CLASS_SUB_QUESTION = 'question_sub'; + + /** * * @var Gems_Tracker_Source_SourceInterface */ Modified: trunk/library/classes/MUtil/Model/ModelAbstract.php =================================================================== --- trunk/library/classes/MUtil/Model/ModelAbstract.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/MUtil/Model/ModelAbstract.php 2012-10-17 11:03:07 UTC (rev 988) @@ -545,7 +545,7 @@ * Use <code>$this->set('fieldname', 'order', <value>);</code> to set a custom ordering. * * @see set() - * @return array + * @return array int => name */ public function getItemsOrdered() { Modified: trunk/library/classes/MUtil/Model.php =================================================================== --- trunk/library/classes/MUtil/Model.php 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/classes/MUtil/Model.php 2012-10-17 11:03:07 UTC (rev 988) @@ -78,6 +78,7 @@ */ const TEXT_FILTER = 'search'; + const TYPE_NOVALUE = 0; const TYPE_STRING = 1; const TYPE_NUMERIC = 2; const TYPE_DATE = 3; Modified: trunk/library/languages/default-en.mo =================================================================== (Binary files differ) Modified: trunk/library/languages/default-en.po =================================================================== --- trunk/library/languages/default-en.po 2012-10-16 13:41:46 UTC (rev 987) +++ trunk/library/languages/default-en.po 2012-10-17 11:03:07 UTC (rev 988) @@ -2,14 +2,14 @@ msgstr "" "Project-Id-Version: GemsTracker EN\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-11 18:28+0100\n" +"POT-Creation-Date: 2012-10-17 12:56+0100\n" "PO-Revision-Date: \n" "Last-Translator: Matijs de Jong <mj...@ma...>\n" "Language-Team: Erasmus MGZ <mat...@ma...>\n" -"Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: en_GB\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Poedit-SourceCharset: iso-8859-1\n" "X-Poedit-Basepath: ../\n" @@ -31,7 +31,8 @@ msgid "You are logged in as %s" msgstr "You are logged in as %s" -#: classes/GemsEscort.php:803 classes/Gems/Menu.php:263 +#: classes/GemsEscort.php:803 +#: classes/Gems/Menu.php:263 msgid "Logoff" msgstr "Logoff" @@ -49,18 +50,15 @@ msgstr "version" #: classes/GemsEscort.php:1465 -msgid "" -"Take note: your session has expired, your inputs were not saved. Please " -"check the input data and try again" -msgstr "" -"Take note: your session has expired, your inputs were not saved. Please " -"check the input data and try again" +msgid "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" +msgstr "Take note: your session has expired, your inputs were not saved. Please check the input data and try again" #: classes/GemsEscort.php:1594 msgid "Please check back later." msgstr "Please check back later." -#: classes/GemsEscort.php:1596 classes/GemsEscort.php:1600 +#: classes/GemsEscort.php:1596 +#: classes/GemsEscort.php:1600 #: classes/GemsEscort.php:1601 msgid "System is in maintenance mode" msgstr "System is in maintenance mode" @@ -69,22 +67,22 @@ msgid "No access to site." msgstr "No access to site." -#: classes/GemsEscort.php:1613 classes/GemsEscort.php:1656 +#: classes/GemsEscort.php:1613 +#: classes/GemsEscort.php:1656 msgid "You have no access to this site." msgstr "You have no access to this site." -#: classes/GemsEscort.php:1629 classes/Gems/Default/StaffAction.php:317 +#: classes/GemsEscort.php:1629 msgid "No access to page" msgstr "No access to page" -#: classes/GemsEscort.php:1631 classes/Gems/Default/OrganizationAction.php:102 -#: classes/Gems/Default/StaffAction.php:318 -#: classes/Gems/Model/HiddenOrganizationModel.php:115 +#: classes/GemsEscort.php:1631 #, php-format msgid "Access to this page is not allowed for current role: %s." msgstr "Access to this page is not allowed for current role: %s." -#: classes/GemsEscort.php:1641 classes/GemsEscort.php:1654 +#: classes/GemsEscort.php:1641 +#: classes/GemsEscort.php:1654 msgid "You are no longer logged in." msgstr "You are no longer logged in." @@ -92,7 +90,8 @@ msgid "You must login to access this page." msgstr "You must login to access this page." -#: classes/GemsEscort.php:1783 classes/GemsEscort.php:1785 +#: classes/GemsEscort.php:1783 +#: classes/GemsEscort.php:1785 #, php-format msgid "%d survey" msgid_plural "%d surveys" @@ -148,7 +147,7 @@ msgid "Project setup" msgstr "Project setup" -#: classes/Gems/Menu.php:170 classes/Gems/Default/SourceAction.php:203 +#: classes/Gems/Menu.php:170 msgid "Database" msgstr "Database" @@ -156,11 +155,11 @@ msgid "Content" msgstr "Content" -#: classes/Gems/Menu.php:177 classes/Gems/Default/DatabaseAction.php:313 +#: classes/Gems/Menu.php:177 msgid "Execute" msgstr "Execute" -#: classes/Gems/Menu.php:182 classes/Gems/Default/DatabaseAction.php:289 +#: classes/Gems/Menu.php:182 msgid "Patches" msgstr "Patches" @@ -176,7 +175,7 @@ msgid "Run SQL" msgstr "Run SQL" -#: classes/Gems/Menu.php:190 classes/Gems/Default/ReceptionAction.php:131 +#: classes/Gems/Menu.php:190 msgid "Reception codes" msgstr "Reception codes" @@ -184,16 +183,16 @@ msgid "Consents" msgstr "Consents" -#: classes/Gems/Menu.php:196 classes/Gems/Default/RoleAction.php:309 +#: classes/Gems/Menu.php:196 msgid "Roles" msgstr "Roles" -#: classes/Gems/Menu.php:197 classes/Gems/Menu.php:391 +#: classes/Gems/Menu.php:197 +#: classes/Gems/Menu.php:391 msgid "Assigned" msgstr "Assigned" -#: classes/Gems/Menu.php:198 classes/Gems/Default/RoleAction.php:238 -#: classes/Gems/Default/RoleAction.php:324 +#: classes/Gems/Menu.php:198 msgid "Privileges" msgstr "Privileges" @@ -202,20 +201,14 @@ msgstr "Groups" #: classes/Gems/Menu.php:204 -#: classes/Gems/Default/SurveyMaintenanceAction.php:204 -#: classes/Gems/Default/TrackMaintenanceAction.php:131 -#: classes/Gems/Email/MailTemplateForm.php:101 -#: classes/Gems/Tracker/Snippets/EditTrackEngineSnippetGeneric.php:140 msgid "Organizations" msgstr "Organizations" -#: classes/Gems/Menu.php:207 classes/Gems/Default/GroupAction.php:121 -#: classes/Gems/Default/LogAction.php:193 -#: classes/Gems/Default/StaffAction.php:470 +#: classes/Gems/Menu.php:207 msgid "Staff" msgstr "Staff" -#: classes/Gems/Menu.php:210 classes/Gems/Default/LogAction.php:213 +#: classes/Gems/Menu.php:210 msgid "Logging" msgstr "Logging" @@ -227,15 +220,14 @@ msgid "Upgrade" msgstr "Upgrade" -#: classes/Gems/Menu.php:220 classes/Gems/Menu.php:221 -#: classes/Gems/Default/ProjectInformationAction.php:113 -#: classes/Gems/Default/ProjectInformationAction.php:118 +#: classes/Gems/Menu.php:220 +#: classes/Gems/Menu.php:221 #, php-format msgid "Changelog %s" msgstr "Changelog %s" -#: classes/Gems/Menu.php:222 classes/Gems/Menu.php:355 -#: classes/Gems/Menu/SubMenuItem.php:551 +#: classes/Gems/Menu.php:222 +#: classes/Gems/Menu.php:355 msgid "Show" msgstr "Show" @@ -264,7 +256,7 @@ msgid "Logon" msgstr "Logon" -#: classes/Gems/Menu.php:258 classes/Gems/User/Form/LoginForm.php:112 +#: classes/Gems/Menu.php:258 msgid "Lost password" msgstr "Lost password" @@ -272,72 +264,40 @@ msgid "Your account" msgstr "Your account" -#: classes/Gems/Menu.php:260 classes/Gems/Default/OptionAction.php:153 +#: classes/Gems/Menu.php:260 msgid "Activity overview" msgstr "Activity overview" -#: classes/Gems/Menu.php:261 classes/Gems/Default/OptionAction.php:78 +#: classes/Gems/Menu.php:261 msgid "Change password" msgstr "Change password" -#: classes/Gems/Menu.php:262 classes/Gems/Menu.php:315 -#: classes/Gems/Menu.php:361 classes/Gems/Default/MailLogAction.php:114 -#: classes/Gems/Default/TrackAction.php:459 -#: classes/Gems/Export/RespondentExport.php:147 -#: classes/Gems/Snippets/TokenModelSnippetAbstract.php:70 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:482 -#: classes/Gems/Tracker/Form/AskTokenForm.php:77 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:195 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:188 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:197 -#: snippets/BrowseSingleSurveyTokenSnippet.php:164 -#: snippets/TrackTokenOverviewSnippet.php:132 -#: snippets/Organization/OrganizationEditSnippet.php:89 -#: snippets/Track/Token/ShowAllOpenSnippet.php:88 -#: snippets/Track/Token/ShowFirstOpenSnippet.php:110 +#: classes/Gems/Menu.php:262 +#: classes/Gems/Menu.php:315 +#: classes/Gems/Menu.php:361 msgid "Token" msgstr "Token" -#: classes/Gems/Menu.php:303 classes/Gems/Export/RespondentExport.php:318 +#: classes/Gems/Menu.php:303 msgid "Export" msgstr "Export" -#: classes/Gems/Menu.php:310 classes/Gems/Default/MailJobAction.php:99 -#: classes/Gems/Default/ProjectTracksAction.php:64 -#: classes/Gems/Default/TrackAction.php:328 -#: classes/Gems/Default/TrackActionAbstract.php:219 -#: classes/Gems/Default/TrackFieldsAction.php:96 -#: classes/Gems/Email/OneMailForm.php:54 -#: classes/Gems/Export/RespondentExport.php:224 -#: classes/Gems/Export/RespondentExport.php:236 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:484 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:752 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:216 -#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:149 -#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:146 -#: snippets/Track/Token/ShowAllOpenSnippet.php:148 +#: classes/Gems/Menu.php:310 msgid "Track" msgstr "Track" -#: classes/Gems/Menu.php:318 classes/Gems/Menu.php:343 +#: classes/Gems/Menu.php:318 +#: classes/Gems/Menu.php:343 #: classes/Gems/Menu.php:385 -#: classes/Gems/Default/TrackMaintenanceAction.php:367 -#: snippets/AddTracksSnippet.php:242 msgid "Add" msgstr "Add" -#: classes/Gems/Menu.php:324 classes/Gems/Menu.php:424 -#: classes/Gems/Email/EmailFormAbstract.php:280 -#: classes/Gems/Email/EmailFormAbstract.php:291 -#: classes/Gems/Menu/MenuAbstract.php:367 -#: classes/Gems/Menu/MenuAbstract.php:380 +#: classes/Gems/Menu.php:324 +#: classes/Gems/Menu.php:424 msgid "Preview" msgstr "Preview" -#: classes/Gems/Menu.php:333 classes/Gems/Default/ExportAction.php:149 -#: classes/Gems/Default/TrackMaintenanceAction.php:314 -#: classes/Gems/Menu/MenuAbstract.php:376 -#: classes/Gems/Menu/MenuAbstract.php:458 snippets/AddTracksSnippet.php:239 +#: classes/Gems/Menu.php:333 msgid "Tracks" msgstr "Tracks" @@ -345,19 +305,15 @@ msgid "Assignments" msgstr "Assignments" -#: classes/Gems/Menu.php:365 classes/Gems/Menu/SubMenuItem.php:417 +#: classes/Gems/Menu.php:365 msgid "Edit" msgstr "Edit" -#: classes/Gems/Menu.php:371 classes/Gems/Menu/SubMenuItem.php:398 +#: classes/Gems/Menu.php:371 msgid "Delete" msgstr "Delete" #: classes/Gems/Menu.php:378 -#: classes/Gems/Default/SurveyMaintenanceAction.php:564 -#: classes/Gems/Menu/MenuAbstract.php:383 -#: classes/Gems/Menu/MenuAbstract.php:445 -#: classes/Gems/Tracker/Model/TrackModel.php:100 msgid "Surveys" msgstr "Surveys" @@ -374,13 +330,10 @@ msgstr "E-Mail now!" #: classes/Gems/Menu.php:427 -#: classes/Gems/Tracker/Engine/StepEngineAbstract.php:481 msgid "Answers" msgstr "Answers" -#: classes/Gems/Menu.php:579 classes/Gems/Default/GroupAction.php:122 -#: classes/Gems/Default/OrganizationAction.php:150 -#: classes/Gems/Default/RespondentAction.php:425 +#: classes/Gems/Menu.php:579 msgid "Respondents" msgstr "Patients" @@ -388,7 +341,7 @@ msgid "Overview" msgstr "Overview" -#: classes/Gems/Menu.php:594 classes/Gems/Menu/MenuAbstract.php:340 +#: classes/Gems/Menu.php:594 msgid "Project" msgstr "Project" @@ -404,13 +357,11 @@ msgid "Mail" msgstr "Mail" -#: classes/Gems/Menu.php:609 classes/Gems/Default/RespondentAction.php:533 -#: classes/Gems/Default/RespondentExportAction.php:60 +#: classes/Gems/Menu.php:609 msgid "Export respondent" msgstr "Export respondent" -#: classes/Gems/Menu.php:615 classes/Gems/Default/ContactAction.php:101 -#: snippets/Organization/OrganizationEditSnippet.php:82 +#: classes/Gems/Menu.php:615 msgid "Contact" msgstr "Contact" @@ -419,19 +370,10 @@ msgstr "Changelog" #: classes/Gems/Model.php:206 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:213 msgid "Respondent nr" msgstr "Patient nr" -#: classes/Gems/Model.php:209 classes/Gems/Default/ExportAction.php:172 -#: classes/Gems/Default/IndexAction.php:229 -#: classes/Gems/Default/LogAction.php:197 -#: classes/Gems/Default/MailJobAction.php:98 -#: classes/Gems/Default/StaffAction.php:340 -#: classes/Gems/Snippets/Export/ReportHeaderSnippet.php:63 -#: classes/Gems/User/Form/LayeredLoginForm.php:254 -#: classes/Gems/User/Form/OrganizationFormAbstract.php:166 -#: snippets/Organization/OrganizationEditSnippet.php:80 +#: classes/Gems/Model.php:209 msgid "Organization" msgstr "Organization" @@ -443,44 +385,27 @@ msgid "Consent" msgstr "Consent" -#: classes/Gems/Model.php:214 classes/Gems/Default/OptionAction.php:130 -#: classes/Gems/Default/StaffAction.php:330 +#: classes/Gems/Model.php:214 msgid "E-Mail" msgstr "E-Mail" -#: classes/Gems/Model.php:219 classes/Gems/Default/OptionAction.php:134 -#: classes/Gems/Default/StaffAction.php:343 +#: classes/Gems/Model.php:219 msgid "Gender" msgstr "Gender" -#: classes/Gems/Model.php:220 classes/Gems/Default/OptionAction.php:131 -#: classes/Gems/Default/StaffAction.php:185 +#: classes/Gems/Model.php:220 msgid "First name" msgstr "First name" -#: classes/Gems/Model.php:221 classes/Gems/Default/OptionAction.php:132 -#: classes/Gems/Default/StaffAction.php:187 +#: classes/Gems/Model.php:221 msgid "Surname prefix" msgstr "Surname prefix" -#: classes/Gems/Model.php:222 classes/Gems/Default/OptionAction.php:133 -#: classes/Gems/Default/StaffAction.php:188 +#: classes/Gems/Model.php:222 msgid "Last name" msgstr "Last name" -#: classes/Gems/Model.php:224 classes/Gems/Default/DatabaseAction.php:135 -#: classes/Gems/Default/DatabaseAction.php:335 -#: classes/Gems/Default/GroupAction.php:115 -#: classes/Gems/Default/OrganizationAction.php:122 -#: classes/Gems/Default/RoleAction.php:231 -#: classes/Gems/Default/SourceAction.php:195 -#: classes/Gems/Default/StaffAction.php:328 -#: classes/Gems/Default/SurveyMaintenanceAction.php:413 -#: classes/Gems/Default/TokenPlanAction.php:121 -#: classes/Gems/Default/TrackFieldsAction.php:98 -#: classes/Gems/Default/TrackMaintenanceAction.php:227 -#: classes/Gems/Snippets/TokenPlanTableSnippet.php:60 -#: classes/Gems/Tracker/Model/TrackModel.php:98 +#: classes/Gems/Model.php:224 msgid "Name" msgstr "Name" @@ -493,7 +418,6 @@ msgstr "Zipcode" #: classes/Gems/Model.php:229 -#: classes/Gems/Default/RespondentPlanAction.php:134 msgid "City" msgstr "City" @@ -502,7 +426,6 @@ msgstr "Phone" #: classes/Gems/Model.php:233 -#: classes/Gems/Default/RespondentPlanAction.php:133 msgid "Birthday" msgstr "Birthday" @@ -549,110 +472,61 @@ msgstr "Trying upgrade for %s to level %s: %s" #: classes/Gems/Controller/BrowseEditAction.php:357 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:239 -#: classes/Gems/Default/StaffAction.php:228 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:186 #, php-format msgid "New %s..." msgstr "New %s..." #: classes/Gems/Controller/BrowseEditAction.php:390 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:259 -#: classes/Gems/Default/TrackFieldsAction.php:130 -#: classes/Gems/Default/TrackRoundsAction.php:171 #, php-format msgid "Delete %s" msgstr "Delete %s" #: classes/Gems/Controller/BrowseEditAction.php:394 -#: classes/Gems/Default/TrackFieldsAction.php:137 -#: classes/Gems/Default/TrackRoundsAction.php:186 -#: snippets/DeleteSingleSurveyInSourceTokenSnippet.php:134 -#: snippets/DeleteTrackTokenSnippet.php:152 #, php-format msgid "%2$u %1$s deleted" msgstr "%2$u %1$s deleted" #: classes/Gems/Controller/BrowseEditAction.php:411 -#: classes/Gems/Default/OrganizationAction.php:208 #, php-format msgid "Edit %s %s" msgstr "Edit %s %s" #: classes/Gems/Controller/BrowseEditAction.php:413 -#: classes/Gems/Controller/ModelSnippetActionAbstract.php:269 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:188 #, php-format msgid "Edit %s" msgstr "Edit %s" #: classes/Gems/Controller/BrowseEditAction.php:516 -#: classes/Gems/Snippets/AutosearchFormSnippet.php:166 msgid "Free search text" msgstr "Free search text" #: classes/Gems/Controller/BrowseEditAction.php:587 -#: classes/Gems/Snippets/AutosearchFormSnippet.php:241 msgid "Search" msgstr "Search" #: classes/Gems/Controller/BrowseEditAction.php:603 -#: classes/Gems/Default/TrackMaintenanceAction.php:361 #, php-format msgid "No %s found" msgstr "No %s found" #: classes/Gems/Controller/BrowseEditAction.php:690 -#: classes/Gems/Default/ExportAction.php:245 #, php-format msgid "No %s found." msgstr "No %s found." #: classes/Gems/Controller/BrowseEditAction.php:805 -#: classes/Gems/Default/TrackRoundsAction.php:244 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:94 msgid "Are you sure?" msgstr "Are you sure?" #: classes/Gems/Controller/BrowseEditAction.php:821 -#: classes/Gems/Default/DatabaseAction.php:187 -#: classes/Gems/Default/DatabaseAction.php:499 -#: classes/Gems/Default/StaffAction.php:276 -#: classes/Gems/Default/TrackAction.php:419 -#: classes/Gems/Default/TrackRoundsAction.php:265 -#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:181 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:143 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:147 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:166 -#: classes/Gems/Util/Translated.php:263 -#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:192 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:124 msgid "Yes" msgstr "Yes" #: classes/Gems/Controller/BrowseEditAction.php:822 -#: classes/Gems/Default/DatabaseAction.php:188 -#: classes/Gems/Default/DatabaseAction.php:500 -#: classes/Gems/Default/StaffAction.php:277 -#: classes/Gems/Default/TrackAction.php:420 -#: classes/Gems/Default/TrackRoundsAction.php:266 -#: classes/Gems/Snippets/ModelItemYesNoDeleteSnippetAbstract.php:183 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:144 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:148 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:167 -#: classes/Gems/Util/ReceptionCodeLibrary.php:99 -#: classes/Gems/Util/ReceptionCodeLibrary.php:123 -#: classes/Gems/Util/Translated.php:263 -#: classes/MUtil/Snippets/ModelYesNoDeleteSnippetAbstract.php:194 -#: snippets/DeleteSingleSurveyNotUsedTokenSnippet.php:125 msgid "No" msgstr "No" #: classes/Gems/Controller/BrowseEditAction.php:875 -#: classes/Gems/Default/RespondentAction.php:246 -#: classes/Gems/Default/RespondentAction.php:478 -#: classes/Gems/Default/RespondentAction.php:516 -#: classes/Gems/Default/TrackAction.php:554 #, php-format msgid "Unknown %s requested" msgstr "Unknown %s requested" @@ -663,15 +537,10 @@ msgstr "New %1$s..." #: classes/Gems/Controller/BrowseEditAction.php:906 -#: classes/Gems/Email/MailTemplateForm.php:108 -#: classes/Gems/User/Form/ChangePasswordForm.php:341 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:245 msgid "Save" msgstr "Save" #: classes/Gems/Controller/BrowseEditAction.php:942 -#: classes/Gems/Default/MailTemplateAction.php:116 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:209 #, php-format msgid "%2$u %1$s saved" msgstr "%2$u %1$s saved" @@ -681,31 +550,21 @@ msgstr "No changes to save." #: classes/Gems/Controller/BrowseEditAction.php:954 -#: classes/Gems/Default/RespondentAction.php:307 msgid "Input error! No changes saved!" msgstr "Input error! No changes saved!" #: classes/Gems/Controller/BrowseEditAction.php:982 -#: classes/Gems/Default/SurveyMaintenanceAction.php:593 #, php-format msgid "Show %s" msgstr "Show %s" #: classes/Gems/Controller/BrowseEditAction.php:989 -#: classes/Gems/Default/SurveyMaintenanceAction.php:602 #, php-format msgid "Unknown %s." msgstr "Unknown %s." #: classes/Gems/Controller/ModelActionAbstract.php:97 #: classes/Gems/Default/DatabaseAction.php:503 -#: classes/Gems/Default/SourceAction.php:292 -#: classes/Gems/Default/UpgradeAction.php:184 -#: classes/Gems/Snippets/ModelFormSnippetAbstract.php:171 -#: classes/Gems/Snippets/ModelItemTableSnippetAbstract.php:180 -#: classes/Gems/Tracker/Snippets/ShowRoundSnippetAbstract.php:193 -#: snippets/Generic/CurrentButtonRowSnippet.php:77 -#: snippets/Track/Token/ShowFirstOpenSnippet.php:133 msgid "Cancel" msgstr "Cancel" @@ -729,8 +588,6 @@ msgstr "Showing %s" #: classes/Gems/Controller/ModelSnippetActionAbstract.php:390 -#: classes/Gems/Default/OptionAction.php:181 -#: classes/MUtil/Snippets/ModelFormSnippetAbstract.php:341 msgid "item" msgid_plural "items" msgstr[0] "item" @@ -767,36 +624,22 @@ msgstr "After answering the survey you will be logged off automatically." #: classes/Gems/Default/AskAction.php:100 -msgid "" -"A token consists of two groups of four letters and numbers, separated by an " -"optional hyphen. Tokens are case insensitive." -msgstr "" -"A token consists of two groups of four letters and numbers, separated by an " -"optional hyphen. Tokens are case insensitive." +msgid "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." +msgstr "A token consists of two groups of four letters and numbers, separated by an optional hyphen. Tokens are case insensitive." #: classes/Gems/Default/AskAction.php:101 -msgid "" -"The number zero and the letter O are treated as the same; the same goes for " -"the number one and the letter L." -msgstr "" -"The number zero and the letter O are treated as the same; the same goes for " -"the number one and the letter L." +msgid "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." +msgstr "The number zero and the letter O are treated as the same; the same goes for the number one and the letter L." #: classes/Gems/Default/AskAction.php:136 #, php-format -msgid "" -"Thank you for answering. At the moment we have no further surveys for you to " -"take." -msgstr "" -"Thank you for answering. At the moment we have no further surveys for you to " -"take." +msgid "Thank you for answering. At the moment we have no further surveys for you to take." +msgstr "Thank you for answering. At the moment we have no further surveys for you to take." #: classes/Gems/Default/AskAction.php:138 #, php-format -msgid "" -"The survey for token %s has been answered and no further surveys are open." -msgstr "" -"The survey for token %s has been answered and no further surveys are open." +msgid "The survey for token %s has been answered and no further surveys are open." +msgstr "The survey for token %s has been answered and no further surveys are open." #: classes/Gems/Default/AskAction.php:145 #, php-format @@ -810,26 +653,11 @@ #: classes/Gems/Default/ConsentAction.php:68 #: classes/Gems/Default/GroupAction.php:116 -#: classes/Gems/Default/ReceptionAction.php:81 -#: classes/Gems/Default/RoleAction.php:232 -#: classes/Gems/Default/SurveyMaintenanceAction.php:200 -#: classes/Gems/Default/SurveyMaintenanceAction.php:414 -#: classes/Gems/Default/TrackActionAbstract.php:220 -#: classes/Gems/Default/TrackFieldsAction.php:101 -#: classes/Gems/Default/UpgradeAction.php:176 -#: classes/Gems/Export/RespondentExport.php:225 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:758 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:214 -#: classes/Gems/Tracker/Snippets/EditTrackSnippetAbstract.php:150 -#: classes/Gems/Tracker/Snippets/ShowTrackUsageAbstract.php:147 -#: snippets/TrackSurveyOverviewSnippet.php:115 msgid "Description" msgstr "Description" #: classes/Gems/Default/ConsentAction.php:70 #: classes/Gems/Default/DatabaseAction.php:139 -#: classes/Gems/Default/TrackFieldsAction.php:97 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:757 msgid "Order" msgstr "Order" @@ -842,12 +670,8 @@ msgstr "Consent code" #: classes/Gems/Default/ConsentAction.php:75 -msgid "" -"Internal code, not visible to users, copied with the token information to " -"the source." -msgstr "" -"Internal code, not visible to users, copied with the token information to " -"the source." +msgid "Internal code, not visible to users, copied with the token information to the source." +msgstr "Internal code, not visible to users, copied with the token information to the source." #: classes/Gems/Default/ConsentAction.php:92 msgid "respondent consent" @@ -896,14 +720,10 @@ msgstr "No mails sent." #: classes/Gems/Default/CronAction.php:195 -#: classes/Gems/Email/MultiMailForm.php:49 -#: classes/Gems/Email/OneMailForm.php:47 msgid "On this test system all mail will be delivered to the from address." msgstr "On this test system all mail will be delivered to the from address." #: classes/Gems/Default/DatabaseAction.php:75 -#: classes/Gems/Default/ProjectInformationAction.php:192 -#: classes/Gems/Task/CleanCache.php:58 msgid "Cache cleaned" msgstr "Cache cleaned" @@ -913,25 +733,18 @@ msgstr "No rows in %s." #: classes/Gems/Default/DatabaseAction.php:134 -#: classes/Gems/Default/TrackFieldsAction.php:104 -#: classes/Gems/Default/TrackMaintenanceAction.php:229 msgid "Type" msgstr "Type" #: classes/Gems/Default/DatabaseAction.php:138 -#: classes/Gems/Default/SurveyMaintenanceAction.php:435 msgid "Group" msgstr "Group" #: classes/Gems/Default/DatabaseAction.php:140 -#: classes/Gems/Default/OrganizationAction.php:123 msgid "Location" msgstr "Location" #: classes/Gems/Default/DatabaseAction.php:143 -#: classes/Gems/Default/SourceAction.php:210 -#: classes/Gems/Export/RespondentExport.php:148 -#: classes/Gems/Tracker/Snippets/AnswerModelSnippetGeneric.php:157 msgid "Status" msgstr "Status" @@ -942,7 +755,6 @@ #: classes/Gems/Default/DatabaseAction.php:148 #: classes/Gems/Default/DatabaseAction.php:293 #: classes/Gems/Default/DatabaseAction.php:340 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:204 msgid "Changed on" msgstr "Changed on" @@ -1013,9 +825,6 @@ #: classes/Gems/Default/DatabaseAction.php:287 #: classes/Gems/Default/DatabaseAction.php:333 -#: classes/Gems/Default/UpgradeAction.php:126 -#: classes/Gems/Default/UpgradeAction.php:153 -#: classes/Gems/Default/UpgradeAction.php:175 msgid "Level" msgstr "Level" @@ -1048,7 +857,6 @@ msgstr "%d new or changed patch(es)." #: classes/Gems/Default/DatabaseAction.php:303 -#: classes/Gems/Default/ProjectInformationAction.php:137 msgid "Gems build" msgstr "Gems build" @@ -1073,7 +881,6 @@ msgstr "Show patches" #: classes/Gems/Default/DatabaseAction.php:326 -#: classes/Gems/Task/Db/ExecutePatch.php:68 #, php-format msgid "%d patch(es) executed." msgstr "%d patch(es) executed." @@ -1117,7 +924,6 @@ msgstr "Starting %d object creation scripts." #: classes/Gems/Default/DatabaseAction.php:474 -#: classes/Gems/Task/Db/CreateNewTable.php:73 #, php-format msgid "Finished %s creation script for object %d of %d" msgstr "Finished %s creation script for object %d of %d" @@ -1152,7 +958,6 @@ msgstr "Separate multiple commands with semicolons (;)." #: classes/Gems/Default/DatabaseAction.php:522 -#: classes/Gems/Menu/MenuAbstract.php:275 msgid "Run" msgstr "Run" @@ -1196,14 +1001,6 @@ msgstr "Not patient nr, but respondent id as exported here." #: classes/Gems/Default/ExportAction.php:154 -#: classes/Gems/Default/MailJobAction.php:100 -#: classes/Gems/Default/ProjectSurveysAction.php:67 -#: classes/Gems/Default/SurveyAction.php:193 -#: classes/Gems/Email/OneMailForm.php:57 -#: classes/Gems/Export/RespondentExport.php:145 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:755 -#: classes/Gems/Tracker/Model/StandardTokenModel.php:215 -#: snippets/TrackSurveyOverviewSnippet.php:111 msgid "Survey" msgstr "Survey" @@ -1225,40 +1022,25 @@ msgstr "Export data" #: classes/Gems/Default/GroupAction.php:71 -#: classes/Gems/Default/ReceptionAction.php:55 msgid "Can be assigned to" msgstr "Can be assigned to" #: classes/Gems/Default/GroupAction.php:117 #: classes/Gems/Default/LogAction.php:201 -#: classes/Gems/Default/RoleAction.php:298 msgid "Role" msgstr "Role" #: classes/Gems/Default/GroupAction.php:120 -#: classes/Gems/Default/MailJobAction.php:82 -#: classes/Gems/Default/OrganizationAction.php:147 -#: classes/Gems/Default/ReceptionAction.php:87 -#: classes/Gems/Default/SourceAction.php:101 -#: classes/Gems/Default/SurveyMaintenanceAction.php:426 -#: classes/Gems/Default/SurveyMaintenanceAction.php:481 -#: classes/Gems/Tracker/Engine/TrackEngineAbstract.php:761 -#: classes/Gems/Tracker/Model/TrackModel.php:102 -#: classes/Gems/Util/TrackData.php:147 msgid "Active" msgstr "Active" #: classes/Gems/Default/GroupAction.php:125 -#: classes/Gems/Default/OrganizationAction.php:171 msgid "Allowed IP Ranges" msgstr "Allowed IP Ranges" #: classes/Gems/Default/GroupAction.php:126 -#: classes/Gems/Default/OrganizationAction.php:172 -msgid "" -"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" -msgstr "" -"Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +msgid "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" +msgstr "Separate with | example: 10.0.0.0-10.0.0.255 (subnet masks are not supported)" #: classes/Gems/Default/GroupAction.php:136 msgid "group" @@ -1283,12 +1065,8 @@ msgstr "Please enter your username or e-mail address. " #: classes/Gems/Default/IndexAction.php:182 -msgid "" -"We will then send you an e-mail with a link. The link will bring you to a " -"page where you can set a new password of your choice." -msgstr "" -"We will then send you an e-mail with a link. The link will bring you to a " -"page where you can set a new password of your choice." +msgid "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." +msgstr "We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice." #: classes/Gems/Default/IndexAction.php:188 msgid "Execute password reset" @@ -1312,7 +1090,6 @@ msgstr "Please enter your password of choice twice." #: classes/Gems/Default/IndexAction.php:218 -#: classes/Gems/User/Form/LayeredLoginForm.php:258 msgid "Department" msgstr "Department" @@ -1331,26 +1108,18 @@ msgstr "Good bye: %s." #: classes/Gems/Default/IndexAction.php:339 -msgid "" -"Your password reset request is no longer valid, please request a new link." -msgstr "" -"Your password reset request is no longer valid, please request a new link." +msgid "Your password reset request is no longer valid, please request a new link." +msgstr "Your password reset request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:341 -msgid "" -"Your password input request is no longer valid, please request a new link." -msgstr "" -"Your password input request is no longer valid, please request a new link." +msgid "Your password input request is no longer valid, please request a new link." +msgstr "Your password input request is no longer valid, please request a new link." #: classes/Gems/Default/IndexAction.php:360 -msgid "" -"We sent you an e-mail with a reset link. Click on the link in the e-mail." -msgstr "" -"We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgid "We sent you an e-mail with a reset link. Click on the link in the e-mail." +msgstr "We sent you an e-mail with a reset link. Click on the link in the e-mail." #: classes/Gems/Default/IndexAction.php:369 -#: classes/Gems/Default/OptionAction.php:94 -#: classes/Gems/Default/StaffAction.php:510 msgid "New password is active." msgstr "New password is active." @@ -1363,9 +1132,7 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the " -"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" -"{reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1375,9 +1142,7 @@ "Dear {greeting},\n" "\n" "\n" -"A new password was requested for your [b]{organization}[/b] account on the " -"[b]{project}[/b] site, please click within {reset_in_hours} hours on [url=" -"{reset_url}]this link[/url] to enter the password of your choice.\n" +"A new password was requested for your [b]{organization}[/b] account on the [b]{project}[/b] site, please click within {reset_in_hours} hours on [url={reset_url}]this link[/url] to enter the password of your choice.\n" "\n" "\n" "{organization_signature}\n" @@ -1397,32 +1162,26 @@ msgstr "Invalid language setting." #: classes/Gems/Default/LogAction.php:78 -#: classes/Gems/Default/TokenPlanAction.php:243 msgid "from" msgstr "from" #: classes/Gems/Default/LogAction.php:83 -#: classes/Gems/Default/TokenPlanAction.php:248 msgid "until" msgstr "until" #: classes/Gems/Default/LogAction.php:89 -#: classes/Gems/Default/TokenPlanAction.php:254 msgid "days" msgstr "days" #: classes/Gems/Default/LogAction.php:90 -#: classes/Gems/Default/TokenPlanAction.php:255 msgid "weeks" msgstr "weeks" #: classes/Gems/Default/LogAction.php:91 -#: classes/Gems/Default/TokenPlanAction.php:256 msgid "months" msgstr "months" #: classes/Gems/Default/LogAction.php:92 -#: classes/Gems/Default/TokenPlanAction.php:257 msgid "years" msgstr "years" @@ -1459,34 +1218,23 @@ msgstr "All actions" #: classes/Gems/Default/LogAction.php:190 -#: classes/Gems/Default/TrackFieldsAction.php:92 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:472 msgid "Date" msgstr "Date" #: classes/Gems/Default/LogAction.php:191 #: classes/Gems/Default/LogMaintenanceAction.php:52 -#: classes/Gems/Default/UpgradeAction.php:177 msgid "Action" msgstr "Action" #: classes/Gems/Default/LogAction.php:192 -#: classes/Gems/Default/MailTemplateAction.php:66 -#: classes/Gems/Email/EmailFormAbstract.php:168 msgid "Message" msgstr "Message" #: classes/Gems/Default/LogAction.php:198 -#: classes/Gems/Default/TokenPlanAction.php:116 -#: classes/Gems/Snippets/TokenPlanTableSnippet.php:55 -#: snippets/RespondentDetailsSnippet.php:74 -#: snippets/RespondentDetailsWithAssignmentsSnippet.php:148 msgid "Respondent" msgstr "Patient" #: classes/Gems/Default/LogAction.php:202 -#: classes/Gems/Default/OptionAction.php:175 -#: classes/Gems/User/RadiusUserDefinition.php:163 msgid "IP address" msgstr "IP address" @@ -1500,7 +1248,6 @@ msgstr "Log:" #: classes/Gems/Default/LogMaintenanceAction.php:72 -#: snippets/RespondentTokenTabsSnippet.php:69 msgid "All" msgstr "All" @@ -1514,7 +1261,6 @@ #: classes/Gems/Default/MailJobAction.php:78 #: classes/Gems/Default/MailLogAction.php:118 -#: classes/Gems/Email/EmailFormAbstract.php:308 msgid "Template" msgstr "Template" @@ -1581,10 +1327,6 @@ msgstr "Use the 'By staff member' address" #: classes/Gems/Default/MailJobAction.php:133 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:290 -#: classes/Gems/Tracker/Source/LimeSurvey1m9FieldMap.php:338 -#: snippets/Organization/OrganizationEditSnippet.php:85 -#: snippets/Organization/OrganizationEditSnippet.php:131 msgid "Other" msgstr "Other" @@ -1608,12 +1350,8 @@ msgstr "Turn Automatic Mail Jobs ON" #: classes/Gems/Default/MailJobAction.php:176 -msgid "" -"With automatic mail jobs and a cron job on the server, mails can be sent " -"without manual user action." -msgstr "" -"With automatic mail jobs and a cron job on the server, mails can be sent " -"without manual user action." +msgid "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." +msgstr "With automatic mail jobs and a cron job on the server, mails can be sent without manual user action." #: classes/Gems/Default/MailLogAction.php:109 msgid "Date sent" @@ -1637,7 +1375,6 @@ #: classes/Gems/Default/MailLogAction.php:115 #: classes/Gems/Default/MailTemplateAction.php:62 -#: classes/Gems/Email/EmailFormAbstract.php:349 msgid "Subject" msgstr "Subject" @@ -1680,7 +1417,6 @@ msgstr "TLS" #: classes/Gems/Default/MailServerAction.php:80 -#: classes/Gems/User/RadiusUserDefinition.php:164 msgid "Port" msgstr "Port" @@ -1693,20 +1429,16 @@ msgstr "User ID" #: classes/Gems/Default/MailServerAction.php:88 -#: classes/Gems/User/Form/LoginForm.php:127 msgid "Password" msgstr "Password" #: classes/Gems/Default/MailServerAction.php:90 #: classes/Gems/Default/SourceAction.php:95 -#: classes/Gems/User/Form/ChangePasswordForm.php:241 -#: classes/Gems/User/Form/ChangePasswordForm.php:287 msgid "Repeat password" msgstr "Repeat password" #: classes/Gems/Default/MailServerAction.php:91 #: classes/Gems/Default/SourceAction.php:74 -#: classes/Gems/User/RadiusUserDefinition.php:169 msgid "Enter only when changing" msgstr "Enter only when changing the password" @@ -1722,8 +1454,6 @@ #: classes/Gems/Default/MailTemplateAction.php:76 #: classes/Gems/Default/RespondentAction.php:349 -#: classes/Gems/Default/StaffAction.php:335 -#: classes/Gems/Default/StaffAction.php:405 msgid "(all organizations)" msgstr "(all organizations)" @@ -1746,9 +1476,8 @@ msgstr "Login Name" #: classes/Gems/Default/OptionAction.php:136 -#: classes/Gems/Default/OrganizationAction.php:143 +#: classes/Gems/Default/OrganizationAction.php:147 #: classes/Gems/Default/RespondentAction.php:195 -#: classes/Gems/Default/StaffAction.php:351 msgid "Language" msgstr "Language" @@ -1758,12 +1487,8 @@ msgstr "Options" #: classes/Gems/Default/OptionAction.php:155 -msgid "" -"This overview provides information about the last login activity on your " -"account." -msgstr "" -"This overview provides information about the last login activity on your " -"account." +msgid "This overview provides information about the last login activity on your account." +msgstr "This overview provides information about the last login activity on your account." #: classes/Gems/Default/OptionAction.php:175 msgid "Date / time" @@ -1773,122 +1498,113 @@ msgid "Item" msgstr "Item" -#: classes/Gems/Default/OrganizationAction.php:100 -#: classes/Gems/Model/HiddenOrganizationModel.php:113 +#: classes/Gems/Default/OrganizationAction.php:104 msgid "Inaccessible or unknown organization" msgstr "Inaccessible or unknown organization" -#: classes/Gems/Default/OrganizationAction.php:124 +#: classes/Gems/Default/OrganizationAction.php:128 msgid "Url" msgstr "Url" -#: classes/Gems/Default/OrganizationAction.php:125 +#: classes/Gems/Default/OrganizationAction.php:129 msgid "Task" msgstr "Task" -#: classes/Gems/Default/OrganizationAction.php:126 +#: classes/Gems/Default/OrganizationAction.php:130 msgid "Contact name" msgstr "Contact name" -#: classes/Gems/Default/OrganizationAction.php:127 +#: classes/Gems/Default/OrganizationAction.php:131 msgid "Contact email" msgstr "Contact email" -#: classes/Gems/Default/OrganizationAction.php:130 +#: classes/Gems/Default/OrganizationAction.php:134 msgid "Style" msgstr "Style" -#: classes/Gems/Default/OrganizationAction.php:135 +#: classes/Gems/Default/OrganizationAction.php:139 msgid "Default url's" msgstr "Default url's" -#: classes/Gems/Default/OrganizationAction.php:137 +#: classes/Gems/Default/OrganizationAction.php:141 #, php-format -msgid "" -"Always switch to this organization when %s is accessed from one of these " -"space separated url's. The first is used for mails." -msgstr "" -"Always switch to this organization when %s is accessed from one of these " -"space separated url's. The first is used for mails." +msgid "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." +msgstr "Always switch to this organization when %s is accessed from one of these space separated url's. The first is used for mails." -#: classes/Gems/Default/OrganizationAction.php:147 +#: classes/Gems/Default/OrganizationAction.php:151 msgid "Can the organization be used?" msgstr "Can the organization be used?" -#: classes/Gems/Default/OrganizationAction.php:148 -#: classes/Gems/User/Form/LoginForm.php:151 +#: classes/Gems/Default/OrganizationAction.php:152 msgid "Login" msgstr "Login" -#: classes/Gems/Default/OrganizationAction.php:148 +#: classes/Gems/Default/OrganizationAction.php:152 msgid "Can people login for this organization?" msgstr "Can people login for this organization?" -#: classes/Gems/Default/OrganizationAction.php:149 +#: classes/Gems/Default/OrganizationAction.php:153 msgid "Accepting" msgstr "Accepting" -#: classes/Gems/Default/OrganizationAction.php:149 +#: classes/Gems/Default/OrganizationAction.php:153 msgid "Can new respondents be added to the organization?" msgstr "Can new patients be added to the organization?" -#: classes/Gems/Default/OrganizationAction.php:150 +#: classes/Gems/Default/OrganizationAction.php:154 msgid "Does the organization have respondents?" msgstr "Does the organization have patients?" -#: classes/Gems/Default/OrganizationAction.php:151 +#: classes/Gems/Default/OrganizationAction.php:155 msgid "Respondent group" msgstr "Patient group" -#: classes/Gems/Default/OrganizationAction.php:151 +#: classes/Gems/Default/OrganizationAction.php:155 msgid "Allows respondents to login." msgstr "Allow patients to login." -#: classes/Gems/Default/OrganizationAction.php:155 +#: classes/Gems/Default/OrganizationAction.php:159 msgid "Greeting" msgstr "Greeting" -#: classes/Gems/Default/OrganizationAction.php:155 -#: classes/Gems/Default/OrganizationAction.php:156 +#: classes/Gems/Default/OrganizationAction.php:159 +#: classes/Gems/Default/OrganizationAction.php:160 msgid "For emails and token forward screen." msgstr "For emails and token forward screen." -#: classes/Gems/Default/OrganizationAction.php:156 +#: classes/Gems/Default/OrganizationAction.php:160 msgid "Signature" msgstr "Signature" -#: classes/Gems/Default/OrganizationAction.php:158 +#: classes/Gems/Default/OrganizationAction.php:162 msgid "Accessible by" msgstr "Accessible by" -#: classes/Gems/Default/OrganizationAction.php:158 +#: classes/Gems/Default/OrganizationAction.php:162 msgid "Checked organizations see this organizations respondents." msgstr "Checked organizations see this organizations patients." -#: classes/Gems/Default/OrganizationAction.php:168 -#: classes/Gems/Default/SurveyMaintenanceAction.php:443 +#: classes/Gems/Default/OrganizationAction.php:172 msgid "Code name" msgstr "Code name" -#: classes/Gems/Default/OrganizationAction.php:168 -#: classes/Gems/Default/SurveyMaintenanceAction.php:443 +#: classes/Gems/Default/OrganizationAction.php:172 msgid "Only for programmers." msgstr "Only for programmers." -#: classes/Gems/Default/OrganizationAction.php:186 +#: classes/Gems/Default/OrganizationActio... [truncated message content] |