Skip to content

Commit

Permalink
Fixing #12
Browse files Browse the repository at this point in the history
LanguageManager is obsolete.
  • Loading branch information
evest committed Sep 1, 2016
1 parent 40e40b6 commit 768ae5d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 25 deletions.
10 changes: 5 additions & 5 deletions src/.nuget/NuGet.Config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
2 changes: 1 addition & 1 deletion src/BVNetwork.404Handler.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>BVN.404Handler</id>
<title>404 Handler for EPiServer</title>
<version>4.2.0</version>
<version>4.2.1</version>
<authors>BV Network</authors>
<owners>BV Network</owners>
<licenseUrl>https://www.coderesort.com/p/epicode/wiki/EpicodeLicense</licenseUrl>
Expand Down
8 changes: 4 additions & 4 deletions src/Views/NotFoundRedirect/Deleted.ascx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<CustomRedirect>>" %>
<%@ Import Namespace="BVNetwork.NotFound.Core.CustomRedirects" %>
<%@ Import Namespace="EPiServer.Core" %>

<%@ Import Namespace="EPiServer.Framework.Localization" %>

<div class="notfound">
<div class="epi-formArea">
<fieldset>
<%=string.Format(LanguageManager.Instance.Translate("/gadget/redirects/deletedurls"), Model.Count)%>
<%=string.Format(LocalizationService.Current.GetString("/gadget/redirects/deletedurls"), Model.Count)%>

</fieldset>
</div>
Expand All @@ -19,7 +19,7 @@
<tr>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/url")%></label>
<%= Html.Translate("/gadget/redirects/url")%></label>
</th>
<th>&nbsp;</th>
</tr>
Expand Down
9 changes: 5 additions & 4 deletions src/Views/NotFoundRedirect/Ignored.ascx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<CustomRedirect>>" %>
<%@ Import Namespace="BVNetwork.NotFound.Core.CustomRedirects" %>
<%@ Import Namespace="EPiServer.Core" %>

<%@ Import Namespace="EPiServer.Framework.Localization" %>

<div class="notfound">
<div class="epi-formArea">
<fieldset>
<%=string.Format(LanguageManager.Instance.Translate("/gadget/redirects/ignoredsuggestions"), Model.Count)%>
<%=string.Format(LocalizationService.Current.GetString("/gadget/redirects/ignoredsuggestions"), Model.Count)%>

</fieldset>
</div>
Expand All @@ -16,10 +17,10 @@
<tr>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/url")%></label>
<%= Html.Translate("/gadget/redirects/url")%></label>
</th>
<th>
<%=LanguageManager.Instance.Translate("/gadget/redirects/unignore")%>
<%= Html.Translate("/gadget/redirects/unignore")%>
</th>
</tr>
</thead>
Expand Down
8 changes: 4 additions & 4 deletions src/Views/NotFoundRedirect/Redirects.ascx
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
<tr>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/oldurl")%></label>
<%= Html.Translate("/gadget/redirects/oldurl")%></label>
</th>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/newurl")%></label>
<%= Html.Translate("/gadget/redirects/newurl")%></label>
</th>
<th style="text-align: center">
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/wildcard")%></label>
<%= Html.Translate("/gadget/redirects/wildcard")%></label>
</th>
<th>
</th>
Expand Down Expand Up @@ -75,7 +75,7 @@
<td class="longer">
<%if (m.State.Equals((int)DataStoreHandler.State.Ignored))
{%>
<i>[<%=LanguageManager.Instance.Translate("/gadget/redirects/ignored")%>]</i>
<i>[<%= Html.Translate("/gadget/redirects/ignored")%>]</i>
<%}
else
{ %>
Expand Down
12 changes: 5 additions & 7 deletions src/Views/NotFoundRedirect/Suggestions.ascx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BVNetwork.NotFound.Models.RedirectIndexViewData>" %>

<%@ Import Namespace="BVNetwork.NotFound.Core" %>
<%@ Import Namespace="BVNetwork.NotFound.Core.CustomRedirects" %>
<%@ Import Namespace="BVNetwork.NotFound.Core.Data" %>
<%@ Import Namespace="EPiServer.Core" %>
<%@ Import Namespace="EPiServer.Shell.Web.Mvc.Html" %>
<%@ Import Namespace="EPiServer.Framework.Localization" %>
<script type="text/javascript">
function replaceArrow(inputid) {
Expand Down Expand Up @@ -39,16 +37,16 @@
<tr>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/oldurl")%></label>
<%= Html.Translate("/gadget/redirects/oldurl")%></label>
</th>
<th>
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/newurl")%></label>
<%= Html.Translate("/gadget/redirects/newurl")%></label>
</th>

<th style="text-align: center">
<label>
<%=LanguageManager.Instance.Translate("/gadget/redirects/ignore")%></label>
<%= Html.Translate("/gadget/redirects/ignore")%></label>
</th>
</tr>
</thead>
Expand Down Expand Up @@ -145,7 +143,7 @@
<td class="shorter delete">
<%= Html.ViewLink(
"", // html helper
LanguageManager.Instance.Translate("/gadget/redirects/ignoreexplanation"), // title
LocalizationService.Current.GetString("/gadget/redirects/ignoreexplanation"), // title
"IgnoreRedirect", // Action name
"epi-quickLinksDelete epi-iconToolbar-item-link epi-iconToolbar-delete", // css class
"Index",
Expand Down

0 comments on commit 768ae5d

Please sign in to comment.