Adding genres

You can use genres to group similar IPTV Internet Protocol Television content together, for example, movies, news, or sport.

You can also localize the name of a genre for the languages that you support.

To add a genre

  1. Navigate to IPTV channels > Genres.

  2. Select + Add genre.

  3. In the Genre field, enter a meaningful name, for example, Sports.

  4. To enable password protection, select the Age restriction check box.

  5. Select Save.

    You can now select the newly created genre when you add or modify channels.

  6. If you want to rearrange the genres on the list, hover over the number in the Order column and drag the genre into place.

Localizing genres

You can define the localized names for the genres you create by modifying the configuration files. You can then add the languages you support to the list of genres in the MinistraPRO administrator panel.

Information

This feature is available from version 6.22 onwards.

To add a language

  1. On the Linux server, check if the locales are generated for the languages that you want to add:

    1. In the console, run the following command:

      locale -a

      If the locales for your desired languages are on the list, skip to step 3.

  2. If your desired languages are not on yet generated, do the following:

    1. In the console, run the following command:

      sudo dpkg-reconfigure locales

    2. In the Package configuration view that appears, select the locales you want to generate.

    3. Select OK.

    4. From the list that appears, select the default locale.

    5. Select OK.

  3. In the l18n.ini file, add the languages by modifying the following line:

    content_languages['xx_YY']= 'xx'

    • 'xx' is the two-letter language code.

    • 'YY' is the two-letter country code.

    Tip

    You can use the default entry for English as a template.

    Read about Configuration files

  4. In the MinistraPRO administrator panel, add the localizations to your genres:

    1. Navigate to IPTV channels > Genres.

    2. At the top of the list, select columns drop-down icon.

    3. Select the languages that you want to add as columns.

    4. In the row for each item on the list, select cog icon.

    5. Select Edit localization.

    6. Enter the localized names in each language you add.

    7. Select Save.