Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any plans for a D8 port?
Comment | File | Size | Author |
---|---|---|---|
#4 | transliteration-d8port-2379239-4.patch | 449.81 KB | aludescher |
Comments
Comment #1
SebCorbin CreditAttribution: SebCorbin commentedJust dumping some info on transliteration status in core:
#567832: Transliteration in core
#1842718: Use new Transliteration functionality in core for machine names
So a service is available (see change record), but we need to make it usable for file names for example.
Pathauto won't probably need a dependency over Transliteration module anymore https://github.com/md-systems/pathauto/blob/abd25b738c3a095a2a1ec1f1784e...
Comment #2
DamienMcKennaStandardized the title and tag. (I think)
Comment #3
amateescu CreditAttribution: amateescu commented#1 is correct, the main functionality is in core but we still need to do file name integration in contrib, at least until 8.1.x when new features like this will be accepted again.
Comment #4
aludescher CreditAttribution: aludescher commentedHere's my first attempt at a Drupal 8 port, ready for reviewing. The module leverages the transliteration service from core. File transliteration for uploaded files is implemented, but retroactive transliteration and search form integration is still missing. It will come in a next patch. The code contains a few TODOs and it needs to be cleaned up a bit.
Thanks to amateescu for the initial guidance.
PS: Please be patient as this is my first attempt at porting and patching a module.
Comment #5
FrancewhoaThanks all for your contributions :)
We are happy to contribute testing patch, quality assurance, documentation, and agile project management services if needed
Any additional volunteers interested to join to effort to port Transliteration module from Drupal 7 to 8?
Related pages
Comment #6
andypostAbout file names, there's https://github.com/MichelleCox/filefield_paths
and core issue
Comment #7
g089h515r806 CreditAttribution: g089h515r806 commentedTest with filefield_paths beta1 of Drupal8, it does not work at first.
At last it works, it transliterate file name after you save your node. if it transliterate file name before save the node, it will be perfect.
Comment #8
g089h515r806 CreditAttribution: g089h515r806 commented#4 patch does not work also.
Comment #9
MichelleFYI about #6, the FFP maintainer decided to just ignore our working D8 version and do his own thing so that link is no longer relevant.
Comment #10
bkosborneI'm not module maintainer but I think it's appropriate to close this because there's a core issue to get filename transliteration into core: #2492171: Provide options to sanitize filenames (transliterate, lowercase, replace whitespace, etc) and it seems close to ready.
Comment #11
amateescu CreditAttribution: amateescu commentedYup, we can close this one :)
Comment #12
hansrossel CreditAttribution: hansrossel commentedSee also https://www.drupal.org/project/transliterate_filenames