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.
Menu links related to "Devel generate", under development menu, are not translatable.
Comment | File | Size | Author |
---|---|---|---|
#4 | translate_menus-2899655-4.patch | 997 bytes | Tomazetti |
|
Comments
Comment #2
Tomazetti CreditAttribution: Tomazetti commentedComment #3
willzyx CreditAttribution: willzyx commented@Tomazetti thanks for contributing!
A quick review:
1) The label must be passed in as argument and inserted via a placeholder.
2) When possible you need to create a new
\Drupal\Core\StringTranslation\TranslatableMarkup
object instead of uset()
functionmoving to NW ;)
Comment #4
Tomazetti CreditAttribution: Tomazetti commentedChanged the patch to insert label via placeholder.
Why should I create a new \
Drupal\Core\StringTranslation\TranslatableMarkup
object instead of uset()
function?Comment #5
Tomazetti CreditAttribution: Tomazetti commentedComment #6
Tomazetti CreditAttribution: Tomazetti commentedComment #8
willzyx CreditAttribution: willzyx commentedCommitted and pushed to 8.x. Thanks!