Typo3 8.7:后端不显示模块名称

Typo3 8.7:后端不显示模块名称,typo3,typo3-8.x,Typo3,Typo3 8.x,在我的Typo3 8.7扩展中,我为后端注册了一个模块。模块本身工作正常,但名称未显示。(模块菜单左侧列表中的名称) 我读过doku,做过那里说的一切。我已多次重新激活扩展并删除了所有缓存(还安装了缓存) 这是我在ext\u tables.php中的代码: if (TYPO3_MODE === 'BE') { call_user_func( function ($extKey) { \TYPO3\CMS\Extbase\Utility\ExtensionUtility::

在我的Typo3 8.7扩展中,我为后端注册了一个模块。模块本身工作正常,但名称未显示。(模块菜单左侧列表中的名称)

我读过doku,做过那里说的一切。我已多次重新激活扩展并删除了所有缓存(还安装了缓存)

这是我在
ext\u tables.php
中的代码:

if (TYPO3_MODE === 'BE') {
call_user_func(
    function ($extKey) {
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
            'TYPO3.' . $extKey,   
            'Customer Administration',      
            'Customer Administration',          
            '',                    
            array(                  
                'BackendManagement' => 'list,  membershipInformationBackend',
                'FrontendManageCertificate' => 'showCertificateDetails'
            ),
            array(                 
                'access' => 'user,group',
                'icon' => 'EXT:' . $extKey . '/ext_icon_small.svg',
                'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_shop_backend.xlf',
            )
        );

    },
    $_EXTKEY
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'someExt');

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_someExt_domain_model_backendcustomer', 'EXT:someExt/Resources/Private/Language/locallang_csh_tx_someExt_domain_model_backendcustomer.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_someExt_domain_model_backendcustomer');
}

提前谢谢。

来吧,我的朋友,我在你的代码中只发现一个错误。您尚未传递翻译文件的密钥。这是可能的问题,请检查以下解决方案:

ext_tables.php

if (TYPO3_MODE === 'BE') {
call_user_func(
    function ($extKey) {
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
            'TYPO3.' . $extKey,   
            'Customer Administration',      
            'Customer Administration',          
            '',                    
            array(                  
                'BackendManagement' => 'list,  membershipInformationBackend',
                'FrontendManageCertificate' => 'showCertificateDetails'
            ),
            array(                 
                'access' => 'user,group',
                'icon' => 'EXT:' . $extKey . '/ext_icon_small.svg',
                'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_shop_backend.xlf:shopModule', // Here is the problem
            )
        );

    },
    $_EXTKEY
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'someExt');

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_someExt_domain_model_backendcustomer', 'EXT:someExt/Resources/Private/Language/locallang_csh_tx_someExt_domain_model_backendcustomer.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_someExt_domain_model_backendcustomer');
}
locallang\u shop\u backend.xlf

<trans-unit id="shopModule">
    <source>Shop Management</source>
</trans-unit>

店铺管理
建议:如果您使用extension builder创建了一个扩展,则会自动生成一个名为locallang\u db.xlf的文件将此文件用于后端标签


希望这有意义

谢谢你,你完全正确!但我不知道我怎么会错过那里的钥匙……)