1919use Pimcore \Bundle \StaticResolverBundle \Lib \ToolResolverInterface ;
2020use Pimcore \Bundle \StaticResolverBundle \Models \Site \SiteResolverInterface ;
2121use Pimcore \Bundle \StudioBackendBundle \Security \Service \SecurityServiceInterface ;
22+ use Pimcore \Bundle \StudioBackendBundle \Translation \Service \TranslatorServiceInterface ;
2223use Pimcore \Model \DataObject \ClassDefinition \LinkGeneratorInterface ;
2324use Pimcore \Model \DataObject \ClassDefinition \PreviewGeneratorInterface ;
2425use Pimcore \Model \DataObject \Concrete ;
2526use Pimcore \Model \Site \Listing ;
26- use Pimcore \Model \Translation ;
2727use Symfony \Contracts \Translation \TranslatorInterface ;
2828use function array_key_exists ;
2929use function in_array ;
@@ -119,7 +119,7 @@ private function getLocalePreviewConfig(): array
119119
120120 return [
121121 'name ' => PreviewGeneratorInterface::PARAMETER_LOCALE ,
122- 'label ' => $ this ->translator ->trans ('preview_generator_locale ' , [], Translation:: DOMAIN_ADMIN ),
122+ 'label ' => $ this ->translator ->trans ('preview_generator_locale ' , [], TranslatorServiceInterface:: DOMAIN ),
123123 'values ' => $ locales ,
124124 'defaultValue ' => $ defaultValue ,
125125 ];
@@ -135,7 +135,7 @@ protected function getSitePreviewConfig(): array
135135 }
136136
137137 $ sitesOptions = [
138- $ this ->translator ->trans ('main_site ' , [], Translation:: DOMAIN_ADMIN ) => '0 ' ,
138+ $ this ->translator ->trans ('main_site ' , [], TranslatorServiceInterface:: DOMAIN ) => '0 ' ,
139139 ];
140140
141141 $ preSelectedSite = null ;
@@ -160,7 +160,7 @@ protected function getSitePreviewConfig(): array
160160
161161 return [
162162 'name ' => PreviewGeneratorInterface::PARAMETER_SITE ,
163- 'label ' => $ this ->translator ->trans ('preview_generator_site ' , [], Translation:: DOMAIN_ADMIN ),
163+ 'label ' => $ this ->translator ->trans ('preview_generator_site ' , [], TranslatorServiceInterface:: DOMAIN ),
164164 'values ' => $ sitesOptions ,
165165 'defaultValue ' => $ preSelectedSite ?: reset ($ sitesOptions ),
166166 ];
0 commit comments