Files
b2b.redline.com.pl/modules/newsletterpro/classes/NewsletterProAppTranslate.php
2025-06-24 14:14:35 +02:00

58 lines
1.8 KiB
PHP

<?php
/**
* Since 2013 Ovidiu Cimpean.
*
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
*
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
* @copyright Since 2013 Ovidiu Cimpean
* @license Do not edit, modify or copy this file
*
* @version Release: 4
*/
class NewsletterProAppTranslate
{
public static function get($entry)
{
$translate = new NewsletterProTranslate(__CLASS__);
switch ($entry) {
case 'app':
return [
'global' => [
],
'CategoryTree' => [
'Expand All' => $translate->l('Expand All'),
'Check All' => $translate->l('Check All'),
'Uncheck All' => $translate->l('Uncheck All'),
],
'CategoryTreeSearch' => [
'search...' => $translate->l('search...'),
],
];
case 'app_front':
return [
'global' => [
],
'ajax' => [
'Oops, an error has occurred.' => $translate->l('Oops, an error has occurred.'),
'Error: The AJAX response is not JSON type.' => $translate->l('Error: The AJAX response is not JSON type.'),
],
'popup' => [
'Oops, an error has occurred.' => $translate->l('Oops, an error has occurred.'),
'close in %s seconds' => $translate->l('close in %s seconds'),
],
];
}
throw new Exception(sprintf('The entry "%s" is not defined.', $entry));
}
}