notamedia/bitrix-i18n

i18n in Bitrix CMS

Installs: 147

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 8

Forks: 9

Open Issues: 1

Type:bitrix-module

1.0.1 2016-12-27 08:26 UTC

This package is auto-updated.

Last update: 2024-04-19 19:43:55 UTC


README

Module of internationalization of content in info blocks for Bitrix CMS. Allows you to create multiple language versions of the item with a public ID.

See the screenshots of the interface of internationalization in the wiki.

Installation

Download the library using Composer:

composer require notamedia/bitrix-i18n

Create migration file with contents:

<?php

use Bitrix\Main\Loader;
use Notamedia\i18n\Iblock\Converter\IblockManager;

// 1. Installation module notamedia.i18n

// 2. Convertion info block
if (Loader::includeModule('notamedia.i18n')) {
    $iblockId = 1; // ID of your info block

    $manager = new IblockManager($iblockId);
    $manager->convert('PUBLIC_ID', 'LANG', 'ru');
}

Requirements

  • PHP >= 5.4
  • Bitrix CMS >= 15.5.10