GithubHelp home page GithubHelp logo

coderscare / transfusion Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 533 KB

TransFusion Extension providing a wizard to deal with TYPO3 connected and free mode translations

Home Page: https://typo3.org/community/teams/typo3-development/initiatives/translation-handling

License: GNU General Public License v3.0

PHP 55.87% HTML 31.55% CSS 4.75% JavaScript 7.83%
mixed-mode translation translation-management typo3 wizard connected-mode free-mode

transfusion's Introduction

TransFusion

Wizard module to deal with TYPO3 connected and free mode translations and to fix the notorious mixed mode

transfusion's People

Contributors

bunnyfield avatar cybercraft-gmbh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

transfusion's Issues

[BUG] Already confirmed connection cannot be replaced by alternatives

If a content element in the default language already has a confirmed connection in the selected non-default language and additional "Possible connections" are also recognized, the possible connections cannot be selected as an alternative to the already confirmed connection. The button with the arrow pointing to the right, which is otherwise displayed when a Possible Connection has been confirmed, is missing.

Bildschirmfoto 2024-03-25 um 11 28 15

[FEATURE] Drag & Drop connect CE without recognized relationship

Currently, it is only possible to link content for which an (obvious/possible/broken/orphaned) link could be determined in the database in relation to a content element of the default language.

It would be nice if orphaned elements without a recognized reference to an element of the default language or elements for which the connections were explicitly removed via the wizard could also be placed in a new reference to each other using drag & drop.

Bildschirmfoto 2024-03-18 um 13 25 27

Am I right in thinking that this feature is already part of the community budget idea for Q2?

[BUG] Undefined array key "brokenOrOrphaned"

If I have the situation that two elements in the "Possible Connection" area come into question for an element of the default language and I then delete the element of the default language

Bildschirmfoto 2024-03-23 um 22 26 43

I get the following php warning when I click on the Connect button in the Page Module again:

PHP Warning: Undefined array key "brokenOrOrphaned" in /var/www/html/vendor/t3thi/transfusion/Classes/Domain/Repository/TransfusionRepository.php line 204

[BUG] PHP Warning: Undefined variable $preparedRecord

If I have deleted all elements of the default language via the page module (for whatever reason) and then click on the Connect button in a non-default language whose content was originally obtained from another non-default language, I get the following PHP warning:

PHP Warning: Undefined variable $preparedRecord in /var/www/html/vendor/t3thi/transfusion/Classes/Domain/Repository/TransfusionRepository.php line 217

[BUG] Mode switch not possible with newly created translation parent

For content elements in the default language that were newly created in the TransFusion Connector using the Add new translation parent and move to confirmed connections button, it is not possible to switch back to free mode and then switch back to connected mode, as the reference between the elements is lost when switching to free mode.

Example:

In the initial state, we are in free mode in the non-default language. Elements exist here for which no translation parent could be determined in the default language.

Bildschirmfoto 2024-03-23 um 21 12 54

By clicking on the Add new translation parent and move to confirmed connections button, we indicate that the missing elements should be created in the default language in order to be able to switch to connected mode.

Bildschirmfoto 2024-03-23 um 21 13 04

In the Page module, I now click on the Disconnect button in the newly created Connected mode to return to Free mode.

Then I click on the Connect button again and notice that the elements that originally belonged together are now displayed separately in the TransFusion Connector. I conclude from this that no connection could be found.

Bildschirmfoto 2024-03-23 um 21 13 47

I have not yet had a look at the database, but could it be that no corresponding reference is set in the l10n_source/t3_origuid fields for newly created elements of the default language?

[FEATURE] Improved handling of unsaved changes

If the Close button is pressed in the TransFusion Connector, it is closed regardless of any changes. As an editor, you are used to being asked beforehand via a modal whether you really want to discard the changes.

Bildschirmfoto 2024-03-18 um 11 36 39

I would also like to see this function for the TransFusion Connector. In particular, due to the editorial habit in other places that the close button does not immediately discard the change, a query should be made.

[FEATURE] Batch assignment of relations in wizard

In order to reduce the editorial effort involved in creating links between content in the default language and content in the non-default language even further, it would be helpful if it were possible to assign elements collectively. For example, a batch assignment button would be conceivable.

At the moment, I am not quite sure how this option could be made available in the context of the various situations (obvious/possible/broken connections or non-assignable elements). This would certainly need to be considered in detail.

Bildschirmfoto 2024-03-18 um 10 54 56

[BUG] Inappropriate hint when saving

If you select the button Remove all connection information. Creates an orphaned record! for a content item in a non-standard language:

Bildschirmfoto 2024-03-18 um 11 01 10

and then click "Save" in the TransFusion Connector, you will be asked:

Are you sure you want to remove or delete the marked records?

This message should only be displayed if content elements have been marked for deletion via the Delete superfluous record button.

Bildschirmfoto 2024-03-18 um 11 01 34

An alternative message could be:

Are you sure you want to remove the connections of the selected data records?

I'm not sure how to handle cases where both the deletion of the element and the deletion of connections elsewhere have been selected. In this case, the message should at least indicate that there is at least one element to be deleted and at least one element whose connection is to be removed.

[BUG] Some non-default language CE not visible in TransFusion Connector

In some cases, which are not yet completely clear to me, content elements of the non-default language are missing in the TransFusion Connector.

For demonstration purposes, I have attached a test database and a test site configuration (they are the same ones that you use for your tests and that you sent me for demonstration on t3cmd24.).

Example Site Configuration: config.yaml.zip
Example DB: typo3_dump.tar.gz

In this case I notice that in the language "Nederlands" [6] the contents with the uids 513 and 524, which are visible as unconnected contents in the Page module, are missing in the TransFusion Connector. Unfortunately, I cannot yet provide any further information on the possible cause.

[FEATURE] replace double action with switch of elements

If there are doubles in any column besides the "confirmed" column, it would be nice to switch them with the confirmed column item as long as those are not saved yet.

Currently you have to remove the confirmed item first and then add the new item.

Still it would be made sure that there is only one confirmed item per original element.

[BUG] Either delete the content element OR break up the connection

It makes no sense in the TransFusion Connector that for a content element of the non-default language it is possible to select both that the connection should be deleted and that the element should be deleted.

If the connection is deleted, you still want to use the content element.
If the content element is deleted, there is no longer a connection anyway.

Bildschirmfoto 2024-03-18 um 11 13 35

[FEATURE] Use of TYPO3 modals instead of JavaScript alerts

Currently, JavaScript alerts are issued when the Save, Remove all connection information and Delete superfluous record buttons in the TransFusion Connector are clicked.
Bildschirmfoto 2024-03-18 um 11 26 39
It would be nice if the TYPO3 modals could also be used in these places. This could look like this, for example:
Bildschirmfoto 2024-03-18 um 11 29 48

[BUG] Deleting default language elements provokes TransFusion Connector duplicates

There are situations in which content element duplicates are output in the TransFusion Connector.

Example:

In the initial situation, I have two elements in the default language and two elements in the non-default language in the free mode, which were originally created on the basis of another non-default language.

Bildschirmfoto 2024-03-26 um 17 02 37

In the TransFusion Connector, a possible connection is determined for these two elements.

Bildschirmfoto 2024-03-26 um 17 02 50

Now I delete one of the two elements of the default language (in the example uid 28).

Bildschirmfoto 2024-03-26 um 17 03 34

If I now open the TransFusion Connector again, I notice that

  • the remaining element (uid 26 in the example) and the associated possible connection are displayed twice
  • the other element of the non-default language (uid 512 in the example) is no longer displayed at all

The latter point possibly also refers to the missing elements from issue #12

Bildschirmfoto 2024-03-26 um 17 03 43

[FEATURE] Keep TransFusion Connector open on page reload

Backend URL rewrites have been available since TYPO3 v11. This is accompanied by deep linking functionality. This means that editors are now used to the fact that the currently open input mask is retained even when the page is reloaded.

For this reason, it would be nice if this rule also applied to the TransFusion Connector. In the current state, the TransFusion Connector switches back to the initial view of the Page module when the page is reloaded.

If this is made possible, it should even be possible to store the usual share button in the TransFusion Connector.

Bildschirmfoto 2024-03-23 um 22 10 05

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.