Need an external script to traverse the directory structure
(less /external, etc...) and extract all the language phrases in
templates and code files to prevent having to visit each &
every page to build the language file. Since this will ALLWAYS take
longer than 30 seconds, it shouldn't be a site link which will time
out and break the page.
May also want to do the same for the auto-translation feature
which times out.
As a note: To locate existing language phrases in our files the
regex phrase are:
-
To find the |gettext smarty modifier:
(?<=["'])[^"']*(?=["']|gettext)
-
To find the gettext smarty function: (?<=gettext
str=['"])\s([^}])(?=['"]})
-
To find the gt() function in php files:
(?<=gt(['"]).*(?=['"]))