From c903a6dfd3cd209c8e9500474500801d05ee4e96 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 25 Feb 2019 10:59:14 -0600 Subject: [PATCH] Add missing translateable strings in js to php translation method --- .../application/controllers/LocaleController.php | 16 ++++++++++++++++ airtime_mvc/public/js/airtime/library/podcast.js | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/LocaleController.php b/airtime_mvc/application/controllers/LocaleController.php index c20142f99..01810176c 100644 --- a/airtime_mvc/application/controllers/LocaleController.php +++ b/airtime_mvc/application/controllers/LocaleController.php @@ -63,6 +63,16 @@ final class LocaleController extends Zend_Controller_Action //"Adding 1 Item" => _("Adding 1 Item"), //"Adding %s Items" => _("Adding %s Items"), //library/library.js + "Add" => _("Add"), + "New" => _("New"), + "Edit" => _("Edit"), + "Add to Schedule" => _("Add to Schedule"), + "Add to next show" => _("Add to next show"), + "Add to current show" => _("Add to current show"), + "Add after selected items" => _("Add after selected items"), + "Delete" => _("Delete"), + "Publish" => _("Publish"), + "Remove" => _("Remove"), "Edit Metadata" => _("Edit Metadata"), "Add to selected show" => _("Add to selected show"), "Select" => _("Select"), @@ -108,6 +118,10 @@ final class LocaleController extends Zend_Controller_Action "Are you sure you want to delete the selected item?" => _("Are you sure you want to delete the selected item?"), "Uploading in progress..." => _("Uploading in progress..."), "Retrieving data from the server..." => _("Retrieving data from the server..."), + //library/podcast.js + "Import" => _("Import"), + "Imported?" => _("Imported?"), + "View" => _("View"), // SOUNDCLOUD "Are you sure? SoundCloud stats and comments for this track will be permanently removed." => "Are you sure? SoundCloud stats and comments for this track will be permanently removed.", "Your track is being deleted from SoundCloud" => "Your track is being deleted from SoundCloud", @@ -314,6 +328,7 @@ final class LocaleController extends Zend_Controller_Action "Trim overbooked shows" => _("Trim overbooked shows"), "Remove selected scheduled items" => _("Remove selected scheduled items"), "Jump to the current playing track" => _("Jump to the current playing track"), + "Jump to Current" => _("Jump to Current"), "Cancel current show" => _("Cancel current show"), //already in schedule/schedule.js //"Cancel Current Show?" => _("Cancel Current Show?"), @@ -355,6 +370,7 @@ final class LocaleController extends Zend_Controller_Action "View listener stats" => _("View listener stats"), //dataTables/ColVis.js "Show / hide columns" => _("Show / hide columns"), + "Columns" => _("Columns"), //datatables.columnFilter.js "From {from} to {to}" => _("From {from} to {to}"), "kbps" => _("kbps"), diff --git a/airtime_mvc/public/js/airtime/library/podcast.js b/airtime_mvc/public/js/airtime/library/podcast.js index 7682b868b..5f0cec344 100644 --- a/airtime_mvc/public/js/airtime/library/podcast.js +++ b/airtime_mvc/public/js/airtime/library/podcast.js @@ -636,7 +636,7 @@ var AIRTIME = (function (AIRTIME) { podcastEpisodeButtons = AIRTIME.widgets.Table.getStandardToolbarButtons(); $.extend(true, podcastEpisodeButtons[AIRTIME.widgets.Table.TOOLBAR_BUTTON_ROLES.NEW], { - title: "Import", + title: $.i18n._("Import"), eventHandlers: { click: function () { var episodes = mod.episodeTables[podcastId].getSelectedRows();