Allow localization of "Self Informations"
Allows the string "Self Informations" in the plugin of the same name to be localized by wrapping it with gettext().
commit74e4e5e507d908950d4458dff5ba4aa5c712866f
authorLukáš Kucharczyk <31072879+KucharczykL@users.noreply.github.com>
dateThu 16 Jul 2020, 15:26 (6 years ago)
parent61ff5a7
searx/plugins/self_info.py+1−1
@@ -16,7 +16,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1616'''
1717from flask_babel import gettext
1818import re
19−name = "Self Informations"
19+name = gettext('Self Informations')
2020description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
2121default_on = True
2222