Skip Navigation

This topic contains 0 replies, has 1 voice.

Last updated by grzegorzK-16 5 months, 1 week ago.

Assisted by: Itamar.

Author Posts
August 7, 2024 at 12:49 pm #16047974

grzegorzK-16

Background of the issue:
I have a question about the resolved ticket: https://wpml.org/forums/topic/registration-info-translation-issue/.

The WPML supporter informed me that in the next WPML String Translation plugin release the following errata will be implemented: https://wpml.org/errata/l10n-php-performant-default-translated-strings-not-displaying-correctly/.

Today I have updated the plugin.

According to the errata the following: $moFileName = str_replace('l10n.php', '.mo', $loaded_file);
should be changed into:
$moFileName = str_replace('l10n.php', 'mo', $loaded_file); (The change: .mo -> mo).

But now there is:
$moFileName = str_replace('.l10n.php', '.mo', $loaded_file); (Only the dot is added to 'l10n.php')

Symptoms:
It seems to resolve my previous issue, but I would like to ask if it is correct.

Questions:
Should I bother about the change in the code?
Is the current implementation of the errata correct?