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.
Problem/Motivation
When you use a service like Google Translate it will (try to) translate every text it sees on the site, including filenames.
Steps to reproduce
- Add a service like Google Translate
- Upload a filename that contains text
- Observe that the filename is translated (you may need to switch to different languages)
Proposed resolution
Add the notranslate class to the file names in the different template files.
Which results in the file not being translated during upload.
And also not during normal view.
Remaining tasks
N/a
User interface changes
N/a
API changes
N/a
Data model changes
N/a
Comment | File | Size | Author |
---|---|---|---|
Screenshot 2022-12-08 at 09.24.38.png | 78.64 KB | bramtenhove | |
Screenshot 2022-12-08 at 09.24.28.png | 37.54 KB | bramtenhove | |
translatedfilenames.png | 39.52 KB | bramtenhove |
Issue fork socialbase-3325956
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bramtenhove CreditAttribution: bramtenhove at Open Social for Open Social commentedSee Merge Request
Comment #6
robertragas CreditAttribution: robertragas at Open Social commentedReviewed, approved and merged. Will be landing in 2.4.5 and 2.3.6