[TYPO3-core] RFC #11772: Hardcoded strings in tca (template module)

Christopher Stelmaszyk christopher at yahoo.de
Mon Aug 24 20:56:44 CEST 2009


Hi!

This is a SVN patch request.

Type: feature

Branches: trunk

BT reference:
http://bugs.typo3.org/view.php?id=11772

Problem:
There are still some hardcoded texts in the template module.
In the template module go to Info/Modify click on "Edit whole template", go 
to tab "Includes".
At the very bottom there is a drop down box with these texts.

Solution:
Available. ;-)

Kind regards

Christopher



Index: typo3/sysext/cms/locallang_tca.xml
===================================================================
--- typo3/sysext/cms/locallang_tca.xml	(revision 5802)
+++ typo3/sysext/cms/locallang_tca.xml	(working copy)
@@ -116,6 +116,9 @@
 			<label index="sys_template.editorcfg">Backend Editor 
Configuration:</label>
 			<label index="sys_template.description">Description:</label>
 			<label index="sys_template.static_file_mode">Static template files from 
T3 Extensions:</label>
+			<label index="sys_template.static_file_mode.0">Default (Include before 
if Root-flag is set)</label>
+			<label index="sys_template.static_file_mode.1">Always include before 
this template record</label>
+			<label index="sys_template.static_file_mode.2">Never include before this 
template record</label>
 			<label index="sys_template.basedOn_add">Add new basis template</label>
 			<label index="sys_template.tabs.files">Resources</label>
 			<label index="sys_template.tabs.include">Includes</label>
Index: typo3/sysext/cms/tbl_cms.php
===================================================================
--- typo3/sysext/cms/tbl_cms.php	(revision 5802)
+++ typo3/sysext/cms/tbl_cms.php	(working copy)
@@ -926,9 +926,9 @@
 			'config' => array(
 				'type' => 'select',
 				'items' => array(
-					array('Default (Include before if Root-flag is set)', '0'),
-					array('Always include before this template record', '1'),
-					array('Never include before this template record', '2'),
+					array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', 
'0'),
+					array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', 
'1'),
+					array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', 
'2'),
 				),
 				'default' => '0'
 			) 


begin 666 11772 tca hardcoded.patch
M26YD97 at Z('1Y<&\S+W-Y<V5X="]C;7,O;&]C86QL86Y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>&UL.G-Y<U]T96UP;&%T
M92YS=&%T:6-?9FEL95]M;V1E+C$G+" G,2<I+ HK"0D)"0EA<G)A>2 at G3$Q,
M.D585#IC;7,O;&]C86QL86YG7W1C82YX;6PZ<WES7W1E;7!L871E+G-T871I
M8U]F:6QE7VUO9&4N,B<L("<R)RDL"B )"0D)*2P*( D)"0DG9&5F875L="<@
-/3X@)S G"B )"0DI"@``
`
end



More information about the TYPO3-team-core mailing list