first commit

This commit is contained in:
salam committed 2026-10-06 19:40:28 +02:00
commit e81864e683
2984 files changed
+267797

No files matched your search

@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace In2code\Femanager\Utility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility as ExtbaseLocalizationUtility;
/**
* Class LocalizationUtility
* @codeCoverageIgnore
*/
class LocalizationUtility
{
/**
* Returns the localized label of the LOCAL_LANG key, but prefill extensionName
*
* @param string $key The key from the LOCAL_LANG array for which to return the value.
* @param string $extensionName The name of the extension
* @param array $arguments the arguments of the extension, being passed over to vsprintf
* @return string|null
*/
public static function translate($key, $extensionName = 'femanager', $arguments = null)
{
return ExtbaseLocalizationUtility::translate($key, $extensionName, $arguments);
}
/**
* Get locallang translation with key prefix tx_femanager_domain_model_log.state.
*
* @param int $state
* @return string|null
*/
public static function translateByState($state)
{
return self::translate('tx_femanager_domain_model_log.state.' . $state);
}
}