Answers.Body: <p>The solution was:</p>
  
  <ol>
  <li><p>Add a <code>define('CIVICRM_L10N_BASEDIR', '/var/aegir/platforms/YOUR-PATH');</code> statement to <code>platform.settings.php</code> file of Aegir (see: <a href="https://docs.aegirproject.org/extend/altering-behaviours/#customizing-settingsphp" rel="nofollow noreferrer">Altering Aegir's Behaviours</a>), to set an environmental variable for CiviCRM, to locate the exact place of its l10n files. More info on <code>CIVICRM_L10N_BASEDIR</code> <a href="https://lab.civicrm.org/dev/translation/-/issues/30" rel="nofollow noreferrer">here</a> and <a href="https://lab.civicrm.org/dev/translation/-/issues/39" rel="nofollow noreferrer">here</a>.</p></li>
  <li><p>Correct the line breaks of the example <a href="https://lab.civicrm.org/dev/translation/-/wikis/Default-Language-Settings" rel="nofollow noreferrer">settings.default.json</a>, otherwise it's not being read as JSON file. The <code>address_format</code> and <code>mailing_format</code> should be one line, and <code>\n</code> have to be added when line break is required. See <a href="https://lab.civicrm.org/dev/translation/-/merge_requests/4" rel="nofollow noreferrer">MR</a>.</p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-27T08:42:08.277Z
Answers.LastActivityDate: 2020-04-27T12:33:16.707Z
Answers.LastEditDate: 2020-04-27T12:33:16.707Z
Answers.UserDisplayName: Doka
Body: <p>Since CiviCRM 5.23, one can <a href="https://lab.civicrm.org/dev/translation/issues/30" rel="nofollow noreferrer">set a custom L10n/I18n resource directory</a>. Using this feature with Aegir and Drupal 7 profiles, this setting almost works: CiviCRM sites install with selected language, using the Drupal and CiviCRM language files (.po/.mo) located now at <code>profiles/myprofile/translations/</code>.</p>
  
  <p>Missing piece is that the <code>settings.default.json</code> file of CiviCRM l10n settings is not picked up during install, so its settings are neglected. The file is at <code>civicrm/l10n/hu_HU</code>, next to the .po files.</p>
  
  <p>Is it a bug or am I missing something in my Aegir settings?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-23T00:39:15.663Z
Comments.Text: You might want to ask at https://lab.civicrm.org/dev/translation/-/issues/1 since there's a comment there that it may or may not be broken by the new l10n path setting.
Comments.UserDisplayName: Demerit
Tags: <installation><i18n><aegir><l10n>
Title: Why settings.default.json file is neglected during install?
ThreadText: # Why settings.default.json file is neglected during install?
  
  (Asked by: username_0 on 2020-04-22)
  
  Since CiviCRM 5.23, one can [set a custom L10n/I18n resource directory](https://lab.civicrm.org/dev/translation/issues/30). Using this feature with Aegir and Drupal 7 profiles, this setting almost works: CiviCRM sites install with selected language, using the Drupal and CiviCRM language files (.po/.mo) located now at `profiles/myprofile/translations/`.
  
  Missing piece is that the `settings.default.json` file of CiviCRM l10n settings is not picked up during install, so its settings are neglected. The file is at `civicrm/l10n/hu_HU`, next to the .po files.
  
  Is it a bug or am I missing something in my Aegir settings?
  
  **Tags:** installation, i18n, aegir, l10n
  
  > **Comments:**
  > **username_1**: You might want to ask at https://lab.civicrm.org/dev/translation/-/issues/1 since there's a comment there that it may or may not be broken by the new l10n path setting.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-04-27. Score: 2 | Accepted answer
  
  The solution was:
  
  1. Add a `define('CIVICRM_L10N_BASEDIR', '/var/aegir/platforms/YOUR-PATH');` statement to `platform.settings.php` file of Aegir (see: [Altering Aegir's Behaviours](https://docs.aegirproject.org/extend/altering-behaviours/#customizing-settingsphp)), to set an environmental variable for CiviCRM, to locate the exact place of its l10n files. More info on `CIVICRM_L10N_BASEDIR` [here](https://lab.civicrm.org/dev/translation/-/issues/30) and [here](https://lab.civicrm.org/dev/translation/-/issues/39).
  2. Correct the line breaks of the example [settings.default.json](https://lab.civicrm.org/dev/translation/-/wikis/Default-Language-Settings), otherwise it's not being read as JSON file. The `address_format` and `mailing_format` should be one line, and `\n` have to be added when line break is required. See [MR](https://lab.civicrm.org/dev/translation/-/merge_requests/4).
  
  
  ---
  
  