Merge branch '2.5.x' into cc-5594-date_default

This commit is contained in:
Naomi 2013-12-04 14:42:30 -05:00
commit 82b40f52e7
14 changed files with 86 additions and 67 deletions

View file

@ -199,8 +199,7 @@ SQL;
//convert instance to local timezone
$ccShowInstance = CcShowInstancesQuery::create()->findPk($instanceId);
$startsDT = new DateTime($ccShowInstance->getDbStarts(),
new DateTimeZone("UTC"));
$startsDT = $ccShowInstance->getDbStarts(null);
$timezone = $ccShow->getFirstCcShowDay()->getDbTimezone();
$startsDT->setTimezone(new DateTimeZone($timezone));
@ -262,8 +261,8 @@ SQL;
foreach ($showInstances as $si) {
array_push($instanceIds, $si->getDbId());
$startsDateTime = new DateTime($si->getDbStarts(), new DateTimeZone("UTC"));
$endsDateTime = new DateTime($si->getDbEnds(), new DateTimeZone("UTC"));
$startsDateTime = $si->getDbStarts(null);
$endsDateTime = $si->getDbEnds(null);
/* The user is moving the show on the calendar from the perspective
of local time. * incase a show is moved across a time change
@ -296,9 +295,6 @@ SQL;
$hours = ($hours > 0) ? floor($hours) : ceil($hours);
$mins = abs($deltaMin % 60);
//current timesamp in UTC.
$current_timestamp = gmdate("Y-m-d H:i:s");
$sql_gen = "UPDATE cc_show_instances ".
"SET ends = (ends + :deltaDay1::INTERVAL + :interval1::INTERVAL) ".
"WHERE (id IN (".implode($instanceIds, ",").") ".
@ -309,7 +305,7 @@ SQL;
array(
':deltaDay1' => "$deltaDay days",
':interval1' => "$hours:$mins",
':current_timestamp1' => $current_timestamp,
':current_timestamp1' => $nowDateTime->format("Y-m-d H:i:s"),
':deltaDay2' => "$deltaDay days",
':interval2' => "$hours:$mins"
), "execute");
@ -340,7 +336,7 @@ SQL;
CcShowInstancesPeer::clearInstancePool();
$instances = CcShowInstancesQuery::create()
->filterByDbEnds($current_timestamp, Criteria::GREATER_THAN)
->filterByDbEnds($nowDateTime->format("Y-m-d H:i:s"), Criteria::GREATER_THAN)
->filterByDbId($instanceIds, Criteria::IN)
->find($con);

View file

@ -95,15 +95,14 @@ class CcShow extends BaseCcShow {
*/
public function isRepeating()
{
//get ALL cc_show_day entries
//get all cc_show_day entries that are repeating
$ccShowDays = CcShowDaysQuery::create()
->filterByDbShowId($this->id)
->filterByDbRepeatType(0, Criteria::GREATER_EQUAL)
->find();
foreach ($ccShowDays as $day) {
if ($day->getDbRepeatType() >= 0) {
return true;
}
if (!$ccShowDays->isEmpty()) {
return true;
}
return false;

View file

@ -40,8 +40,7 @@ class CcShowDays extends BaseCcShowDays {
);
//set timezone to that of the show
$dt->setTimezone(new DateTimeZone($this->getDbTimezone()));
//$dt->setTimezone(new DateTimeZone($this->getDbTimezone()));
return $dt;
}
@ -50,9 +49,9 @@ class CcShowDays extends BaseCcShowDays {
* Returns the end of a show in the timezone it was created in
* @param DateTime $startDateTime first show in show's local time
*/
public function getLocalEndDateAndTime($showStart)
public function getLocalEndDateAndTime()
{
$startDateTime = clone $showStart;
$startDateTime = $this->getLocalStartDateAndTime();
$duration = explode(":", $this->getDbDuration());
return $startDateTime->add(new DateInterval('PT'.$duration[0].'H'.$duration[1].'M'));

View file

@ -131,7 +131,7 @@ class Application_Service_ShowFormService
}
$showStart = $ccShowDay->getLocalStartDateAndTime();
$showEnd = $ccShowDay->getLocalEndDateAndTime($showStart);
$showEnd = $ccShowDay->getLocalEndDateAndTime();
//check if the first show is in the past
if ($ccShowDay->isShowStartInPast()) {

View file

@ -134,9 +134,6 @@ class Application_Service_ShowService
$updateCriteria->add(CcSchedulePeer::INSTANCE_ID, $ccShowInstance->getDbId());
BasePeer::doUpdate($selectCriteria, $updateCriteria, $con);
$ccShowInstance
->setDbLastScheduled(gmdate("Y-m-d H:i:s"))
->save();
$ccShowInstance->updateDbTimeFilled($con);
$ccShowInstance->updateScheduleStatus($con);

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Airtime 2.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-10-08 11:46-0400\n"
"PO-Revision-Date: 2013-10-10 17:18+0100\n"
"PO-Revision-Date: 2013-10-24 11:00+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Sourcefabric <contact@sourcefabric.org>\n"
"Language: cs_CZ\n"

View file

@ -8,10 +8,9 @@ msgstr ""
"Project-Id-Version: Airtime 2.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-10-08 11:46-0400\n"
"PO-Revision-Date: 2013-10-11 15:34+0100\n"
"PO-Revision-Date: 2013-11-20 10:54+0100\n"
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
"Language-Team: Hungarian Localization <contact@sourcefabric.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@ -137,7 +136,7 @@ msgstr "Fejezési Idő"
#: airtime_mvc/application/services/HistoryService.php:1150
msgid "Played"
msgstr "Lejátszott"
msgstr "Lejátszva"
#: airtime_mvc/application/services/CalendarService.php:50
msgid "Record file doesn't exist"
@ -160,7 +159,7 @@ msgstr "Feltöltés a SoundCloud-ra"
#: airtime_mvc/application/services/CalendarService.php:70
#: airtime_mvc/application/controllers/LibraryController.php:286
msgid "Re-upload to SoundCloud"
msgstr "Újra-feltöltés a SoundCloud -ra"
msgstr "Újra-feltöltés a SoundCloud-ra"
#: airtime_mvc/application/services/CalendarService.php:77
#: airtime_mvc/application/services/CalendarService.php:105
@ -883,7 +882,7 @@ msgstr "Az állomásom közzététele a Sourcefabric.org-on"
#: airtime_mvc/application/forms/SupportSettings.php:148
#, php-format
msgid "By checking this box, I agree to Sourcefabric's %sprivacy policy%s."
msgstr "A mező bejelölésével, elfogadom a Sourcefabric %sadatvédelmi irányelveket%s."
msgstr "A mező bejelölésével, elfogadom a Sourcefabric %sadatvédelmi irányelveit%s."
#: airtime_mvc/application/forms/RegisterAirtime.php:166
#: airtime_mvc/application/forms/SupportSettings.php:171
@ -2129,7 +2128,7 @@ msgstr "Hibakód:"
#: airtime_mvc/application/controllers/LocaleController.php:104
msgid "Error msg: "
msgstr "MSG hiba:"
msgstr "Hibaüzenet:"
#: airtime_mvc/application/controllers/LocaleController.php:105
msgid "Input must be a positive number"
@ -2182,7 +2181,7 @@ msgstr "Lejátszási lista mentve"
#: airtime_mvc/application/controllers/LocaleController.php:120
msgid "Playlist shuffled"
msgstr "Kevert lejátszási lista"
msgstr "Lejátszási lista megkeverve"
#: airtime_mvc/application/controllers/LocaleController.php:122
msgid "Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore."
@ -2291,11 +2290,11 @@ msgstr "Ha az Airtime mögött van egy router vagy egy tűzfal, akkor be kell á
#: airtime_mvc/application/controllers/LocaleController.php:167
#, php-format
msgid "For more details, please read the %sAirtime Manual%s"
msgstr "A további részletekért, kérjük olvassa el az %sAirtime Kézikönyvét%s"
msgstr "A további részletekért, kérjük, olvassa el az %sAirtime Kézikönyvét%s"
#: airtime_mvc/application/controllers/LocaleController.php:169
msgid "Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option."
msgstr "Jelölje be ezt az opciót: metaadatok engedélyezése OGG-os adásfolyamra (adatfolyam metaadatok: a műsorszám címe, előadó, műsornév, amely megjelenik egy audió lejátszóban). A VLC és mplayer lejátszóknál súlyos hibák előfordulhatnak, OGG/Vorbis adatfolyam játszásakor, amelynél a metaadatok küldése engedélyezett: ilyenkor akadozik az adatfolyam. Ha az OGG-os adatfolyam és a hallgatói nem igényelnek támogatást az ilyen jellegű audió lejátszókhoz, akkor nyugodtan engedélyezze ezt az opciót."
msgstr "Jelölje be és ellenőrizze ezt az opciót: metaadatok engedélyezése OGG-os adásfolyamra (adatfolyam metaadatok: a műsorszám címe, előadó, műsornév, amely megjelenik egy audió lejátszóban). A VLC és mplayer lejátszóknál súlyos hibák előfordulhatnak, OGG/Vorbis adatfolyam játszásakor, amelynél a metaadatok küldése engedélyezett: ilyenkor akadozik az adatfolyam. Ha az OGG-os adatfolyam és a hallgatói nem igényelnek támogatást az ilyen jellegű audió lejátszókhoz, akkor nyugodtan engedélyezze ezt az opciót."
#: airtime_mvc/application/controllers/LocaleController.php:170
msgid "Check this box to automatically switch off Master/Show source upon source disconnection."
@ -2344,7 +2343,7 @@ msgstr "Figyelem: a Műsorokat nem lehet újra-linkelni"
#: airtime_mvc/application/controllers/LocaleController.php:186
msgid "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows"
msgstr "By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows - fordításra vár"
msgstr "Az ismétlődő műsorok összekötésével, minden ütemezett médiai elem, az összes ismétlődő műsorban, ugyanazt a sorrendet kapja, mint a többi ismétlődő műsorban"
#: airtime_mvc/application/controllers/LocaleController.php:187
msgid "Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the Interface Timezone in your user settings."
@ -2880,7 +2879,7 @@ msgstr "Belépés Létrehozása"
#: airtime_mvc/application/controllers/LocaleController.php:389
msgid "Edit History Record"
msgstr "Rögzítési Előzmények Szerkesztése"
msgstr "Előzmények Szerkesztése"
#: airtime_mvc/application/controllers/LocaleController.php:392
#, php-format
@ -2911,7 +2910,7 @@ msgstr "a műsor nem található"
#: airtime_mvc/application/controllers/ListenerstatController.php:56
msgid "Please make sure admin user/password is correct on System->Streams page."
msgstr "Kérjük, győződjön meg arról, hogy az admin felhasználónév/jelszó helyes-e a Rendszer-> Streams oldalon."
msgstr "Kérjük, győződjön meg arról, hogy az admin felhasználónév/jelszó helyes-e a Rendszer-> Adásfolyamok oldalon."
#: airtime_mvc/application/controllers/ApiController.php:60
#: airtime_mvc/application/controllers/ApiController.php:79
@ -3056,7 +3055,7 @@ msgstr "Következő:"
#: airtime_mvc/application/views/scripts/partialviews/header.phtml:24
msgid "Source Streams"
msgstr "Adásfolyam Források"
msgstr "Az Adásfolyam Forrásai"
#: airtime_mvc/application/views/scripts/partialviews/header.phtml:29
msgid "Master Source"
@ -3360,7 +3359,7 @@ msgstr "Vissza a belépéshez"
#: airtime_mvc/application/views/scripts/login/index.phtml:7
msgid "Welcome to the online Airtime demo! You can log in using the username 'admin' and the password 'admin'."
msgstr "Üdvözöljük az online Aitime demó változatában! Jelentkezzen be 'admin' felhasználónévvel és 'admin' jelszóval."
msgstr "Üdvözöljük az online Airtime demó változatában! Jelentkezzen be 'admin' felhasználónévvel és 'admin' jelszóval."
#: airtime_mvc/application/views/scripts/login/password-restore.phtml:3
#: airtime_mvc/application/views/scripts/form/login.phtml:34
@ -3583,7 +3582,7 @@ msgstr "Műsorok Keresése"
#: airtime_mvc/application/views/scripts/form/showbuilder.phtml:12
msgid "Filter By Show:"
msgstr "Szűrés Műsor Alapján:"
msgstr "Műsor Alapján:"
#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:2
msgid "Input Stream Settings"
@ -3610,7 +3609,7 @@ msgstr "NULLÁZÁS"
#: airtime_mvc/application/views/scripts/form/preferences_livestream.phtml:153
msgid "Show Source Connection URL:"
msgstr "Műsor Kapcsolat Forrása URL:"
msgstr "Műsor Kapcsolati Forrás URL:"
#: airtime_mvc/application/views/scripts/form/edit-user.phtml:1
#, php-format
@ -3641,11 +3640,11 @@ msgstr "Segítse az Airtime fejlesztését azáltal, hogy a Sourcefabric tudja,
#: airtime_mvc/application/views/scripts/form/support-setting.phtml:23
#, php-format
msgid "Click the box below to promote your station on %sSourcefabric.org%s."
msgstr "Kattintson az alábbi mezőbe, hogy hírdesse saját állomását %sSourcefabric.org%s."
msgstr "Kattintson az alábbi mezőbe, hogy hírdesse a saját állomását %sSourcefabric.org%s."
#: airtime_mvc/application/views/scripts/form/support-setting.phtml:41
msgid "(In order to promote your station, 'Send support feedback' must be enabled)."
msgstr "(Annak érdekében, hogy hírdetni tudja állomását, a 'Támogatási Visszajelzés Küldését' engedélyeznie kell.)"
msgstr "(Annak érdekében, hogy hírdetni tudja az állomását, a 'Támogatási Visszajelzés Küldését' engedélyeznie kell.)"
#: airtime_mvc/application/views/scripts/form/support-setting.phtml:186
msgid "Sourcefabric Privacy Policy"