Project

General

Profile

Actions

Bug #57369

closed

Constant categories cannot be localized

Added by Xavier Perseguers over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2014-03-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #57371: Document custom constant categoriesClosedXavier Perseguers2014-03-27

Actions
Actions #1

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

Actions #2

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

Actions #3

Updated by Markus Klein over 10 years ago

Needs a documentation update too

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

Updated by Fabien Udriot over 10 years ago

Steps to reproduce:

  1. Install Sphinx extension as a random extension (git clone git://git.typo3.org/TYPO3CMS/Extensions/sphinx.git)
  2. Open file EXT:sphinx/ext_conf_template.txt
  3. Add at the top of the file this line
#customcategory=basic=LLL:EXT:sphinx/Resources/Private/Language/locallang_db.xlf:settings.build.auto_continue
  1. Activate the extension and open the settings in the EM (nothing special to be noticed)
  2. Apply the patch
  3. Reload the settings in the EM -> notice the main category "basic" has a translation.
Actions #9

Updated by Xavier Perseguers over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF