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.
On admin/structure/types, the machine name of a content type is displayed as "(Machine name: page)". The "Machine name" string isn't translatable. Trivial patch attached.
Comment | File | Size | Author |
---|---|---|---|
#5 | node.patch | 611 bytes | droplet |
hansfn-2011-05-06.patch | 608 bytes | hansfn | |
Comments
Comment #1
droplet CreditAttribution: droplet commentedcan it include all "(Machine name: page)" in t function. because some lang is using different "()" and ":"
thanks.
Comment #2
droplet CreditAttribution: droplet commentedComment #3
hansfn CreditAttribution: hansfn commenteddroplet, I don't understand your comment. (My patch just translates "Machine name".)
Comment #4
jbrown CreditAttribution: jbrown commentedThe brackets and colon should be in the translatable string. Use replacements.
Comment #5
droplet CreditAttribution: droplet commentedyes, @jbrown right.
Comment #6
hansfn CreditAttribution: hansfn commentedOK, next time I'll use replacements. Tested node.patch and it worked fine (of course). Thx.
PS! Do we need to tag it so the fix is backported to 7.x dev?
Comment #7
jbrown CreditAttribution: jbrown commentedThis patch is fine!
Comment #8
catch.
Comment #9
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x.
(Working from the road so can't review big complex issues right now -- picking away some smaller patches that are unlikely to break bigger patches.)