# -*- coding: utf-8  -*-
"""Family module for Vikidia."""
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 5a79642dd83dc8a95f5b4af15fc5e4d726831da2 $'

from pywikibot import family


class Family(family.SubdomainFamily):

    """Family class for Vikidia."""

    name = 'vikidia'
    domain = 'vikidia.org'

    codes = ['ca', 'en', 'es', 'fr', 'it', 'ru']

    def protocol(self, code):
        """Return https as the protocol for this family."""
        return "https"

    def ignore_certificate_error(self, code):
        """Ignore certificate errors."""
        return True  # has self-signed certificate for a different domain.
