This can be easily done. To add non-existing culture follow the steps below where we'll add Latvian Russian culture to Kentico.
- Open Localization app and select Cultures tab.
- Create a new Latvian Russian culture with these details: Name: Russian - Latvia, Code: ru-LV, Short name: Russian
- Assign to site.
The steps above are minimum you'll need to configure but in Pages app, the culture selector will not show flags, and in Pages listing view, you'll see images for the new culture are not found.
In order to solve this, and to show flags for ru-LV culture, follow the steps below:
- Locate Images.zip file within App_Themes/Default/Images. Extract this zip to a local directory.
- Go to Flags > 16x16, add a new 16x16 image file called ru-LV.png. In this case I just cloned lv-LV flag.
- Do the same for 48x48 directory but with a larger 48x48 size.
- Zip up this folder an name it Images.zip.
- Preferably rename existing Images.zip to something like Images_OLD.zip to keep a backup. Upload new Images.zip to the same location.
- Restart application.
In the content tree you should be able to see flags correctly.
In case you need to display the flag on the main site, you can use the macro below:
<img src="~/CMSPages/GetResource.ashx?image=[Images.zip]/Flags/48x48/{% PreferredCulture @%}.png" />
Hope this helps, and thanks for looking.