تخطي التنقل

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 1صوت.

آخر تحديث بواسطة grzegorzK-16 قبل 10 أشهر، أسبوعين.

يساعده: Itamar.

الكاتب المشاركات
أغسطس 7, 2024 في 12:49 م #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?