[TASK] Improve appearance of warnings in object browser 42/44442/2
authorDaniel Goerz <ervaude@gmail.com>
Sat, 31 Oct 2015 15:52:54 +0000 (16:52 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 31 Oct 2015 15:59:35 +0000 (16:59 +0100)
Change-Id: Ibcb632942d1e959da9af991610a37460ec23592e
Resolves: #71202
Releases: master
Reviewed-on: https://review.typo3.org/44442
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php
typo3/sysext/tstemplate/Resources/Private/Language/locallang_objbrowser.xlf

index c40fe47..4a22580 100644 (file)
@@ -459,8 +459,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends AbstractFu
             if (!empty($templateService->parserErrors[$pEkey])) {
                 $errMsg = array();
                 foreach ($templateService->parserErrors[$pEkey] as $inf) {
             if (!empty($templateService->parserErrors[$pEkey])) {
                 $errMsg = array();
                 foreach ($templateService->parserErrors[$pEkey] as $inf) {
-                    $errorLink = ' <a href="' . htmlspecialchars(($aHref . '&SET[function]=TYPO3\\CMS\\Tstemplate\\Controller\\TemplateAnalyzerModuleFunctionController&template=all&SET[ts_analyzer_checkLinenum]=1#line-' . $inf[2])) . '">' . $lang->getLL('errorShowDetails') . '</a>';
-                    $errMsg[] = $inf[1] . ': &nbsp; &nbsp;' . $inf[0] . $errorLink;
+                    $errorLink = ' <a href="' . htmlspecialchars(($aHref . '&SET[function]=TYPO3\\CMS\\Tstemplate\\Controller\\TemplateAnalyzerModuleFunctionController&template=all&SET[ts_analyzer_checkLinenum]=1#line-' . $inf[2])) . '" class="text-warning">' . $lang->getLL('errorShowDetails') . '</a>';
+                    $errMsg[] = $lang->getLL('severity.' . $inf[1]) . ':&nbsp;' . $inf[0] . $errorLink;
                 }
                 $theOutput .= '<div style="padding-top: 10px;"></div>';
 
                 }
                 $theOutput .= '<div style="padding-top: 10px;"></div>';
 
index 90963b3..7c38a10 100644 (file)
                        <trans-unit id="setConditions">
                                <source>Set conditions</source>
                        </trans-unit>
                        <trans-unit id="setConditions">
                                <source>Set conditions</source>
                        </trans-unit>
+                       <trans-unit id="severity.1">
+                               <source>Info</source>
+                       </trans-unit>
+                       <trans-unit id="severity.2">
+                               <source>Warning</source>
+                       </trans-unit>
+                       <trans-unit id="severity.3">
+                               <source>Error</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>
                </body>
        </file>
 </xliff>