Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Clean up language files #472

Merged
merged 5 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Configuration/Backend/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Extcode\Cart\Controller\Backend\Order\PaymentController;
use Extcode\Cart\Controller\Backend\Order\ShippingController;

$_LLL_db = 'LLL:EXT:cart/Resources/Private/Language/locallang_db.xlf:';
$_LLL_be = 'LLL:EXT:cart/Resources/Private/Language/locallang_be.xlf:';

/**
* Definitions for modules provided by EXT:cart
Expand All @@ -17,7 +17,7 @@
'access' => 'user, group',
'workspaces' => 'live',
'path' => '/module/cart',
'labels' => $_LLL_db . 'tx_cart.module.main',
'labels' => $_LLL_be . 'tx_cart.module.main',
'extensionName' => 'Cart',
'iconIdentifier' => 'ext-cart-module',
'navigationComponent' => '@typo3/backend/page-tree/page-tree-element',
Expand All @@ -29,7 +29,7 @@
'workspaces' => 'live',
'path' => '/module/cart/orders',
'labels' => [
'title' => $_LLL_db . 'tx_cart.module.orders',
'title' => $_LLL_be . 'tx_cart.module.orders',
],
'extensionName' => 'Cart',
'controllerActions' => [
Expand Down
5 changes: 2 additions & 3 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
defined('TYPO3') or die();

call_user_func(function () {
$_LLL_be = 'LLL:EXT:cart/Resources/Private/Language/locallang_be.xlf:';
$_LLL_db = 'LLL:EXT:cart/Resources/Private/Language/locallang_db.xlf:';

$GLOBALS['TCA']['pages']['columns']['doktype']['config']['items'][] = [
Expand All @@ -12,12 +11,12 @@
'apps-pagetree-page-cart-cart',
];
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
$_LLL_be . 'tcarecords-pages-contains.cart_coupons',
$_LLL_db . 'tcarecords-pages-contains.cart_coupons',
'coupons',
'apps-pagetree-folder-cart-coupons',
];
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [
$_LLL_be . 'tcarecords-pages-contains.cart_orders',
$_LLL_db . 'tcarecords-pages-contains.cart_orders',
'orders',
'apps-pagetree-folder-cart-orders',
];
Expand Down
26 changes: 26 additions & 0 deletions Documentation/Changelog/9.0/Breaking-471-CleanUpLanguageFiles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.. include:: ../../Includes.txt

===========================================================
Breaking: #471 - Clean up language files
===========================================================

See :issue:`471`

Description
===========

The language files contained a bigger amount of unused entries and their domains
were not really clear. Some entries were renamed to clarify their usage in the
backend.

Affected Installations
======================

Installations which overwrite backend labels might be affected.

Migration
=========

You need to check whether the key of your overwrite was changed and adapt it.

.. index:: Backend
Loading
Loading