Bug #83406
closedLanguage module downloads language-files for deactivated extensions only
100%
Description
We have installed a fresh non-composer-based TYPO3 9.0 and download language "german". After that we switched user default language to "german" and also changed the language for the user to this. But after browser-refresh the backend is still in english.
In /typo3conf/l10n/de/ are only these folders, all extensions are deactivated(!) in EM
- filemetadata
- form
- indexed_search
- linkvalidator
- opendocs
- scheduler
- sys_action
- taskcenter
- workspaces
Seems only language-files for deactivated extensions are downloaded.
TYPO3 9.0.0
PHP 7.2.0
Apache
MariaDB
Updated by Oliver Klee almost 7 years ago
- Subject changed from Language-modul only downloads language-files for deactivated extensions to Language module downloads language-files for deactivated extensions only
Updated by Wittkiel Gruppe almost 7 years ago
For activated extensions TYPO3 tries to download these non-existant files with v9 in url:
https://extensions.typo3.org/fileadmin/ter/a/b/about-l10n/about-l10n-de.v9.zip
https://extensions.typo3.org/fileadmin/ter/b/a/backend-l10n/backend-l10n-de.v9.zip
etc.
These urls are working with v7 and v9.
For deactivated extensions TYPO3 succesful downloads these files without v9 in url:
https://typo3.org/fileadmin/ter/f/i/filemetadata-l10n/filemetadata-l10n-de.zip
https://typo3.org/fileadmin/ter/f/o/form-l10n/form-l10n-de.zip
Url is generated here: https://github.com/TYPO3/TYPO3.CMS/blob/1ad185f32e63179dabb6d9634c1cd5c75bad51fb/typo3/sysext/lang/Classes/Service/TerService.php#L180-L188
Updated by Christian Kuhn almost 7 years ago
These urls are working with v7 and v9.
->
These urls are working with v7 and v8.
So, as far as I can see, the urls are correct, the translations are just not yet populated in a v9 version. I'll ping Xavier about that, maybe he knows details.
For the detail that it works with 'deactivated' extensions, this is because the em does not know the version of the not loaded extension and thus fetches a very old 'compatibility' version of the localizations, which is not cool, either. I think the language module shouldn't fetch translations of not loaded exts at all.
Updated by Wittkiel Gruppe almost 7 years ago
Christian Kuhn wrote:
So, as far as I can see, the urls are correct, the translations are just not yet populated in a v9 version. I'll ping Xavier about that, maybe he knows details.
Did you reach Xavier? The files are still not there.
Updated by Christian Kuhn over 6 years ago
This boiled down to a server-team issue. They promised to fix that now, so for installed packages, the v9 versions are hopefully available soon.
However, the language BE module currently loads very old localization packages for not installed extensions. I'll now push a patch (tested on v7, v8 and v9) to only fetch localization packages of actually loaded extensions - for not loaded extensions the version detection goes wrong, so to prevent old l10n information, we just skip downloading packages of not loaded extensions with my patch.
For v9, i hope the server team fixes the issue soon, and the module will receive a revamp and relocation anyway - I'm currently just a bit blocked by the server-team issue.
Updated by Christian Kuhn over 6 years ago
ok, server team solve the main issue meanwhile, so v9 language packs are now available again. kudos to stucki for this.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55860
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55860
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55860
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55863
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55864
Updated by Christian Kuhn over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 61485b714f775d070162d39664af30b9fa895685.