Skip to content
Snippets Groups Projects
Commit fcadc771 authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: oops: Fix POT file creation to include JS

parent efe5a084
No related branches found
No related tags found
No related merge requests found
...@@ -555,6 +555,7 @@ class i18n_Compiler extends Module { ...@@ -555,6 +555,7 @@ class i18n_Compiler extends Module {
function __getAllJsPhrases($root=ROOT_DIR) { function __getAllJsPhrases($root=ROOT_DIR) {
$strings = array(); $strings = array();
$root = rtrim($root, '/') . '/';
$funcs = array('__'=>array('forms'=>1)); $funcs = array('__'=>array('forms'=>1));
foreach (glob_recursive($root . "*.js") as $s) { foreach (glob_recursive($root . "*.js") as $s) {
$script = file_get_contents($s); $script = file_get_contents($s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment