- Issue created by @lrwebks
For me, when exporting translation strings from my module, the following warning pops up in the console:
[warning] Undefined variable $file_name potx.inc:493
Export the translation of any module via the drush potx multiple --modules=example command from the module's drupal.org page.
The problem appears to be the following:
_potx_build_files() is called in potx.inc. At this point the variable $file_name is not defined, nor is it provided as a parameter (which could have very well been intended, given that a variable of the same name is used in _potx_process_file() and _potx_parse_php_file()).POTX_BUILD_MULTIPLE in our command, the first bracket is skipped and the definition in line 493 is applied to $file_name. However, within this definition, the variable $file_name is already used, which isn't possible since we haven't defined it to this point.$file_name with $file_name.
Active
1.0
Code