New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Localization

0:00 / 0:00
  • Demo Configurator
Choose language

This demo shows how to localize RadMediaPlayer with minimum efforts using global resource files. You just need to copy the *.resx files (including the RadMediaPlayer.Main.resx file) to the App_GlobalResouces folder, set the Culture property and you are ready to go.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Language="vb" AutoEventWireup="false"  Inherits="Telerik.MediaPlayerExamplesVBNET.AccessibilityAndInternationalization.Localization.DefaultVB"
    CodeFile="DefaultVB.aspx.vb" %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <style type="text/css">
        .size-custom {
            width: 640px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-custom">
        <telerik:RadMediaPlayer RenderMode="Lightweight" runat="server" ID="RadMediaPlayer1" AutoPlay="true" EnableViewState="false"
            Height="360px" Width="640px"
            Source="https://www.youtube.com/watch?v=P0ZZ9T_c7lU">
            <Banners>
                <telerik:MediaPlayerBanner
                    NavigateURL="http://www.telerik.com/products/aspnet-ajax.aspx"
                    ImageUrl="images/Banner.png"
                    StartTime="3" EndTime="15"
                    ShowCloseButton="true"
                    ToolTip="UI for ASP.NET AJAX" />
            </Banners>
        </telerik:RadMediaPlayer>
    </div>
    <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1">
        <Views>
            <qsf:View>
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Size="Narrow" Title="Choose language">
                    <qsf:RadioButtonList ID="radiobuttonlistLanguages" runat="server" RepeatDirection="Vertical"
                        AutoPostBack="True" Style="margin-left: 1em">
                        <asp:ListItem Value="de-DE"><img src="flags/german.gif" alt="Deutsch"/> Deutsch</asp:ListItem>
                        <asp:ListItem Value="en-US" Selected="true"><img src="flags/english.gif" alt="English" /> English</asp:ListItem>
                        <asp:ListItem Value="fr-FR"><img src="flags/french.gif" alt="Français" /> Français</asp:ListItem>
                    </qsf:RadioButtonList>
                </qsf:ConfiguratorColumn>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance