|
From: <gem...@li...> - 2013-02-19 17:11:10
|
Revision: 1148
http://sourceforge.net/p/gemstracker/code/1148
Author: matijsdejong
Date: 2013-02-19 17:11:09 +0000 (Tue, 19 Feb 2013)
Log Message:
-----------
Whitespace can be used to separate respondent ids during export
Modified Paths:
--------------
trunk/library/classes/Gems/Default/RespondentExportAction.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/RespondentExportAction.php
===================================================================
--- trunk/library/classes/Gems/Default/RespondentExportAction.php 2013-02-19 10:32:35 UTC (rev 1147)
+++ trunk/library/classes/Gems/Default/RespondentExportAction.php 2013-02-19 17:11:09 UTC (rev 1148)
@@ -56,7 +56,7 @@
->setAttrib('cols', 60)
->setAttrib('rows', 4)
->setOrder(-1)
- ->setDescription($this->_('Separate multiple respondents with a comma (,)'));
+ ->setDescription($this->_('Separate multiple respondents with a comma (,) or whitespace'));
$form->addElement($element);
@@ -69,8 +69,8 @@
$form->populate($request->getParams());
if ($request->isPost()) {
- $respondents = explode(',', $request->getParam('id'));
- $respondents = array_map('trim', $respondents);
+ $respondents = preg_split('/[\s,]/', $request->getParam('id'));
+ $respondents = array_filter(array_map('trim', $respondents));
$export->render($respondents, $this->getRequest()->getParam('group'), $this->getRequest()->getParam('format'));
}
Modified: trunk/library/languages/default-en.mo
===================================================================
(Binary files differ)
Modified: trunk/library/languages/default-en.po
===================================================================
--- trunk/library/languages/default-en.po 2013-02-19 10:32:35 UTC (rev 1147)
+++ trunk/library/languages/default-en.po 2013-02-19 17:11:09 UTC (rev 1148)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: GemsTracker EN\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-15 18:23+0100\n"
+"POT-Creation-Date: 2013-02-19 18:03+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Matijs de Jong <mj...@ma...>\n"
"Language-Team: Erasmus MGZ <mat...@ma...>\n"
@@ -2428,8 +2428,8 @@
msgstr "Patient numbers"
#: classes/Gems/Default/RespondentExportAction.php:59
-msgid "Separate multiple respondents with a comma (,)"
-msgstr "Separate multiple respondents with a comma (,)"
+msgid "Separate multiple respondents with a comma (,) or whitespace"
+msgstr "Separate multiple patients with a comma (,) or whitespace"
#: classes/Gems/Default/RespondentPlanAction.php:67
#: classes/Gems/Default/SurveyAction.php:181
Modified: trunk/library/languages/default-nl.mo
===================================================================
(Binary files differ)
Modified: trunk/library/languages/default-nl.po
===================================================================
--- trunk/library/languages/default-nl.po 2013-02-19 10:32:35 UTC (rev 1147)
+++ trunk/library/languages/default-nl.po 2013-02-19 17:11:09 UTC (rev 1148)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: GemsTracker NL\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-15 18:22+0100\n"
+"POT-Creation-Date: 2013-02-19 18:03+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Matijs de Jong <mj...@ma...>\n"
"Language-Team: Erasmus MGZ <mat...@ma...>\n"
@@ -2437,8 +2437,10 @@
msgstr "Patiënt nummers"
#: classes/Gems/Default/RespondentExportAction.php:59
-msgid "Separate multiple respondents with a comma (,)"
-msgstr "Scheid meerdere patienten met een comma (,)"
+msgid "Separate multiple respondents with a comma (,) or whitespace"
+msgstr ""
+"Scheid verschillende patiënten met een comma (,), spatie, tab of een nieuwe "
+"regel"
#: classes/Gems/Default/RespondentPlanAction.php:67
#: classes/Gems/Default/SurveyAction.php:181
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|