Create and commit the files generated by the dynamic gettext extraction,
so that we can review changes more gracefully. Two files in the Traffic
Shaper forms don't parse right now, but I have no clue why.
I believe this is what we want long term, to ensure translation messages don't pile up, and that they retain multiple comment lines for source references, etc... Please tell me if I'm wrong, I'm not 100% on how it's behaviour works.
Signed-off-by: Isaac (.ike) Levy <ike@blackskyresearch.net>
Fixes spurious overwrite of a standard config, but also doesn't
update the standards anymore in a running installation. Install
media is unaffected from this change. Users that have had their
standard config overwritten need to rewrite the file accordingly:
/usr/local/etc/config.xml
It also enables users to use their own sample configs on a running
installation from now on. Might add a knob in the GUI to do e.g.
`use this config as the factory reset configuration'. :)
While there, move the pkg-related Makefile glue into its own
file in the subdirectory for clarity.
I guess this is a typo. It makes sense to preceede is_array() with
isset() here since PHP throws a warning on unset variables nowadays.
However, is_array() should not be used if the following operation is
`foreach' as it would mask the fact that the array that is set is not
an array at all (maybe due to a bug). Rather want to catch it instead.
A bit of style along the way and `lint' target fixing.
Seeing PHP ignore text files makes it easier to lint over more
files for a simple reason: maybe someone sneaked a PHP file
into the repo and forgot the proper file extension, which is not
uncommon for utilities in *bin/ -- makes it easier to catch those.
Make "src" the implicit "/usr/local" so that nobody can
sneak in weird files in the base file system or potentially
overwrite them.
This is the last time, I swear... :)