Skip to content
Snippets Groups Projects
Commit b8b34e45 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed missing translations in Channels interface.

parent fc46f918
No related merge requests found
...@@ -175,6 +175,7 @@ channel_add_more = "Add more channels like this" ...@@ -175,6 +175,7 @@ channel_add_more = "Add more channels like this"
channel_expand = "Explore related channels" channel_expand = "Explore related channels"
channel_explore = "Explore Channels" channel_explore = "Explore Channels"
channel_search = "Show items as search results" channel_search = "Show items as search results"
channel_searchbox_label = "Search for more channels:"
Check Hold = "Check Hold" Check Hold = "Check Hold"
Check Recall = "Check Recall" Check Recall = "Check Recall"
Checked Out = "Checked Out" Checked Out = "Checked Out"
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* @link https://vufind.org/wiki/development Wiki * @link https://vufind.org/wiki/development Wiki
*/ */
namespace VuFind\ChannelProvider; namespace VuFind\ChannelProvider;
use VuFind\I18n\Translator\TranslatorAwareInterface;
use VuFind\RecordDriver\AbstractBase as RecordDriver; use VuFind\RecordDriver\AbstractBase as RecordDriver;
use VuFind\Search\Base\Params, VuFind\Search\Base\Results; use VuFind\Search\Base\Params, VuFind\Search\Base\Results;
use VuFind\Search\Results\PluginManager as ResultsManager; use VuFind\Search\Results\PluginManager as ResultsManager;
...@@ -41,7 +42,9 @@ use Zend\Mvc\Controller\Plugin\Url; ...@@ -41,7 +42,9 @@ use Zend\Mvc\Controller\Plugin\Url;
* @link https://vufind.org/wiki/development Wiki * @link https://vufind.org/wiki/development Wiki
*/ */
class Facets extends AbstractChannelProvider class Facets extends AbstractChannelProvider
implements TranslatorAwareInterface
{ {
use \VuFind\I18n\Translator\TranslatorAwareTrait;
/** /**
* Facet fields to use (field name => description). * Facet fields to use (field name => description).
* *
...@@ -311,7 +314,7 @@ class Facets extends AbstractChannelProvider ...@@ -311,7 +314,7 @@ class Facets extends AbstractChannelProvider
return $this->buildChannel( return $this->buildChannel(
$results, $results,
"$field:{$value['value']}", "$field:{$value['value']}",
"{$this->fields[$field]}: {$value['displayText']}", $this->translate($this->fields[$field]) . ": {$value['displayText']}",
$tokenOnly $tokenOnly
); );
} }
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
<? if (empty($token)): ?> <? if (empty($token)): ?>
<form action="<?=$this->url('channels-search')?>" class="form-inline"> <form action="<?=$this->url('channels-search')?>" class="form-inline">
Search for more channels: <?=$this->transEsc('channel_searchbox_label')?>
<input type="text" name="lookfor" class="form-control" value="<?=$this->escapeHtmlAttr($this->lookfor) ?>"/> <input type="text" name="lookfor" class="form-control" value="<?=$this->escapeHtmlAttr($this->lookfor) ?>"/>
<input type="submit" class="btn btn-default" /> <input type="submit" value="<?=$this->escapeHtmlAttr($this->translate('Submit'))?>" class="btn btn-default" />
</form> </form>
<? endif; ?> <? endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment