Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
user interface text
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2013 at 10:13 UTC
Updated:
7 Apr 2026 at 17:27 UTC
Jump to comment: Most recent
Comments
Comment #1
duaelfropi is currently working on the detection script : https://gist.github.com/opi/bad4443ec600c8899726
Comment #1.0
duaelfrAdded first sub issue
Comment #2
duaelfrThanks to opi, the detection script has been converted in a tiny drush module.
On the current dev version that is what the script outputs :
This script could be improved to help module maintainers to keep their strings safe (or it may be integrated in Coder).
Comment #2.0
duaelfrMarking first remainig task as done and adding a new one
Comment #3
yesct commentedThis is really well organized.
I think we should come back to this every once and a while and re-run it.
Also, I wonder if we should look at the work in
https://drupal.org/project/issues/search/potx?issue_tags=Drupal%208%20co...
ps. I didn't know we had a D8MI-meta tag. I have some other meta issues that could be tagged with that.
usually I do a search for the D8MI tag, and add meta to like the title search to find them.
hm.
Comment #3.0
yesct commentedAdd new subissue
Comment #4
duaelfrRenaming the issue to be more accurate with its real purpose
Comment #5
duaelfrI added a patch in the Coder module to help module maintainers to follow this initiative.
#2050211: Check translatable strings
Comment #5.0
duaelfrAdded two sub issues
Comment #6
duaelfrI ran the drush script today and no new unsafe string had been detected!
\o/
Comment #6.0
duaelfrUpdated issue summary.
Comment #7
duaelfrI just updated the drush script tohandle the change in the version number.
We got a new unsafe string!
New sub-issue opened => #2371457: Replace inappropriate translatatable string in core/modules/contextual/contextual.module
Comment #8
duaelfrI updated the script to use the potx module to be more precise and to be able to run it from a D8 instance.
- old script : https://gist.github.com/DuaelFr/6040368/ae874bbffdcdd5b01a35de63906e05b9...
- new script : https://gist.github.com/DuaelFr/6040368
How to use it :
You might see some errors due to the potx module recognising improper use of variables in translation methods but do not spend time on these and go to the real results that are formatted as follow :
For some reason, when the string has been found in a yml file, the line shown by the script is always 0.
Comment #9
duaelfrRunning the new version of the script I found two new untranslatable strings.
Digging a bit with the help of dawehner we found that Xss::filter was dropping tokens if they were part of an href (or maybe src) attribute because of the protection against "javascript:" things.
I opened a new issue to follow this particular case.
#2371861: Strings including tokens in href or src attributes cannot be translated due to safeness check incompatibilities
Comment #10
gábor hojtsyComment #11
gábor hojtsyLet's put the individual issues on the sprint. Sorry that I put the meta on, it makes it hard to track, because this will always be in TODO and then suddenly go away, unlike the actual issues.
Comment #12
gábor hojtsyComment #26
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #27
smustgrave commentedWanted to bump 1 more time before closing.
Comment #29
smustgrave commentedAll the child issues are closed so is this complete?