Document required path variable in settings.php

Created on 10 May 2019, over 5 years ago
Updated 23 March 2023, over 1 year ago

To use the "langexp" command in connection with the customtranslations module, one needs to set the path the translations are exported to in settings.php
The setting is to be defined like this

$settings['custom_translations_directory'] = [path-relative-to-drupal-root]

So if you use a composer template which puts the drupal root one level up from the git root, your path might be '../custom-translations' so it creates a directory in the git root path.

This is not documented anywhere. It should be in the readme of one of the two modules, not sure which.
Today I wanted to set the path but could for the life of me find not any documentation.
Until I remembered trying to run the drush command, then you get helped...

If this never happens, I least I can find this issue, which helps as a kind of stealth documentation }:-]<

Filing as a documentation bug

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Documentation

Created by

🇩🇪Germany eigentor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024