Giter Club home page Giter Club logo

Comments (10)

irnnr avatar irnnr commented on June 28, 2024

What TYPO3 version, what extension version are you using?

from ext-solr.

irnnr avatar irnnr commented on June 28, 2024

bump @FlorianEngelke, any feedback?

from ext-solr.

irnnr avatar irnnr commented on June 28, 2024

closing for no feedback, feel free to re-open once you can provide needed feedabck

from ext-solr.

syssi avatar syssi commented on June 28, 2024

I can confirm this issue. I'm using solr 3.0.1. I have added this line to my AdditionalConfiguration.php of TYPO3 6.2:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:solr/Resources/Private/Language/PluginResults.xml'][] = 'fileadmin/default/extensions/solr/Resources/Private/Language/PluginResults.xml';

The PluginResults.xml is just a copy of the origin file. I can change the value of key "results_range" but changing the submit-button label does not work f.e.

from ext-solr.

s-nunez-gosub avatar s-nunez-gosub commented on June 28, 2024

It works for me with TYPO3 6.2:

I have added to AdditionalConfiguration.php:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:solr/Resources/Private/Language/PluginResults.xml'][] = 'EXT:my_extension/Resources/Private/Language/PluginResults.xml';

And the translations will be overridden.

from ext-solr.

astehlik avatar astehlik commented on June 28, 2024

Can this change please be reverted? It is not needed IMO and it breaks merging of exising language files and override labels. Currently you need to copy all labels in the override file which is quite unhandy.

I think the problem lies in the configuration. The EXT: prefix is already resolved in the LLL view helper. This is why you need to use the absolute filename in your override config:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['/var/www/mywebroot/typo3conf/ext/solr/Resources/Private/Language/PluginResults.xml'][] = 'EXT:my_extension/Resources/Private/Language/PluginResults.xml';

Overriding works perfectly (at least in TYPO3 6.2) when I use the absolute path in my config and remove the overrideLocalLangFile() code from the LLL view helper.

from ext-solr.

irnnr avatar irnnr commented on June 28, 2024

According to the docs the key is not an absolute path, but uses the EXT: notation: https://docs.typo3.org/typo3cms/CoreApiReference/Internationalization/Translation/Index.html#xliff-translating-custom

from ext-solr.

irnnr avatar irnnr commented on June 28, 2024

re-opening for discussion

from ext-solr.

astehlik avatar astehlik commented on June 28, 2024

The problem ist how GeneralUtility::readLLfile() is called in the Lll view helper.

The view helper is registered in PluginBase::initializeTemplateEngine():

$template->addViewHelperIncludePath($this->extKey, 'Classes/ViewHelper/');
$template->addViewHelper('LLL', array(
    'languageFile' => $GLOBALS['PATH_solr'] .'Resources/Private/Language/' . str_replace('Pi', 'Plugin', $this->getPluginKey()) . '.xml',
    'llKey'        => $this->LLkey
));

The variable $GLOBALS['PATH_solr'] already contains the resolved Extension path and not EXT:solr/....

This is why the override mechanism will only work when you use the absolute filename.

from ext-solr.

irnnr avatar irnnr commented on June 28, 2024

ah ok, then let's fix the root, not the symptom!

from ext-solr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.