-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate-button in flux:grid not working #1120
Comments
I can confirm the issue |
The random numbers in |
I have fixed that bug for a client already. The problem comes from the Core not passing on the Flux parent element/column (how should it, as it does not know about these nested structures by default?) The fix is to extend the Core translation wizard to pass on additional information and add that information in Flux. So we first need to get this fixed in the TYPO3 Core before we can fix it in Flux (or Flux needs to replace the broken parts from the core, but I don’t think this is viable). |
Localization is so important for us. I think everyone using flux would be happy, when there will be a fix, although the core needs to implement it. A content management system with no translation working is not really cool. :-( |
Dear @andreaswolf , |
Ok I've fixed the problem in core and in flux. The problem ist that the child elements will not found because the colPos which is send to core API is 0 but should be ContentService::COLPOS_FLUXCONTENT. The second problem was that the new translated element will be created in default language grid element. Solution: In front of creating new translated element set tx_flux_parent of translated grid element uid. Tested in Workspaces too and it works. _BUGFIX___translate_button_in_flux_grid_columns_does_not_work.patch.zip |
@bauermar I appreciate the time you spent to debug this, but there is no chance we will ever make TYPO3 accept a change that specifically targets Flux (things like So this has to be solved another way: if there are patches required for the TYPO3 core, those need to be absolutely generic (so no mention of Flux there) and must make sense on their own (for example, adding signals that can modify the values you need to modify). I would also strongly advise against changing any method signatures. Depending on how you frame those, they may insist you are adding a FEATURE, which would mean we can't support this until TYPO3v9 and can never support it on TYPO3v8 or LTS. We have to be extremely critical in this case! |
@NamelessCoder Maybe this one can be a solution Idea
|
@monosize +1 for thinking creatively ;)
I'm not a fan of overrides and the fewer we have, the better IMHO. But, if that's the only way... that's the only way.
This might cause HMAC issues, I'm not exactly sure how the XHR is done. Aside from that, it sounds like a good way to achieve it. If we can change the colPos value then that should be enough, since there is already some handling of special colPos values with an offset of 18181 (real target stored in session). Of course we may need to fix our TceMain hook to restore that... I ripped most of it apart and put it back together to achieve the workspaces compatibility. |
@NamelessCoder I have build a PR. Can you take a look on that. It was a little bit tricky. I had to have create own AjaxRoutes to handle flux:grid localizations. Tested in TYPO3v8.6. Should compatible to TYPO3v7.6. |
Hi! |
Hi! I wrote a fix for this problem. |
@svewap This looks great, looks like fewer overrides than I thought we'd have to do. It's a little hard to gauge from that extension how extensive the changes actually are (the PreviewView is guilty here, it has some nasty methods) - but if this works I think it's the solution we're looking for. Would you mind preparing that as a pull request? You know much better than we do which exact parts that need to be imported - and you don't have to worry about the tests failing, I'll take care of that. |
@NamelessCoder Ok, I will try. Another person is maybe much faster than I :-D |
Great work @svewap !!! Is that fix already pulled into master ? Would be awesome! |
@svewap I tried your extension with the actual development version of FLUX and TYPO3 8.7.12 but I get an error after installing and clearing the caches and autoload manually:
When I change the access level modifier from After the translation of the grid-element with the "Copy" option, the childs are not copied. |
Solved as part of #1563, will be included in release 9.0. Please see the PR for more details, among other things about how to use the migration script. This particular button is now removed - you should use the page-level translation button, or create a translation of each element by drag-and-drop-and-copy, or using the language field to make a new translation. |
I'm still missing the "Translate Button" in my TYPO3 v9 & Flux 9.4.2 project. Any progress here? |
The button in question has been removed. Use the page-level translate button. |
Hi,
in TYPO3 7.6.5 (I guess maybe the problem consisted in 7.6.4 too but I didn't test it) for me the "translate" button for contentelements that are situated in a flux grid element is not working. I tried to prepare some screenshots that are showing the problem. In the third step of the translation wizard is no content element shown. After starting step 4 it looks like something happens but it doesn't. It doesn't do anything till closing the wizard.
The translation wizard within the flux grid element (relations -> locale all) is working fine.
Thank you for a great job.
The text was updated successfully, but these errors were encountered: