1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +02:00

Add PR #183 - Make ProcessLanguageTranslator.module translatable

This commit is contained in:
yuters
2021-05-07 14:44:02 -04:00
committed by Ryan Cramer
parent 3bcb8416ca
commit b7d8ae37e3

View File

@@ -754,7 +754,7 @@ class ProcessLanguageTranslator extends Process {
}
// files containing __(file-not-translatable) anywhere are non-translatable
if($found && strpos($text, '__' . '(file-not-translatable)') !== false) $found = false;
if($found && $pathname !== __FILE__ && strpos($text, '__(file-not-translatable)') !== false) $found = false;
if($found) {
$pathname = str_replace($root, '/', $pathname);