Home Forums WoodMart support forum Translation Reply To: Translation

#75287

kirilbotev
Participant

If possible to clear duplicated with woocommerce translation. I found 156 duplicated etires. Can use this php code to compare, found and clear:

preg_match_all(‘/#:\s+(.*?)\nmsgid\s”(.*?)”/i’, file_get_contents(“woocommerce.pot”), $matches);
$woocommerce = $matches[2];

preg_match_all(‘/#:\s+(.*?)\nmsgid\s”(.*?)”/i’, file_get_contents(“woodmart.pot”), $matches);
$woodmart = $matches[2];

$result = array_filter(array_intersect($woocommerce, $woodmart));

print_r($result);