Adding categories and genres
You can use categories and genres to help your end users quickly find the content they want to watch.
Categories allow you to group content by type, for example, cartoons or music videos. You can use genres to group similar content, for example, comedy, news, or sport.
You can also localize category and genre names for the languages that you support.
To add a category
-
Navigate to .
-
Select + Add category.
-
In the Category field, enter a meaningful name, for example, Movies.
-
In the Order field, enter a number to arrange the category on the list.
-
To enable password protection, select the Age restriction check box.
-
Select Save.
You can now select the newly created category when you add or modify movies.
-
If you want to rearrange the categories on the list, hover over the number in the Number column and drag the category into place.
To add a genre
-
Navigate to .
-
Select + Add genre.
-
In the Genre field, enter a meaningful name, for example, Comedy.
-
In the Category field, select from the available categories, for example, Movies.
-
Select Save.
You can now select the newly created genre when you add new movies or modify existing movies.
Localizing genre and category names
You can define localized names for the genres and categories you create by modifying configuration files and then adding the desired languages in the lists of genres and categories in the MinistraPRO administrator panel.
Information
This feature is available from version 6.22 onwards.
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:
locale -a
If the locales for your desired languages are on the list, skip to step 3.
-
-
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 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.
-
-
In the MinistraPRO administrator panel, add the localizations to your genres or categories:
-
Navigate to the list to which you want to add localizations, for example, .
-
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 localized names in each language you add.
-
Select Save.
-
