def get_langinfo(ns):
    tf = TableFormatter(stdout, 0, True, {0: FIRST_COLUMN_MIN_SIZE})

    try:
        locale = get_single_instance(ns, 'LMI_Locale')
    except Exception:
        result = [(get_colored_string('error:', RED_COLOR),
                    'Missing class LMI_Locale. Is openlmi-locale package installed on the server?')]
        tf.produce_output(result)
        return []

    tf.produce_output([('Language:', locale.Lang)])
    try:
        tf.produce_output([('Time Zone:',
            "%s (NTP is %s)" % (locale.Timezone, 'on' if locale.NTP else 'off'))])
    except Exception:
        # Time Zone info was added later to the LMI_Locale class
        pass
    return []
WARNING: Will remove this category and re-sort its events
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/system/lmi/scripts/system/__init__.py/get_langinfo--crossover with--dataset/ETHPy150Open gmcquillan/firetower/firetower/category.py/Category.recategorise