I have a View field of which the content is well translated, but the block title ("Articles" for instance) remains untranslated for some reason, eventhough these have been translated through Drupal's "Translate interface" UI.
What could be the problem here?
Attch: views export
| Comment | File | Size | Author |
|---|---|---|---|
| block-title-not-translated-viewfield.txt | 46.42 KB | knalstaaf |
Comments
Comment #1
knalstaaf commentedAdding the t-function around the title output does the trick (viewfiled/viewfield.module, around line 218).
Source of code: #281409: Show view title in viewfield output
Comment #2
knalstaaf commentedComment #3
knalstaaf commentedHold on, adding the t-function shows the word "Array" on translated blocks with no title??
Comment #4
knalstaaf commentedComment #5
keithm commentedAs I recall viewreference outputs the title. You may want to check how they do it for some guidance.
I also recommend adding a boolean setting for this to let the user turn titles on or off (at the instance level, see #1230534: allowed_views should be an instance setting, not a field setting).
Comment #6
jerdavis