Bug #57369
closedConstant categories cannot be localized
100%
Description
When you define a constant category in ext_conf_template.txt
, you cannot localize the main category.
Standard definition¶
No subcategory nor ordering¶
# cat=basic; type=boolean; label=LLL:EXT:sphinx/Resources/Private/Language/locallang_db.xlf:settings.sphinx.version loadWhatever = 0
No subcategory, but ordering¶
# cat=basic//10; type=boolean; label=LLL:EXT:sphinx/Resources/Private/Language/locallang_db.xlf:settings.sphinx.version loadWhatever = 0
Custom subcategory¶
# customsubcategory=subcatKey=LLkey; # cat=category/subcatKey;
Concept¶
Idea is to be as consistant and logical as possible and be able to define custom category the same way we may define custom subcategories. This is much more logical than being able to define a LLL:EXT: localized label right as "category" because it would force to define it over and over again.
Custom category¶
# customcategory=catKey=LLkey; # cat=catKey/typo; type=boolean; label=LLkey nameOfConstant = foo
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Gerrit Code Review over 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Gerrit Code Review over 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28903
Updated by Fabien Udriot over 10 years ago
Steps to reproduce:
- Install Sphinx extension as a random extension (
git clone git://git.typo3.org/TYPO3CMS/Extensions/sphinx.git
) - Open file
EXT:sphinx/ext_conf_template.txt
- Add at the top of the file this line
#customcategory=basic=LLL:EXT:sphinx/Resources/Private/Language/locallang_db.xlf:settings.build.auto_continue
- Activate the extension and open the settings in the EM (nothing special to be noticed)
- Apply the patch
- Reload the settings in the EM -> notice the main category "basic" has a translation.
Updated by Xavier Perseguers over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset df9399a1352cbafeaaa5fe39cc0084f8537804ea.