Skip to content

Commit

Permalink
[BUGFIX] Make clear cache error notification translatable
Browse files Browse the repository at this point in the history
Move title and description of the clear cache error notification
to a xlf file to make it translatable.

Resolves: #89447
Releases: master
Change-Id: I925773de216ee8283336981b2cff2bd9a087a927
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62269
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
  • Loading branch information
o-ba authored and ervaude committed Dec 6, 2019
1 parent 784b33c commit 0eab75e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ class ClearCacheMenu {
}
},
error: (): void => {
Notification.error(
'An error occurred',
'An error occurred while clearing the cache. It is likely not all caches were cleared as expected.',
);
Notification.error(TYPO3.lang['flushCaches.error'], TYPO3.lang['flushCaches.error.description']);
},
complete: (): void => {
$(Identifiers.toolbarIconSelector, Identifiers.containerSelector).replaceWith($existingIcon);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,12 @@ Do you want to refresh it now?</source>
<trans-unit id="flushAllCachesDescription2" resname="flushAllCachesDescription2">
<source>Clear all system-related caches, including localization, extension configuration, file caches and opcode caches. Rebuilding this cache may take some time.</source>
</trans-unit>
<trans-unit id="flushCaches.error" resname="flushCaches.error">
<source>An error occurred</source>
</trans-unit>
<trans-unit id="flushCaches.error.description" resname="flushCaches.error.description">
<source>An error occurred while clearing the cache. It is likely not all caches were cleared as expected.</source>
</trans-unit>
<trans-unit id="rm.adminFunctions" resname="rm.adminFunctions">
<source>Admin functions</source>
</trans-unit>
Expand Down

0 comments on commit 0eab75e

Please sign in to comment.