Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use plugin name from locallang for easier translation #434

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ defined('TYPO3_MODE') || die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'{extension.extensionName}',
'<k:format.uppercaseFirst>{plugin.key}</k:format.uppercaseFirst>',
'<k:format.quoteString>{plugin.name}</k:format.quoteString>'
'LLL:EXT:<k:format.lowercaseFirst>{extension.extensionName}</k:format.lowercaseFirst>/Resources/Private/Language/locallang_db.xlf:tx_<k:format.lowercaseFirst>{extension.extensionName}</k:format.lowercaseFirst>_{plugin.key}.name'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'LLL:EXT:<k:format.lowercaseFirst>{extension.extensionName}</k:format.lowercaseFirst>/Resources/Private/Language/locallang_db.xlf:tx_<k:format.lowercaseFirst>{extension.extensionName}</k:format.lowercaseFirst>_{plugin.key}.name'
'LLL:EXT:{extension.extensionName -> k:format.lowercaseFirst()}/Resources/Private/Language/locallang_db.xlf:tx_{extension.extensionName -> k:format.lowercaseFirst()}_{plugin.key}.name'

I would prefer the inline notation here.

);
</f:for>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'TestExtension',
'Testplugin',
'Test plugin'
'LLL:EXT:testExtension/Resources/Private/Language/locallang_db.xlf:tx_testExtension_testplugin.name'
Copy link
Contributor

@simonschaufi simonschaufi Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this key doesn't exist. Can you please double check? The extension key should also be like test_extension

);