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.
There's a closed issue for this in 8.0.x (see related issue). I'm using 8.1 now, and I can't see that this has been fixed. This is what the returned render array looks like in Drupal\views\Plugin\views\display\DisplayPluginBase::renderMoreLink:
return array(
'#type' => 'more_link',
'#url' => $url,
'#title' => $this->useMoreText(),
'#view' => $this->view,
);
The text doesn't seem to be put through t
. It is however typed as "label" in the schema.yml file.
Comment | File | Size | Author |
---|---|---|---|
#4 | view translations.PNG | 19.06 KB | rvtraveller |
Comments
Comment #2
dawehnerRight, given that it should be translatable using config translation, don't you think so?
Comment #3
jeanfredrik CreditAttribution: jeanfredrik commentedSo how do I translate it?
Comment #4
rvtraveller CreditAttribution: rvtraveller at Mindgrub Technologies commentedWhen on the edit page for that individual page click the "Translate View" tab:
Then pick Edit/Add for the language you wish to add the translation for. Finally, find the fields fieldset in the form (it is buried a couple layers deep) and then expand the "Rewrite Results" section to translate the "More Link Label".
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commented