You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Overview
Traduttore has a handy mergeWith option which allows to merge an existing POT file with the default generated by Traduttore. Unfortunately this option doesn't work
To Reproduce
Steps to reproduce the behavior:
Create a project with a custom POT file and the mergeWith option
Let Traduttore import the project
After import notice that the strings from the custom POT file are not there
Expected behavior
Strings from the custom POT file are also imported.
The file_exists() is used for a relative path while the current directory may not be the directory of the plugin, usually the root directory of WordPress itself. The fix would be to prefix the merge value with $source.
The text was updated successfully, but these errors were encountered:
Issue Overview
Traduttore has a handy
mergeWith
option which allows to merge an existing POT file with the default generated by Traduttore. Unfortunately this option doesn't workTo Reproduce
Steps to reproduce the behavior:
mergeWith
optionExpected behavior
Strings from the custom POT file are also imported.
Additional context
traduttore/inc/Updater.php
Lines 186 to 188 in 413cff4
The
file_exists()
is used for a relative path while the current directory may not be the directory of the plugin, usually the root directory of WordPress itself. The fix would be to prefix the merge value with$source
.The text was updated successfully, but these errors were encountered: