Skip to main content

d8

Drupal 8 string overrides

Preface With the new language system in core the need for most of the functionality of the string overrides module is not really needed. That is if you just want to replace a string in general or have added the right context using the {% trans %} filter in your twig templates (see documentation for a more detailed overview) Bare in mind, that translating strings is not the same translating content. Drupal makes a clear separation between interface and content translation. All the strings looped through the translation using the t() method are interface text not content. Also you need to keep in mind that the system always translates from english to another language. Even if your site is in Dutch, you still want to write the translatable strings in e...

Mamp PRO 4 and the never generated images.

When working on the final touches of a Drupal 8 project we ran into a very strange issue. Every single time I opened the file browser, apache got stuck and the system load went sky high. First I blamed the media browser, but a quickly generated view that rendered a list of all the image/* items in de file library showed the same problem. Tailing the logs brought nothing, no strange segfaults or other memory errors. In a last resort I switched Mamp to PHP 7.1 and to my surprise the images where rendered. Deleted the files/styles content, re-ran the view. And presto images were back. But our production environment runs PHP 7.0.15, so the sites needs to work with that PHP version as well. Started to compare the php.ini files and the only difference w...