diff --git a/airtime_mvc/application/controllers/LocaleController.php b/airtime_mvc/application/controllers/LocaleController.php index 3fa1a0a5a..72707e7e2 100644 --- a/airtime_mvc/application/controllers/LocaleController.php +++ b/airtime_mvc/application/controllers/LocaleController.php @@ -117,6 +117,7 @@ class LocaleController extends Zend_Controller_Action "Dynamic block is not previewable" => _("Dynamic block is not previewable"), "Limit to: " => _("Limit to: "), "Playlist saved" => _("Playlist saved"), + "Playlist shuffled" => _("Playlist shuffled"), "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." => _("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."), //listenerstat/listenerstat.js diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index a5811ed5a..23a85d139 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -641,7 +641,7 @@ var AIRTIME = (function(AIRTIME){ $pl.on("click", 'button[id="playlist_shuffle_button"]', function(){ obj_id = $('input[id="obj_id"]').val(); - url = "/Playlist/shuffle"; + url = baseUrl+"/Playlist/shuffle"; enableLoadingIcon(); $.post(url, {format: "json", obj_id: obj_id}, function(data){ var json = $.parseJSON(data) @@ -651,7 +651,7 @@ var AIRTIME = (function(AIRTIME){ } AIRTIME.playlist.fnOpenPlaylist(json); if (json.result == "0") { - $pl.find('.success').text('Playlist shuffled'); + $pl.find('.success').text($.i18n._('Playlist shuffled')); $pl.find('.success').show(); } disableLoadingIcon();