web proxy: move squid native language directory to new language pack

There is a problem with mapping, but same as before.
This commit is contained in:
Franco Fichtner 2023-10-30 15:46:03 +01:00
parent 84a099c72b
commit 2495fb0dc4

View File

@ -471,5 +471,6 @@ connect_timeout {{OPNsense.proxy.general.connecttimeout}} seconds
{% if not helpers.empty('OPNsense.proxy.general.error_pages') %}
error_directory /usr/local/etc/squid/errors/local
{% elif helpers.exists('system.language') and system.language != "" %}
error_directory /usr/local/etc/squid/errors/{{ system.language|lower|replace("_","-")}}
# XXX this can end up selecting a nonexistent directory because most languages are without a country shortcut
error_directory /usr/local/share/squid-langpack/{{ system.language|lower|replace("_","-")}}
{% endif %}