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

Conversation

ste101
Copy link
Contributor

@ste101 ste101 commented Aug 4, 2021

No description provided.

@@ -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

@@ -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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants