Adding genres
You can use genres to group similar IPTV content together, for example, movies, news, or sport.
You can also localise the name of a genre for the languages that you support.
To add a genre
- Navigate to IPTV channels > Genres.
- Select + Add genre.
- In the Genre field, enter a meaningful name, for example, Sports.
- To enable password protection, select the Age restriction checkbox.
- Select Save.
You can now select the newly created genre when you add or modify channels. - 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 localised 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 Ministra Pro Admin Panel.
This feature is available from version 6.22.
To add a language
-
On the Linux server, check if the locales are generated for the languages that you want to add:
- In the console, run the following command:
If the locales for your desired languages are on the list, skip to step 3.locale -a
- In the console, run the following command:
-
If your desired languages are not on yet generated, do the following:
- In the console, run the following command:
sudo dpkg-reconfigure locales
- In the Package configuration view that appears, select the locales you want to generate.
- Select OK.
- From the list that appears, select the default locale.
- Select OK.
- In the console, run the following command:
-
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.tipYou can use the default entry for English as a template.
-
-
In the Ministra Pro Admin Panel, add the localizations to your genres:
- Navigate to IPTV channels > Genres.
- At the top of the list, select
.
- Select the languages that you want to add as columns.
- In the row for each item on the list, select .
- Select Edit localization.
- Enter the localised names in each language you add.
- Select Save.