protected function insertTypeNameData($typeId, $typeStatus, array $languages)
    {
        $tmpLanguages = $languages;
        if (isset($tmpLanguages['always-available'])) {
            unset($tmpLanguages['always-available']);
        }

        foreach ($tmpLanguages as $language => $name) {
            $query = $this->dbHandler->createInsertQuery();
            $query
                ->insertInto($this->dbHandler->quoteTable('ezcontentclass_name'))
                ->set('contentclass_id', $query->bindValue($typeId, null, \PDO::PARAM_INT))
                ->set('contentclass_version', $query->bindValue($typeStatus, null, \PDO::PARAM_INT))
                ->set(
                    'language_id',
                    $query->bindValue(
                        $this->languageMaskGenerator->generateLanguageIndicator(
                            $language,
                            $this->languageMaskGenerator->isLanguageAlwaysAvailable(
                                $language,
                                $languages
                            )
                        ),
                        null,
                        \PDO::PARAM_INT
                    )
                )
                ->set('language_locale', $query->bindValue($language))
                ->set('name', $query->bindValue($name));
            $query->prepare()->execute();
        }
    }