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.
Updated: Comment #5
Problem/Motivation
The Node.js config module should be ported to Drupal 8.
Proposed resolution
See the attached patch. (Needs work)
Remaining tasks
1. Use $this->t instead of just t().
Comment | File | Size | Author |
---|---|---|---|
#6 | nodejs_config-drupal_8-2142007-6.patch | 21.8 KB | id.medion |
#6 | interdiff-2142007-3-6.txt | 13.73 KB | id.medion |
#3 | nodejs_config-drupal_8-2142007-3.patch | 20.48 KB | id.medion |
#3 | interdiff.txt | 11.23 KB | id.medion |
nodejs_config_drupal_8.patch | 20.79 KB | id.medion |
Comments
Comment #1
bohartSeems that we need to add here translation support.
So all text data should be wrapped with t() function.
Comment #2
id.medionComment #3
id.medionAdded support for translation and cleared trailing whitespace.
Comment #4
bohartPlease look at FormBase::t.
Seems that we need to use $this->t instead of just t().
Comment #5
areke CreditAttribution: areke commentedComment #6
id.medion@bohart, thanks for explain.
Also fixed other issues, please review.
Comment #7
id.medionComment #8
me-taras CreditAttribution: me-taras commentedCommited, thanks!
http://drupalcode.org/project/nodejs.git/commit/9193180
Comment #9
me-taras CreditAttribution: me-taras commented