Skip to content
Snippets Groups Projects
Commit d4cc4aa5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Set the language within search

parent 39bd5c72
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,12 @@ update-locale LC_CTYPE="${language}"
android_update_apps yes
# set language in search
if [ -f "/etc/searx/searx/settings.yml" ]; then
language_short="${language:0:2}"
sed -i "s|language :.*|language : \"${language_short}\"|g"
fi
echo $"Language changed to $language"
exit 0
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