Skip to content

Commit

Permalink
Fix accessibility strings always getting english versions if set to b…
Browse files Browse the repository at this point in the history
…e translated via polylang
  • Loading branch information
EliasKau committed Feb 15, 2024
1 parent af46b4e commit 9d6eb90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Update unit tests for WordPress Coding Standards 3.0.1
* Prepare for PHP version 8.3
* Allow short array syntax for WPCS 3.0.1
* Fix accessibility strings always getting english versions if set to be translated via polylang

### 9.3.6: 2024-01-10

Expand Down
6 changes: 3 additions & 3 deletions inc/includes/localization.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/**
* @Author: Timi Wahalahti
* @Date: 2019-12-03 11:03:31
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2022-12-29 19:05:36
* @Last Modified by: Elias Kautto
* @Last Modified time: 2024-02-15 16:15:48
*
* @package air-light
*/
Expand All @@ -19,7 +19,7 @@
* Uncomment if you need to have default air-light accessibility strings
* translatable via Polylang string translations.
*/
// foreach ( get_default_localization_strings() as $key => $value ) {
// foreach ( get_default_localization_strings( get_bloginfo( 'language' ) ) as $key => $value ) {
// $strings[ "Accessibility: {$key}" ] = $value;
// }

Expand Down

0 comments on commit 9d6eb90

Please sign in to comment.