<?php

namespace KupShop\I18nBundle\Admin\Tabs\Settings;

use KupShop\AdminBundle\Admin\WindowTab;
use KupShop\KupShopBundle\Context\LanguageContext;

class TranslationSettingsTab extends WindowTab
{
    /** @var LanguageContext */
    private $languageContext;

    public function __construct(LanguageContext $languageContext)
    {
        $this->languageContext = $languageContext;
    }

    protected $title = 'flapTranslation';

    protected $template = 'window/tabs/settings/translationSettingsTab.tpl';

    public static function getTypes()
    {
        return [
            'settings' => true,
        ];
    }

    public function getLanguages()
    {
        return $this->languageContext->getSupported();
    }

    public function getLabel()
    {
        return 'Překlady';
    }

    public function isOnlyForWpjAdmin()
    {
        return true;
    }
}
