<?php

namespace GriffinForms\Admin\Language;

class Lists extends \GriffinForms\Admin\Language\Format
{    
    private static $instance;
    
    protected function bulkAction()
    {
        return __('Bulk actions', 'griffinforms-form-builder');
    }    
    
    protected function deleteItemsBulkAction()
    {
        return __('Delete', 'griffinforms-form-builder');
    }    

    protected function selectFolderBulkAction()
    {
        return __('Assign Folder', 'griffinforms-form-builder');
    }
    
    protected function applyListAction()
    {
        return __('Apply', 'griffinforms-form-builder');
    }    
    
    protected function deleteItemsModalheader()
    {
        return __('Confirm Deletion', 'griffinforms-form-builder');
    }    
    
    protected function noItemsSelectedModalText()
    {
        return __('You have not selected any items.', 'griffinforms-form-builder');
    }    
    
    protected function deleteItemsModalText()
    {
        return __('You have selected <strong class="text-griffin">0</strong> item(s) for deletion. Please confirm to continue', 'griffinforms-form-builder');
    }
    
    protected function userNotRegistered()
    {
        return __('Guest User', 'griffinforms-form-builder');
    }
    
    protected function nameListHead()
    {
        return __('Name', 'griffinforms-form-builder');
    }
    
    protected function authorListHead()
    {
        return __('Created by', 'griffinforms-form-builder');
    }
    
    protected function createdListHead()
    {
        return __('Created on', 'griffinforms-form-builder');
    }
    
    public function itemCountPagination($count = 0)
    {
        // Translators: %d is the number of items on current page.
        return sprintf(__('%d items', 'griffinforms-form-builder'), $count);
    }
    
    protected function noItemsFound()
    {
        return __('No items found.', 'griffinforms-form-builder');
    }
    
    protected function deleteActionBtn()
    {
        return __('Yes, delete', 'griffinforms-form-builder');
    }

    protected function dateFromPlaceholder()
    {
        return __('Date from', 'griffinforms-form-builder');
    }

    protected function dateToPlaceholder()
    {
        return __('Date to', 'griffinforms-form-builder');
    }
    
    protected function editRowAction()
    {
        return __('Edit', 'griffinforms-form-builder');
    }

    protected function deleteRowAction()
    {
        return __('Delete', 'griffinforms-form-builder');
    }
    
    protected function nameNotSet()
    {
        return __('Unnamed', 'griffinforms-form-builder');
    }
    
    protected function deleteListItemModalHeader()
    {
        return __('Please Confirm', 'griffinforms-form-builder');
    }

    protected function deleteListItemModalText()
    {
        return __('Delete this item permanently? This action cannot be undone.', 'griffinforms-form-builder');
    }

    protected function deleteFailedModalText()
    {
        return __('Something went wrong while deleting the item. Please try again later.', 'griffinforms-form-builder');
    }

    protected function ajaxRequestFailedModalText()
    {
        return __('Something went wrong while connecting. Please try again shortly.', 'griffinforms-form-builder');
    }
        
    public static function getInstance()
    {
        if (self::$instance == null)
        {
            self::$instance = new Lists();
        }
        
        return self::$instance;
    }
    
    private function __construct() 
    {
    }
}
