Comments (10)
What TYPO3 version, what extension version are you using?
from ext-solr.
bump @FlorianEngelke, any feedback?
from ext-solr.
closing for no feedback, feel free to re-open once you can provide needed feedabck
from ext-solr.
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.
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.
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.
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.
re-opening for discussion
from ext-solr.
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.
ah ok, then let's fix the root, not the symptom!
from ext-solr.
Related Issues (20)
- [TASK] Relax dependencies to local tables
- [BUG] Site settings used in TypoScript not loaded HOT 1
- [BUG] Cannot create Event Queue Worker Scheduler Task
- [BUG] Call to a member function getSolrConfiguration() on null
- [FEATURE] Add Indexes for tx_solr_indexqueue_item HOT 1
- [TASK] Add/Remove document from index if parent (or root line) visibility changed
- [TASK][DOC] Update Version Matrix for EXT:tika v12.0 HOT 1
- [BUG] Docker image for v12 is broken? HOT 2
- solrfal for v12 is beta but not working HOT 1
- [TASK] Prepare release-11.6.x for TYPO3 11.5 LTS
- [TASK] Release 11.5.5
- [TASK] Remove obsolete Registry usage
- [BUG] tstamp field of record is required but should not HOT 4
- [TASK] Check statistik data HOT 1
- [BUG] Setting results.resultsHighlighting.fragmentSize does not work
- [TASK] Always delegate simulated TSFE via PSR-14 events instead of Site and SiteLanguage
- [TASK] Check luke.limit configuration
- [BUG] Return value getPageItemChangedTime() must be of the type int, null returned HOT 2
- [FEATURE] Better index cleanup HOT 2
- [BUG] SolrRoutingMiddleware is always in php-slow.log HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ext-solr.