lang: Run the generated www patch on every boot
install_lang.py generated lang_patch_www.sh, uploaded it and removed it again right away. Nothing ever referenced the file, so the full install mode only ever shipped the .lmo catalogue and every string hardcoded in the templates stayed Chinese. Keep the script: lang_install.sh moves it into /etc/crontabs/patches next to lang_patch.sh, and lang_patch.sh runs it on every boot - after the bind mount and before luci-reload, because the templates live in a tmpfs mirror that is rebuilt from the read-only squashfs each time. Its output goes to /tmp/lang_patch_www.log, which lang_uninstall.sh already tried to delete. lang_uninstall.sh drops the script as well. The <%: %> wrapping itself is not undone: it disappears with the next reboot, and until then LuCI simply prints the original text for entries the catalogue does not translate.pull/175/head
parent
1e74a7708e
commit
573a601b6a
Loading…
Reference in New Issue