Backend modules · प्रश्न 8 / 12
यदि Modules.php में 'labels' => 'my_ext.modules.overview' है, तो TYPO3 v14 में backend module को अपना title और description कहाँ से मिलता है?
1 उत्तर सही है। आसान
उत्तर दिखाएँ
उत्तर
- C Translation domain my_ext.modules.overview के ज़रिए मिलने वाली एक XLIFF file से, जिसमें keys title, description और short_description होती हैं
व्याख्या
TYPO3 v14 से labels को translation domains के ज़रिए refer किया जा सकता है: my_ext.modules.overview extension my_ext की एक XLIFF file का shorthand है, जिसमें पूरा path LLL:EXT:...xlf देने की ज़रूरत नहीं होती। File में keys title, description और short_description होनी चाहिए। Title module menu में दिखता है, short description tooltip के रूप में। इससे code में fixed text के बजाय module शुरू से ही translatable बनता है। पुराना LLL:EXT: notation अब भी काम करता है।