def short_language_code(code=None):
    if code is None:
        code = translation.get_language()

    pos = code.find('-')
    if pos > -1:
        return code[:pos]
    return code
Extract the short language code from its argument (or return the default
dataset/ETHPy150Open feincms/feincms/feincms/translations.py/short_language_code