dmitryd / typo3-simplemvc

[OBSOLETE] A TYPO3 "simplemvc" extension. This extension adds a simple high performance MVC framework to TYPO3.
7 stars 0 forks source link

Function getLL in tx_simplemvc_abstractcontroller doesn't return values #13

Closed rikwillems closed 10 years ago

rikwillems commented 10 years ago

This function doesn't return any labels as the output of the language files is as follows.

Array ( 
[default] => Array ( 
[page_info] =>
 Array ( 
[0] => Array ( 
[source] => Dit is een test %s 
[target] => Dit is een test %s 
)
 )
 ) 
) 
franzholz commented 10 years ago

I assume that you have overseen one point in file AbstractController.php:

/**
 * Loads language files for the plugin. Derieved classes should override this
 * function and load their language files like:
 * <pre>
 * $this->addLanguageLabels($this->getLanguageService()->includeLLFile(t3lib_extMgm::extPath('extkey') . 'lang/locallang.xml'));
 * </pre>
 *
 * @return void
 */
protected function loadLanguageFiles() {
}
rikwillems commented 10 years ago

Hi Frans, I'm using the TYPO3_4x branch so I think this works a little different. The addLanguageLabelsFromFile function allows to add language files through config, but labels aren't processed because the are returned different than the extension expects, as described.

franzholz commented 10 years ago

See my pull request:

https://github.com/dmitryd/typo3-simplemvc/pull/17

dmitryd commented 10 years ago

Duplicate of #16, #17.