Skip to content

Conversation

@Heliozoa
Copy link

When the GoogleTranslate URI field is left empty when editing a language, the field is set to null. At some point it the ability to give preg_replace's third parameter a null value was deprecated, so this function call resulted in the Read view displaying a big

Deprecated: preg_replace(): Passing null to parameter # 3 ($subject) of type array|string is deprecated

@HugoFara HugoFara added the ui Any problem related to the User Interface label Oct 2, 2022
HugoFara added a commit that referenced this pull request Oct 3, 2022
HugoFara added a commit that referenced this pull request Oct 3, 2022
#42: left-to-right texts displayed as RTL when checking them.
#44: deprecation warning in bulk translate.
@HugoFara HugoFara merged commit 52ac31d into HugoFara:master Oct 3, 2022
@HugoFara
Copy link
Owner

HugoFara commented Oct 3, 2022

Hi! I'm not sure why your Google Translate field was empty, but it was used internally to determine the two-character codes for languages, before sending requests to Google Translate. However, the ability to use the Google Translate API broke long ago (before I started contributing), so your bug fix is enough to get rid of the visual issues without disrupting the user.

@Heliozoa Heliozoa deleted the fix-deprecation-warning branch October 3, 2022 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui Any problem related to the User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants