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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user