Exception in template (Designs/Plymovent/_parsed/820-Segment-Itemtype.parsed.cshtml): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Connection Timeout Expired.  The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.  This could be because the pre-login handshake failed or the server was unable to respond back in time.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=0; handshake=15339;  ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Dynamicweb.Data.DatabaseConnectionProvider.CreateConnection()
   at Dynamicweb.Data.Database.CreateConnection()
   at Dynamicweb.Data.Database.CreateDataReader(CommandBuilder commandBuilder, IDbConnection connection, IDbTransaction transaction, Int32 commandTimeout)
   at Dynamicweb.Content.Items.Queries.Repository.GetDisabledPagesIds(Int32 areaId, Boolean includeParagraphs, Boolean checkPermissions, List`1 effectiveItemTypes)
   at Dynamicweb.Content.Items.Queries.Repository.SelectByAreaId(Int32 areaId, Query query, Boolean includeParagraphs, Boolean checkPermissions, Boolean includeInheritedItems)
   at Dynamicweb.ItemPublisher.Frontend.GetItems()
   at Dynamicweb.ItemPublisher.Frontend.List()
   at Dynamicweb.ItemPublisher.Frontend.GetContent()
   at Dynamicweb.ItemPublisher.Frontend.GetContentBySettings(String settings)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Dynamicweb.Extensibility.AddIns.AddInManager.InvokeFunction(Object instance, String functionName, Object[] arguments)
   at Dynamicweb.Rendering.TemplateBase`1.RenderItemList(Object settings)
   at CompiledRazorTemplates.Dynamic.abbebde.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateBase.cs:line 126
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 608
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 439
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Razor.cs:line 276
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb; @using Dynamicweb.Content; @using Dynamicweb.Rendering; @using Dynamicweb.Frontend; @using Dynamicweb.Content.Items; @using Dynamicweb.Content.Items.Rendering; @using System.Web; @{ string AreaFirstPage = GetString("DwAreaFirstPageID"); string SearchPageID = Pageview.Area.Item["SearchPageID"].ToString(); var GoogleTaskManagerID = GetValue("Item.Area.Google_Tag_Manager.Value"); string currentCulture = @GetString("LongLang"); string currentCultureShort = currentCulture.Split('-')[0]; if (currentCulture == "en-GB") currentCulture = ""; } <!DOCTYPE html> <html lang="@currentCultureShort"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") <!-- Bootstrap --> <link href="/Files/Templates/Designs/Plymovent/assets/css/style.min.css?V=1.1.1" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="/Files/Templates/Designs/Plymovent/assets/js/lib/jquery.placeholder.js"></script> <script src="/Files/Templates/Designs/Plymovent/assets/js/lib/jquery.validate.min.js"></script> <script src="/Files/Templates/Designs/Plymovent/assets/endless/js/endlessRiver.js"></script> <link rel="stylesheet" href="/Files/Templates/Designs/Plymovent/assets/endless/css/endlessRiver.css"> <script> $(document).ready(function(){ $("#myUl").endlessRiver(); }); </script> <!-- maps.google.com eerst laden omdat require niet goed overweg met script die async geladen wordt --> <script src="//maps.google.com/maps/api/js?sensor=true&amp;language=en-US" type="text/javascript"></script> <script data-main="/files/templates/designs/plymovent/assets/js/app" src="/Files/Templates/Designs/Plymovent/assets/js/lib/require.js"></script> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <!-- Plymovent favicons --> <link rel="icon" href="/favicon.ico"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"> <link rel="manifest" href="/android-chrome-manifest.json"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/mstile-144x144.png"> <meta name="theme-color" content="#ffffff"> @GetValue("Stylesheets") @GetValue("Javascripts") </head> <body class="lang-@currentCultureShort"> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-@GoogleTaskManagerID" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-@GoogleTaskManagerID');</script> <!-- End Google Tag Manager --> <div class="container-fluid distributor"> <div class="container"> <div class="col-md-offset-5 col-xs-offset-6 col-xs-3"> @if (GetString("DwAreaName").Equals("DE")) { <a href="http://webshop.plymovent.de/" class="btn distributorlogin">@Translate("HeaderShopButton", "Webshop")</a> } </div> <div class="col-xs-3"> <a class="btn distributorlogin hidden-xs" href="http://extranet.plymovent.com">@Translate("DistributorLogin", "Distributor login")</a> <a class="btn distributorlogin visible-xs-block" href="http://extranet.plymovent.com">@Translate("Login", "Login")</a> </div> </div> </div> <div class="container menu-container"> <div class="row margin-bottom-md"> <div class="col-md-5 col-sm-4 col-xs-12 logo"> <a href="Default.aspx?ID=@AreaFirstPage"> <img class="img-responsive" src="/Files/Templates/Designs/Plymovent/assets/img/static/plymoventlogo.png" alt="Plymovent Logo"> </a> </div> <div class="col-md-3 col-xs-4 language"> <div class="dropdown"> <button class="btn btn-default btn-block dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true"> <span class="glyphicon glyphicon-globe"></span> @getLanguage("", true) </button> <ul class="dropdown-menu language-dropdown" role="menu" aria-labelledby="languageselect"> @foreach (var language in GetLoop("Languages")) { var Culture = language.GetString("Culture"); <li role="presentation"> <a role="menuitem" tabindex="-1" href="@keepQuerystring(language)"> @if (Culture == "en-GB") { <text>English (Rest of the World)</text> } else if (Culture == "en-US") { <text>English (North America)</text> } else { @getLanguage(Culture, false) } </a> </li> } </ul> </div> </div> <div class="col-md-3 col-xs-4 search"> <form action="/default.aspx" method="get"> <div class="input-group"> <input type="hidden" name="ID" value="@SearchPageID"> <input type="text" name="q" class="form-control" placeholder='@Translate("SearchThisSite", "Search this site")'> <span class="input-group-btn"> <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form> </div> </div> <nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a href="Default.aspx?ID=@AreaFirstPage" class="sticky-logo"> <div class="navbar__logo img-responsive"></div> @*<img class="img-responsive" src="/Files/Templates/Designs/Plymovent/assets/img/static/plymoventlogo.png" alt="Plymovent Logo">*@ </a> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="menu-title">Menu</span> <span class="glyphicon glyphicon-chevron-down"></span> </button> </div> <div class="collapse navbar-collapse" id="navbar-collapse"> <ul class="nav navbar-nav"> @GetValue("DwNavigation(mainnavigation)") <li class="visible-xs-block"> <div class="menu-extra language"> <div class="dropdown"> <button class="btn btn-default btn-block dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true"> @getLanguage(@GetString("LongLang"), true) <span class="glyphicon glyphicon-globe"></span> </button> <ul class="dropdown-menu language-dropdown" role="menu" aria-labelledby="languageselect"> @foreach (var item in GetLoop("Languages")) { var pID = item.GetString("PageID"); var FirstPageID = item.GetString("FirstPageID"); var Culture = item.GetString("Culture"); if(string.IsNullOrWhiteSpace(pID)) { pID = FirstPageID; } <li role="presentation"> <a role="menuitem" tabindex="-1" class="language-@Culture" href="/Default.aspx?ID=@pID"> @getLanguage(Culture, false) </a> </li> } </ul> </div> </div> <div class="menu-extra"> <form action="/default.aspx" method="get"> <div class="input-group"> <input type="hidden" name="ID" value="@SearchPageID"> <input type="text" name="q" class="form-control" placeholder='@Translate("Search", "Search")'> <span class="input-group-btn"> <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form> </div> </li> </ul> </div> </div> </nav> </div> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb; @using Dynamicweb.Content; @using Dynamicweb.Rendering; @using Dynamicweb.Frontend; @using Dynamicweb.Content.Items; @using Dynamicweb.Content.Items.Rendering; <div class="container productsegments"> <div class="row"> <div class="col-md-12"> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb; <ul class="breadcrumb"> <li> <a href="/" title="Terug naar homepage"> @Translate("menuhomepage", "Home") </a> </li> @GetValue("DwNavigation(bc)") @if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["productid"])) { <li class="current"> <span itemprop="title"> @GetValue("Title") </span> </li> } </ul> </div> </div> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb; <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-xs-3"> @if (!string.IsNullOrWhiteSpace(GetString("Page:Ecom.ProductList.GroupName")) || GetString("DwPageName_2") == "Products") { <a href="javascript:history.back()" class="page-back">@Translate("btnBack", "Back")</a> } </div> <div class="col-xs-9"> <h1 class="page-title">@GetString("Title")</h1> </div> </div> <div class="striped-border"></div> </div> </div> <div class="row"> <div class="col-sm-12 col-md-3"> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb; <a href="#sidemenu" class="sidemenu-collapse" data-toggle="collapse" aria-expanded="true" aria-controls="sidemenu">@Translate("Showhidemenu", "Show/hide menu")</a> <nav id="sidemenu" class="collapse in"> @if (GetGlobalValue("Global:Page.Top.Name") == "Blog") { @GetValue("DwNavigation(Categorynavigation)") } else { @GetValue("DwNavigation(Categorynavigation2)") } </nav> <div class="row" id="left_column_span3">@GetValue("DwContent(leftcolumnspan3)")</div> </div> <div class="col-sm-12 col-md-9"> <div class="content_element"> <div class="row"> <div class="col-md-12"> <div class="col-md-4"> <div class="row"> @{ var photo = GetString("Item.Image"); var alternativeImg = Pageview.Area.Item["Alt_Image"]; var AltTxt = GetString("Item.Alt"); <div class="col-md-12 product-image-body"> <img src="/Admin/Public/GetImage.ashx?Image=@photo&amp;Format=jpg&amp;Width=400&amp;altFmImage_path=@alternativeImg" alt="@AltTxt" class="img-full"> </div> } </div> </div> <!-- --> @GetString("Item.Tekst.Value") </div> </div> <div class="row"> <!-- --> <div class="col-md-8 col-xs-12 col-sm-12 col-md-6"> <div class="segment-part segment-part-download"> <strong class="header">@Translate("Download", "Download")</strong> <ul class="square"> @if (!string.IsNullOrEmpty(GetString("Item.Download1.Value"))) { var download_title_1 = GetString("Item.Download1.Name"); var download1Label = Translate("download_title_1", "Brochure"); var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Item.Download1.Value")); if (metadata != null) { // Use metadata.GetValue(...), e.g. download_title_1 = metadata.GetValue("title"); } if (!string.IsNullOrEmpty(GetString("Item.Download1_Label.Value"))) { download1Label = GetString("Item.Download1_Label.Value"); } <li> <a href='@GetString("Item.Download1.Value")' title="@download1Label">@download1Label</a> </li> } @if (!string.IsNullOrEmpty(GetString("Item.Download2.Value"))) { var download_title_2 = GetString("Item.Download2.Name"); var download2Label = Translate("download_title_2", "Brochure"); var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Item.Download2.Value")); if (metadata != null) { // Use metadata.GetValue(...), e.g. download_title_2 = metadata.GetValue("title"); } if (!string.IsNullOrEmpty(GetString("Item.Download2_Label.Value"))) { download2Label = GetString("Item.Download2_Label.Value"); } <li> <a href='@GetString("Item.Download2.Value")' title="@download2Label">@download2Label</a> </li> } @if (!string.IsNullOrEmpty(GetString("Item.Download3.Value"))) { var download_title_3 = GetString("Item.Download3.Name"); var download3Label = Translate("download_title_3", "Brochure"); var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Item.Download3.Value")); if (metadata != null) { // Use metadata.GetValue(...), e.g. download_title_3 = metadata.GetValue("title"); } if (!string.IsNullOrEmpty(GetString("Item.Download3_Label.Value"))) { download3Label = GetString("Item.Download3_Label.Value"); } <li> <a href='@GetString("Item.Download3.Value")' title="@download3Label">@download3Label</a> </li> } </ul> </div> </div> <!-- --> </div> @{ var renderRef = RenderItemList(new { ItemType = "References", ListSourceType = "Area", ListSourceArea = Pageview.AreaID, ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/ply_references_list.cshtml", ListPageSize = 16, Filter = @"SegmentLink = """ + "Default.aspx?ID=" + Pageview.Page.ID + @"""" }); if (renderRef.ToString().Contains("img")) { <div class="row"> <div class="col-md-12"> <h3>@Translate("References", "References")</h3> @renderRef </div> </div> } } </div> <div class="row" id="right_column_span9">@GetValue("DwContent(rightcolumnspan9)")</div> </div> </div> </div> <div class="container"> <div class="row usps"> @RenderParagraphContent(GetInteger("Item.Area.USPGlobalID.Value")) </div> </div> <footer class="footer"> <div class="container"> <div class="row footer-row"> <div class="footer-image"> @RenderParagraphContent(GetInteger("Item.Area.FooterImageGlobalID.Value")) </div> <div class="footer-navigateto"> <strong>@Translate("Navigate_to", "Navigate to")</strong> <ul> @GetValue("DwNavigation(bottomnavigation)") </ul> </div> <div class="footer-distributor"> @RenderParagraphContent(GetInteger("Item.Area.DistributorGlobalID.Value")) </div> <div class="footer-contactinformation"> @RenderParagraphContent(GetInteger("Item.Area.AddressGlobalID.Value")) </div> </div> </div> <div class="container-fluid bottom-container"> <div class="container"> <div class="row"> <div class="bottom-nav"> <ul> @GetValue("DwNavigation(navfooter)") </ul> <span>@string.Format(Translate("copyright", "Copyright © {0} Plymovent. All rights reserved."), DateTime.Now.Year)</span> </div> <div class="bs-docs-social"> <span class="social-info">@Translate("FollowPlymovent", "Follow Plymovent")</span> <ul class="bs-docs-social-buttons"> @GetValue("DwNavigation(navsocialmedia)") </ul> <span class="copyright">@Translate("copyright", "Copyright © 2014 Plymovent. All rights reserved.")</span> </div> </div> </div> </div> </footer> <script> function InitJqValTranslations() { $.extend($.validator.messages, { required: "Ce champ est exigé", remote: "Please fix this field.", email: "S’il vous plait insérez une adresse mail ", url: "Please enter a valid URL.", date: "Please enter a valid date.", dateISO: "Please enter a valid date ( ISO ).", number: "Please enter a valid number.", digits: "Please enter only digits.", creditcard: "Please enter a valid credit card number.", equalTo: "Please enter the same value again.", maxlength: $.validator.format("Please enter no more than {0} characters."), minlength: $.validator.format("Please enter at least {0} characters."), rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."), range: $.validator.format("Please enter a value between {0} and {1}."), max: $.validator.format("Please enter a value less than or equal to {0}."), min: $.validator.format("Please enter a value greater than or equal to {0}."), termandconditions: $.validator.format("De algemene voorwaarden zijn niet geaccepteerd") }); } </script> <script type='text/javascript' id="__bs_script__"> //<![CDATA[ var ext = location.host.split(':')[0].split('.').pop() if (ext == 'local' || isNaN(ext) == false) { document.write("<script async src='//HOST:3000/browser-sync/browser-sync-client.1.7.1.js'><\/script>".replace(/HOST/g, location.hostname).replace(/PORT/g, location.port)); } //]]></script> </body> </html> @functions { public string keepQuerystring(LoopItem language) { var qs = HttpUtility.ParseQueryString(System.Web.HttpContext.Current.Request.QueryString.ToString()); qs.Set("ID", language.GetString("PageID")); var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(language.GetInteger("FirstActivePageID")); string url = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(language.GetInteger("PageID")); foreach (string key in qs) { if (key == null) { continue; } if (key.Equals("ID", StringComparison.InvariantCultureIgnoreCase)) { continue; } var value = qs[key]; var urlFromHandler = Dynamicweb.Frontend.UrlProviders.Handler.GetUrlFromQueryString(key, value, page.Area.EcomLanguageId); if (string.IsNullOrWhiteSpace(urlFromHandler)) { url = url.Contains("?") ? string.Format("{0}&{1}={2}", url, key, value) : string.Format("{0}?{1}={2}", url, key, value); } else { if (Dynamicweb.Frontend.SearchEngineFriendlyURLs.UseExtensionLessUrls) { url += urlFromHandler.Replace(".aspx", ""); } else { url = url.Replace(".aspx", urlFromHandler); } } } return url; } } @helper getLanguage(string strCulture, bool ignoreEnglish) { switch (strCulture) { case "en-GB": if(ignoreEnglish){ @Translate("SelectYourLanguage", "Select your language") } else{ @Translate("English", "English") } break; case "nl-NL": @Translate("Dutch", "Nederlands") break; case "de-DE": @Translate("Deutsch", "Deutsch") break; case "es-ES": @Translate("Español", "Español") break; case "fr-FR": @Translate("Français", "Français") break; case "sv-SE": @Translate("Svenska", "Svenska") break; case "zh-CN": @Translate("china", "中文") break; case "de-LI": @Translate("Deutsch", "Deutsch") break; case "nl-BE": @Translate("Belgium", "Belgium") break; case "en-CA": @Translate("Canada", "Canada") break; case "en-US": @Translate("USA_menu", "English (USA)") break; case "sq-AL": @Translate("china", "中文") break; case "th-TH": @Translate("Thai", "ไทย") break; default: @Translate("SelectYourLanguage", "Select your language") break; } }