def get_language_database():
lang = None<EOL>language = get_language()<EOL>if language:<EOL><INDENT>for x in settings.LANGUAGES_DATABASES:<EOL><INDENT>if x.upper() == language.upper():<EOL><INDENT>lang = language<EOL>break<EOL><DEDENT><DEDENT><DEDENT>if lang is None:<EOL><INDENT>lang = settings.LANGUAGES_DATABASES[<NUM_LIT:0>]<EOL><DEDENT>return lang.lower()<EOL>
Return the language to be used to search the database contents