Path to translation files is hardcoded in the install

Created on 17 March 2016, about 9 years ago
Updated 25 November 2023, over 1 year ago

Problem/Motivation

function install_check_translations($langcode, $server_pattern) {
  $requirements = array();

  $readable = FALSE;
  $writable = FALSE;
  // @todo: Make this configurable.
  $site_path = \Drupal::service('site.path');
  $files_directory =  $site_path . '/files';
  $translations_directory = $site_path . '/files/translations';

Proposed resolution

I couldn't find the TODO, so this will have to be it.
#1658842: Introduce a translations:// stream wrapper to access the .po file directory makes this a lot easier.

Remaining tasks

Do it. Make the path configurable.

User interface changes

API changes

Data model changes

Feature request
Status

Closed: outdated

Version

9.5

Component
Language system 

Last updated 7 days ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

heddn Nicaragua

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