Skip to content

Commit

Permalink
Fix: localization label for option "skip 404"
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTorrisi committed Jan 9, 2025
1 parent 0aaf7c2 commit d459e95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 10 additions & 6 deletions components/performance/defaultText.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultText = {
'wp-module-performance'
),
cacheLevel1Description: __(
'Cache static assets like images and the appearance of your site for 1 hour. ',
'Cache static assets like images and the appearance of your site for 1 hour.',
'wp-module-performance'
),
cacheLevel1Label: __( 'Assets Only', 'wp-module-performance' ),
Expand All @@ -25,7 +25,7 @@ const defaultText = {
'wp-module-performance'
),
cacheLevel2Description: __(
'Cache static assets for 24 hours and web pages for 2 hours. ',
'Cache static assets for 24 hours and web pages for 2 hours.',
'wp-module-performance'
),
cacheLevel2Label: __( 'Assets & Web Pages', 'wp-module-performance' ),
Expand All @@ -38,7 +38,7 @@ const defaultText = {
'wp-module-performance'
),
cacheLevel3Description: __(
'Cache static assets for 1 week and web pages for 8 hours. ',
'Cache static assets for 1 week and web pages for 8 hours.',
'wp-module-performance'
),
cacheLevel3Label: __(
Expand Down Expand Up @@ -73,14 +73,18 @@ const defaultText = {
),
cacheExclusionSaved: __( 'Cache Exclusion saved', 'wp-module-performance' ),
cacheExclusionSaveButton: __( 'Save', 'wp-module-performance' ),
// Skip 404
// Skip 404
skip404Title: __( 'Skip 404', 'wp-module-performance' ),
skip404Description: __(
'When enabled, static resources like images and fonts will use a default server 404 page and not WordPress 404 pages. Pages and posts will continue using WordPress for 404 pages. This can considerably speed up your website if a static resource like an image or font is missing.',
'wp-module-performance'
),
skip404OptionLabel: __(
'Skip 404 Handling For Static Files',
'wp-module-performance'
),
skip404NoticeTitle: __( 'Skip 404 saved', 'wp-module-performance' ),
skip404Notice: __( 'Skip 404 saved', 'wp-module-performance' ),
skip404Notice: __( 'Skip 404 saved', 'wp-module-performance' ),
// Image Optimization
imageOptimizationSettingsTitle: __(
'Image Optimization',
Expand Down Expand Up @@ -180,7 +184,7 @@ const defaultText = {
),

linkPrefetchDescription: __(
'Asks the browser to download and cache links on the page ahead of them being clicked on, so that when they are clicked they load almost instantly. ',
'Asks the browser to download and cache links on the page ahead of them being clicked on, so that when they are clicked they load almost instantly.',
'wp-module-performance'
),
linkPrefetchNoticeTitle: __(
Expand Down
5 changes: 1 addition & 4 deletions components/skip404/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ const Skip404 = ( { methods, constants } ) => {
onChange={ handleSkip404Change }
value={ skip404 }
checked={ skip404 }
label={ __(
'Skip 404 Handling For Static Files',
'wp-module-performance'
) }
label={ constants.text.skip404OptionLabel }
/>
</Container.SettingsField>
);
Expand Down

0 comments on commit d459e95

Please sign in to comment.